Views
No views yet
| Property | Value |
|---|---|
| Base Model | HuggingFaceTB/SmolLM2-135M |
| Training Method | LoRA (r=16, alpha=32) |
| Dataset | smol-smoltalk — 460K conversations |
| Trainable Params | ~2.5M (1.9% of base) |
| Learning Rate | 1e-3 (cosine schedule, 10% warmup) |
| Training Steps | 1,000 |
| Max Sequence Length | 2,048 |
| Architecture | Llama (30 layers, 576 hidden, 9 heads) |
1from transformers import pipeline
2import torch
3
4pipe = pipeline(
5 "text-generation",
6 model="Premchan369/smollm2-135m-sft-lora",
7 torch_dtype=torch.bfloat16,
8 device="cuda",
9)
10
11messages = [{"role": "user", "content": "Explain gravity in simple terms."}]
12output = pipe(messages, max_new_tokens=200, temperature=0.7)
13print(output[0]["generated_text"][-1]["content"])messages column) — auto-detected by SFTTrainer1# Clone and run
2git clone https://huggingface.co/Premchan369/smollm2-135m-sft-lora
3cd smollm2-135m-sft-lora
4pip install transformers datasets trl peft accelerate bitsandbytes
5python train.py1@article{allal2025smollm2,
2 title={SmolLM2: When Smol Goes Big -- Data-Centric Training of a Small Language Model},
3 author={Allal, Loubna Ben and Lozhkov, Anton and Bakouch, Elie and others},
4 journal={arXiv preprint arXiv:2502.02737},
5 year={2025}
6}