Views
No views yet
SFTTrainer.| Field | Value |
|---|---|
| Base model | LiquidAI/LFM2.5-1.2B-Instruct |
| Architecture | Lfm2ForCausalLM |
| Parameters | 1.2B |
| Precision | bfloat16 (merged 16-bit) |
| Fine-tuning method | QLoRA (4-bit base, LoRA r=16, α=16) |
| Dataset | Salesforce/xlam-function-calling-60k (60,000 examples) |
| Training | N=1 full epoch (7,500 steps, effective batch=8) |
| Learning rate | 2e-4 (linear decay, warmup 5 steps) |
| Unsloth version | 2026.4.6 |
| Trained on | DRAC Fir cluster, NVIDIA H100 80GB HBM3 MIG 3g.40gb |
1from transformers import AutoModelForCausalLM, AutoTokenizer
2import torch
3
4model = AutoModelForCausalLM.from_pretrained(
5 "ermiaazarkhalili/LFM2.5-1.2B-Function-Calling-xLAM-Unsloth",
6 torch_dtype=torch.bfloat16,
7 device_map="auto",
8 trust_remote_code=True,
9)
10tokenizer = AutoTokenizer.from_pretrained("ermiaazarkhalili/LFM2.5-1.2B-Function-Calling-xLAM-Unsloth", trust_remote_code=True)
11
12messages = [{"role": "user", "content": "Find flights from SFO to NYC on December 25th"}]
13text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
14inputs = tokenizer(text=text, return_tensors="pt").to(model.device)
15outputs = model.generate(**inputs, max_new_tokens=256, do_sample=False)
16print(tokenizer.decode(outputs[0], skip_special_tokens=True))1from unsloth import FastLanguageModel
2model, tokenizer = FastLanguageModel.from_pretrained(
3 "ermiaazarkhalili/LFM2.5-1.2B-Function-Calling-xLAM-Unsloth",
4 max_seq_length=2048,
5 load_in_4bit=False,
6)
7FastLanguageModel.for_inference(model)ermiaazarkhalili/LFM2.5-1.2B-Function-Calling-xLAM-Unsloth-GGUF:1# llama-cli
2llama-cli -hf ermiaazarkhalili/LFM2.5-1.2B-Function-Calling-xLAM-Unsloth-GGUF --jinja -p "Find flights from SFO to NYC on December 25th" -n 256
3
4# Ollama
5ollama run hf.co/ermiaazarkhalili/LFM2.5-1.2B-Function-Calling-xLAM-Unsloth-GGUF:Q4_K_MSalesforce/xlam-function-calling-60k.FastLanguageModelLFM2.5-1.2B-Instruct, inherits its limitations and biases.1@misc{ lfm25_12b_xlam_unsloth_2026 ,
2 author = {Ermia Azarkhalili},
3 title = { LFM2.5-1.2B-xLAM-Unsloth — Function-calling fine-tune of LFM2.5-1.2B-Instruct },
4 year = {2026},
5 publisher = {Hugging Face},
6 howpublished = {\url{https://huggingface.co/ermiaazarkhalili/LFM2.5-1.2B-Function-Calling-xLAM-Unsloth}}
7}