Yuchan commited on
Update AlphaS2S.py
Browse files12 unmodified lines13141516171819235 unmodified lines25525625725825926026112 unmodified linesSEED = 42tf.random.set_seed(SEED)np.random.seed(SEED)max_len = 256 # 기존 코드에서 200으로 설정됨batch_size = 32# TPU 초기화 (기존 코드와 동일)235 unmodified lineswith strategy.scope():# ⚠️ 수정: chat_vocab_size 대신 정의된 vocab_size 사용chat_model = Transformer(num_layers=2, d_model=320, num_heads=5, dff=1024, input_vocab_size=vocab_size, target_vocab_size=vocab_size, max_len=256, dropout=0.1)dummy_input = {"enc_inputs": tf.zeros((1, max_len), dtype=tf.int32),12 unmodified lines13141516171819235 unmodified lines25525625725825926026112 unmodified linesSEED = 42tf.random.set_seed(SEED)np.random.seed(SEED)max_len = 224 # 기존 코드에서 200으로 설정됨batch_size = 32# TPU 초기화 (기존 코드와 동일)235 unmodified lineswith strategy.scope():# ⚠️ 수정: chat_vocab_size 대신 정의된 vocab_size 사용chat_model = Transformer(num_layers=2, d_model=320, num_heads=4, dff=960, input_vocab_size=vocab_size, target_vocab_size=vocab_size, max_len=256, dropout=0.1)dummy_input = {"enc_inputs": tf.zeros((1, max_len), dtype=tf.int32),
AlphaS2S.py+2-2