Views
No views yet

out/agm_3.5.pt under model_args, and the tokenizer metadata is stored in data/textfile_word/meta.pkl.textfile_word tokenizer metadata currently reports:<|user|>, <|ai|>, <|eos|>data/textfile_word/meta.pklout/agm_3.5.pt<|user|>, <|ai|>, and <|eos|> are single tokensmeta.pklmeta.pkl cannot be added during fine-tuning without changing the model shape, so it should be replaced in the fine-tune data or handled by retraining from scratch with a rebuilt vocab.python chat.pypython data/textfile_word/prepare.pypython train.py data/train_textfile_word.pypython train.py data/train_textfile_word.py --batch_size=32 --compile=Falsepython fine_tune/fine_tune.pyfine_tune/data.txt, tokenizes it with the existing data/<dataset>/meta.pkl vocab from the checkpoint config, and overwrites the same checkpoint path when training finishes.1python fine_tune/fine_tune.py --max_iters=100 --learning_rate=5e-5 --batch_size=4
2python fine_tune/fine_tune.py --data_file="fine_tune/data.txt" --ckpt_path="out/agm_3.5.pt"python chat.py samplepython chat.py sample --num_samples=5 --max_new_tokens=2001python train.py data/train_textfile_word.py --n_embd=512 --n_layer=8 --n_head=8 --block_size=1024 --batch_size=16 --max_iters=500
2python train.py data/train_textfile_word.py --n_embd=512 --n_layer=8 --n_head=8 --block_size=1024 --batch_size=16 --max_iters=5000 --init_from=resume