Text Generation
Transformers
Safetensors
qwen3_5_text
unsloth
lora
trl
sft
conversational
4-bit precision
bitsandbytes
Instructions to use ermiaazarkhalili/Qwen3.5-0.8B-Function-Calling-xLAM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ermiaazarkhalili/Qwen3.5-0.8B-Function-Calling-xLAM with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ermiaazarkhalili/Qwen3.5-0.8B-Function-Calling-xLAM") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ermiaazarkhalili/Qwen3.5-0.8B-Function-Calling-xLAM") model = AutoModelForCausalLM.from_pretrained("ermiaazarkhalili/Qwen3.5-0.8B-Function-Calling-xLAM", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ermiaazarkhalili/Qwen3.5-0.8B-Function-Calling-xLAM with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ermiaazarkhalili/Qwen3.5-0.8B-Function-Calling-xLAM" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ermiaazarkhalili/Qwen3.5-0.8B-Function-Calling-xLAM", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/ermiaazarkhalili/Qwen3.5-0.8B-Function-Calling-xLAM
- SGLang
How to use ermiaazarkhalili/Qwen3.5-0.8B-Function-Calling-xLAM with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "ermiaazarkhalili/Qwen3.5-0.8B-Function-Calling-xLAM" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ermiaazarkhalili/Qwen3.5-0.8B-Function-Calling-xLAM", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "ermiaazarkhalili/Qwen3.5-0.8B-Function-Calling-xLAM" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ermiaazarkhalili/Qwen3.5-0.8B-Function-Calling-xLAM", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use ermiaazarkhalili/Qwen3.5-0.8B-Function-Calling-xLAM with Docker Model Runner:
docker model run hf.co/ermiaazarkhalili/Qwen3.5-0.8B-Function-Calling-xLAM
Qwen3.5-0.8B-Function-Calling-xLAM
A LoRA fine-tune of Qwen/Qwen3.5-0.8B.
| Base model | Qwen/Qwen3.5-0.8B |
| Architecture | Qwen3_5ForCausalLM |
| Parameters | 752M |
| Method | LoRA supervised fine-tuning via Unsloth + TRL |
| License | apache-2.0 (inherited from the base model) |
Usage
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "ermiaazarkhalili/Qwen3.5-0.8B-Function-Calling-xLAM"
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))
Training configuration
| Setting | Value |
|---|---|
| LoRA rank (r) | 16 |
| LoRA alpha | 32 |
| Learning rate | 0.0001 |
| Epochs | 1 |
| Effective batch size | 8 (2 x 4 grad accum) |
| Base precision | 4-bit (QLoRA) |
Limitations
- No benchmark evaluation has been run on this checkpoint. The only reported numbers are training-loss observations.
- Inherits the biases, knowledge cutoff and failure modes of the base model.
- Fine-tuned on a single instruction-following dataset; behaviour outside that distribution is untested.
- LoRA adapters were merged into the base weights, so the merged model cannot be detached from this fine-tune.
Reproducing
Trained by notebooks/xlam_function_calling_qwen3.5-0.8b.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.
- Downloads last month
- 228