Downloads · 30 days
9
4% of all-time downloads
McGill-DMaS/DMaS-LLaMa-Lite-step-43.5k-instruct
DMaS-LLaMa-Lite-step-43.5k-instruct is a text generation model from McGill-DMaS. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
This repository provides access to DMaS-LLaMa-Lite-step-43.5k-instruct, an instruction fine-tuned version of the DMaS-LLaMa-Lite model. Based on the 43,500-step checkpoint, this model has been further fine-tuned on qu…
Downloads · 30 days
9
4% of all-time downloads
All-time downloads
215
Public
Parameters
1.7B
6.9 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors3.4 GB · 100%
From the Hugging Face model README
This repository provides access to DMaS-LLaMa-Lite-step-43.5k-instruct, an instruction fine-tuned version of the DMaS-LLaMa-Lite model. Based on the 43,500-step checkpoint, this model has been further fine-tuned on question-answering datasets to enable instruction-following and dialogue capabilities.
It serves as a demonstration of the potential to fine-tune a pretrained LLaMa-based model for downstream tasks, such as question-answering, with improved alignment for human-like responses.
<|endoftext|>This model showcases how a LLaMa-based pretrained checkpoint can be effectively adapted for instruction-following tasks, resulting in coherent, relevant, and contextually grounded completions.
The model follows the Vicuna 1.1 chat format:
A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.
USER: {user input}
ASSISTANT:{machine response}<|endoftext|>
You can load and use the model with Hugging Face's Transformers library:
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "McGill-DMaS/DMaS-LLaMa-Lite-step-43.5k-instruct"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
# Define the prompt in Vicuna 1.1 format
prompt = "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.
USER: What are the Pyramids of Giza known for?
ASSISTANT:"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_length=100)
# Decode the machine response
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
If you use this model or its training insights in your work, please cite the following paper:
@INPROCEEDINGS{li2025training,
author={Li, Miles Q. and Fung, Benjamin C. M. and Huang, Shih-Chia},
booktitle={2025 International Joint Conference on Neural Networks (IJCNN)},
title={Training Dynamics of a 1.7B LLaMa Model: A Data-Efficient Approach},
year={2025},
volume={},
number={},
pages={1-10},
keywords={Training;Analytical models;Refining;Benchmark testing;Throughput;Data models;Hardware;Stability analysis;Trajectory;Tuning},
doi={10.1109/IJCNN64981.2025.11228044}}
This model and code are released under the Apache License 2.0. Please check the respective repositories for detailed terms.
For details on pre-training processes, the scripts are available at:
📄 DMaS-LLaMa-Lite Training Code