Downloads · 30 days
8
9% of all-time downloads
venkateshchsagalm/SagaLM-slm1
SagaLM-slm1 is a machine learning model from venkateshchsagalm. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft.
LoRA adapter for SagaLM-slm1, fine-tuned on Qwen/Qwen2.5-3B-Instruct.
Downloads · 30 days
8
9% of all-time downloads
All-time downloads
86
Public
Repo size
491 MB
Likes
1
Public
Click a slice to open those files.
.pt240 MB · 65%
From the Hugging Face model README
LoRA adapter for SagaLM-slm1, fine-tuned on Qwen/Qwen2.5-3B-Instruct.
Only samples with detailed, long assistant answers were kept, training the model to always respond comprehensively.
5 identity-focused training samples were injected to ensure the model consistently identifies as SagaLM (not Qwen or any other model).
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-3B-Instruct", device_map="auto")
model = PeftModel.from_pretrained(base, "venkateshchsagalm/SagaLM-slm1")
tokenizer = AutoTokenizer.from_pretrained("venkateshchsagalm/SagaLM-slm1")