Text Generation
Transformers
Safetensors
Vietnamese
unsloth
qwen
function-calling
vietnamese
finetuned
chatml
conversational
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("Dqdung205/qwen-function-calling-model", dtype="auto")Quick Links
🧠 Qwen Function-Calling (Vietnamese Finetune)
Model này là một phiên bản Qwen-based model được finetune bằng Unsloth
trên dữ liệu hội thoại tiếng Việt có khả năng function-calling từ bộ dữ liệu:
👉 5CD-AI/Vietnamese-Locutusque-function-calling-chatml-gg-translated
🧩 Model Details
- Base model: Qwen/Qwen2.5-7B-Instruct
- Finetuning framework: Unsloth
- Task: Text Generation + Function Calling
- Language: Vietnamese 🇻🇳
- Architecture: Decoder-only Transformer (Causal LM)
- License: MIT
- Finetuned from: Qwen base model
🚀 How to Use
Inference Example (Transformers)
from transformers import AutoTokenizer, AutoModelForCausalLM
model_id = "dungai/qwen-function-calling"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)
prompt = "Xin chào! Hãy gọi hàm `get_weather` với tham số thành phố là Hà Nội."
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=128)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Dqdung205/qwen-function-calling-model") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)