Downloads · 30 days
5
4% of all-time downloads
NKTgAI/Qwen2.5-0.5B-Instruct-LLM
Qwen2.5-0.5B-Instruct-LLM is a machine learning model from NKTgAI. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
python from transformers import AutoModelForCausalLM, AutoTokenizer
Downloads · 30 days
5
4% of all-time downloads
All-time downloads
115
Public
Parameters
494M
988 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors988 MB · 99%
From the Hugging Face model README
---
license: apache-2.0
base_model:
- Qwen/Qwen2.5-0.5B-Instruct
library_name: transformers
language:
- vi
---
# Qwen2.5-0.5B-Instruct-xanhnon
## Instruction
Llama3.2-1B-Instruct-xanhnon, Llama3.2-3B-Instruct-xanhnon, Qwen2.5-0.5B-Instruct-xanhnon, Qwen2.5-1.5B-Instruct-xanhnon, and Qwen2.5-3B-Instruct-xanhnon are a collection of models fine-tuned on the open Qwen2.5* and Llama3.2* models. They are optimized for Vietnamese language understanding and generation tasks such as reading comprehension, information extraction, question answering and summarization.
## Quickstart
This is a demonstration of loading a model and performing a question-answering or summarization task.
```python
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "Qwen2.5-3B-Instruct-xanhnon"
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype="auto",
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained(model_name)
prompt = "Xin chào !"
messages = [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": prompt}
]
text = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True
)
model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
generated_ids = model.generate(
**model_inputs,
max_new_tokens=512
)
generated_ids = [
output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
]
response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
(giữ nguyên như bản gốc)
We evaluate our fine-tuned models on VMLU benchmarks provided by https://vmlu.ai
| Model | VMLU | ViSquad | ViDrop | ViDialog |
|---|---|---|---|---|
| Llama3.2-1B-Instruct | 37.6 | 70.1 | 29.6 | 33.9 |
| Llama3.2-3B-Instruct | 47.6 | 90.3 | 63.5 | 50.8 |
| Qwen2.5-0.5B-Instruct | 39.1 | 62.5 | 31.5 | 28.0 |
| Qwen2.5-1.5B-Instruct | 48.6 | 86.7 | 54.5 | 39.8 |
| Qwen2.5-3B-Instruct | 52.9 | 88.3 | 72.4 | 54.4 |
| <br/>Our finetuned models | ||||
| Llama3.2-1B-Instruct-xanhnon | 50.5 (+12.9) | 88.4 (+18.3) | 71.1 (+41.5) | 50.9 (+17.0) |
| Llama3.2-3B-Instruct-xanhnon | 58.1 (+10.5) | 93.5 (+3.2) | 81.4 (+17.9) | 67.3 (+16.5) |
| Qwen2.5-0.5B-Instruct-xanhnon | 49.7 (+10.6) | 87.3 (+24.8) | 62.3 (+30.8) | 39.0 (+11.0) |
| Qwen2.5-1.5B-Instruct-xanhnon | 57.5 (+8.9) | 93.3 (+6.6) | 76.0 (+21.5) | 54.6 (+14.8) |
| Qwen2.5-3B-Instruct-xanhnon | 63.5 (+10.6) | 94.2 (+5.9) | 80.9 (+8.5) | 68.5 (+14.1) |
We follow the evaluation method outlined in https://github.com/lmarena/arena-hard-auto (github.com in Bing) to assess our fine-tuned models against others on the ArenaHard benchmark.
Qwen/Qwen2.5-7B-InstructQwen/Qwen2.5-72B-Instruct| # | model | size (B) | win | tie | lose |
|---|---|---|---|---|---|
| 1 | deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | 14 | 59,5 | 4,6 | 35,9 |
| 2 | CohereForAI/aya-expanse-8b | 8 | 55 | 4,6 | 40,4 |
| 3 | Qwen/Qwen2.5-14B-Instruct | 14 | 48,7 | 9,1 | 42,2 |
| 4 | xanhnon-ailab/Qwen2.5-3B-Instruct-xanhnon | 3 | 38,7 | 4,7 | 56,6 |
| 5 | meta-llama/Llama3.1-8B-Instruct | 8 | 38,6 | 4,9 | 56,5 |
| 6 | CohereForAI/c4ai-command-r7b-12-2024 | 7 | 35,1 | 3,3 | 61,6 |
| 7 | xanhnon-ailab/Llama3.2-3B-Instruct-xanhnon | 3 | 35 | 4,3 | 60,7 |
| 8 | arcee-ai/Arcee-VyLinh | 3 | 34,8 | 5,4 | 59,8 |
| 9 | xanhnon-ailab/Qwen2.5-1.5B-Instruct-xanhnon | 1,5 | 28,9 | 3,9 | 67,2 |
| 10 | deepseek-ai/DeepSeek-R1-Distill-Qwen-7B | 7 | 23,2 | 2,8 | 74 |
| 11 | meta-llama/Llama-3.2-3B-Instruct | 3 | 21,2 | 4,4 | 74,4 |
| 12 | Qwen/Qwen2.5-3B-Instruct | 3 | 18,6 | 5,8 | 75,6 |
| 13 | zaloai/Llama3.2-1B-Instruct-ZAI | 1 | 17,4 | 3,7 | 78,9 |
| 14 | Viet-Mistral/Vistral-7B-Chat | 7 | 17,2 | 3,2 | 79,6 |
| 15 | xanhnon-ailab/Qwen2.5-0.5B-Instruct-xanhnon | 0,5 | 10,9 | 2 | 87,1 |
| 16 | meta-llama/Llama-3.2-1B-Instruct | 1 | 6,5 | 1,6 | 91,9 |
| 17 | Qwen/Qwen2.5-1.5B-Instruct | 1 | 6,4 | 3 | 90,6 |
| 18 | deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B | 1,5 | 3 | 1,5 | 95,5 |
| 19 | vinai/PhoGPT-4B-Chat | 4 | 1,2 | 2,7 | 96,1 |
| 20 | Qwen/Qwen2.5-0.5B-Instruct | 0,5 | 1 | 1,7 | 97,3 |