Downloads · 30 days
21
15% of all-time downloads
ying2022/qwen3-6-35b-xlam-tools-lora
qwen3-6-35b-xlam-tools-lora is a machine learning model from ying2022. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft. The card lists the license as apache-2.0.
A LoRA adapter fine-tuned on minpeter/xlam-function-calling-60k-parsed from the Qwen/Qwen3.6-35B-A3B base model.
Downloads · 30 days
21
15% of all-time downloads
All-time downloads
140
Public
Repo size
108 MB
Likes
1
Public
Click a slice to open those files.
.safetensors108 MB · 100%
From the Hugging Face model README
A LoRA adapter fine-tuned on minpeter/xlam-function-calling-60k-parsed from the Qwen/Qwen3.6-35B-A3B base model.
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
import torch
base = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen3.6-35B-A3B",
torch_dtype=torch.bfloat16,
device_map="auto",
)
model = PeftModel.from_pretrained(base, "ying2022/qwen3-6-35b-xlam-tools-lora")
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen3.6-35B-A3B")
messages = [{"role": "user", "content": "<your prompt here>"}]
inputs = tokenizer.apply_chat_template(messages, return_tensors="pt", add_generation_prompt=True).to(model.device)
outputs = model.generate(inputs, max_new_tokens=500, temperature=0.3)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
vllm serve Qwen/Qwen3.6-35B-A3B \
--enable-lora \
--lora-modules adapter=ying2022/qwen3-6-35b-xlam-tools-lora \
--max-loras 1 --max-lora-rank 64 \
--tensor-parallel-size 2 \
--gpu-memory-utilization 0.90 \
--max-model-len 4096