Views
No views yet
1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model_name = "McGill-DMaS/DMaS-LLaMa-Lite-step-500"
4tokenizer = AutoTokenizer.from_pretrained(model_name)
5model = AutoModelForCausalLM.from_pretrained(model_name)
6
7inputs = tokenizer("The Pyramids of Giza in Egypt are some of the oldest man-made structures in the world.", return_tensors="pt")
8outputs = model.generate(**inputs, max_length=50)
9print(tokenizer.decode(outputs[0], skip_special_tokens=True))1@INPROCEEDINGS{li2025training,
2 author={Li, Miles Q. and Fung, Benjamin C. M. and Huang, Shih-Chia},
3 booktitle={2025 International Joint Conference on Neural Networks (IJCNN)},
4 title={Training Dynamics of a 1.7B LLaMa Model: A Data-Efficient Approach},
5 year={2025},
6 volume={},
7 number={},
8 pages={1-10},
9 keywords={Training;Analytical models;Refining;Benchmark testing;Throughput;Data models;Hardware;Stability analysis;Trajectory;Tuning},
10 doi={10.1109/IJCNN64981.2025.11228044}}