Views
No views yet
tiktoken)transformers)trust_remote_code=True:1from transformers import AutoModel
2
3model = AutoModel.from_pretrained("Exquisique/BabyLangModel", trust_remote_code=True)1Prompt: Once upon a time there was a tiny robot who
2
3Output: ...lived in a far away home. One day, a little girl named Lily decided to go on a special trip in the forest. She walked and walked until she got there but suddenly she started to go. Her mom called her and said, "Don't worry, Lily. We will get you my special ride."🗣️ Still improving, but quite readable and story-like after 200k iterations!
1python -m src.tokenizer # Tokenize TinyStories
2python -m src.train # Train model from scratch
3python -m src.generate # Generate text1{
2 "vocab_size": 50257,
3 "block_size": 128,
4 "n_layer": 6,
5 "n_head": 6,
6 "n_embd": 384,
7 "model_type": "gpt"
8}1from transformers import AutoModel
2model = AutoModel.from_pretrained("Exquisique/BabyLangModel", trust_remote_code=True)tiktoken).