Views
No views yet
SFTTrainer.| Field | Value |
|---|---|
| Base model | Qwen/Qwen3.5-2B |
| Architecture | Qwen3ForCausalLM |
| Parameters | 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/Qwen3.5-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/Qwen3.5-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/Qwen3.5-2B-Function-Calling-xLAM-Unsloth",
4 max_seq_length=2048,
5 load_in_4bit=False,
6)
7FastLanguageModel.for_inference(model)ermiaazarkhalili/Qwen3.5-2B-Function-Calling-xLAM-Unsloth-GGUF:1# llama-cli
2llama-cli -hf ermiaazarkhalili/Qwen3.5-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/Qwen3.5-2B-Function-Calling-xLAM-Unsloth-GGUF:Q4_K_MSalesforce/xlam-function-calling-60k.FastLanguageModelQwen3.5-2B, inherits its limitations and biases.1@misc{ qwen35_2b_xlam_unsloth_2026 ,
2 author = {Ermia Azarkhalili},
3 title = { Qwen3.5-2B-xLAM-Unsloth — Function-calling fine-tune of Qwen3.5-2B },
4 year = {2026},
5 publisher = {Hugging Face},
6 howpublished = {\url{https://huggingface.co/ermiaazarkhalili/Qwen3.5-2B-Function-Calling-xLAM-Unsloth}}
7}