Downloads · 30 days
24
5% of all-time downloads
ermiaazarkhalili/LFM2.5-1.2B-SFT-Claude-Opus-Reasoning
LFM2.5-1.2B-SFT-Claude-Opus-Reasoning is a text generation model from ermiaazarkhalili. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as other.
A LoRA fine-tune of LiquidAI/LFM2.5-1.2B-Instruct.
Downloads · 30 days
24
5% of all-time downloads
All-time downloads
500
Public
Parameters
1.2B
1.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.1 GB · 100%
How the weights are stored.
U81B · 89%
From the Hugging Face model README
A LoRA fine-tune of LiquidAI/LFM2.5-1.2B-Instruct.
| Base model | LiquidAI/LFM2.5-1.2B-Instruct |
| Architecture | Lfm2ForCausalLM |
| Parameters | 1.2B |
| Method | LoRA supervised fine-tuning via Unsloth + TRL |
| License | other (inherited from the base model) |
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "ermiaazarkhalili/LFM2.5-1.2B-SFT-Claude-Opus-Reasoning"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, dtype='auto', device_map='auto')
messages = [{"role": "user", "content": "Explain gradient checkpointing in two sentences."}]
inputs = tokenizer.apply_chat_template(
messages, add_generation_prompt=True, return_tensors='pt'
).to(model.device)
outputs = model.generate(inputs, max_new_tokens=256)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
| Setting | Value |
|---|---|
| LoRA rank (r) | 16 |
| LoRA alpha | 32 |
| Learning rate | 2e-05 |
| Epochs | 1 |
| Effective batch size | 8 (2 x 4 grad accum) |
| Base precision | 4-bit (QLoRA) |
Trained by notebooks/sft_distillation_lfm2.5.ipynb, executed non-interactively with
papermill on a SLURM H100 partition (Unsloth + TRL, LoRA).
Card generated from the training run's own configuration and logs by
scripts/generate_hub_model_card.py.