Instructions to use hongduc05/qwen3-chat-sum-5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hongduc05/qwen3-chat-sum-5 with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("hongduc05/qwen3-chat-sum-5", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Unsloth Studio
How to use hongduc05/qwen3-chat-sum-5 with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for hongduc05/qwen3-chat-sum-5 to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for hongduc05/qwen3-chat-sum-5 to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for hongduc05/qwen3-chat-sum-5 to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="hongduc05/qwen3-chat-sum-5", max_seq_length=2048, )
Model Card for qwen3-chat-sum-5
This model is a fine-tuned version of unsloth/Qwen3-1.7B. It has been trained using TRL.
Quick start
from transformers import pipeline
question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"
generator = pipeline("text-generation", model="hongduc05/qwen3-chat-sum-5", device="cuda")
output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
print(output["generated_text"])
Training procedure
This model was trained with SFT.
Framework versions
- TRL: 0.24.0
- Transformers: 4.57.6
- Pytorch: 2.11.0
- Datasets: 4.3.0
- Tokenizers: 0.22.2
Citations
Cite TRL as:
@misc{vonwerra2022trl,
title = {{TRL: Transformer Reinforcement Learning}},
author = {Leandro von Werra and Younes Belkada and Lewis Tunstall and Edward Beeching and Tristan Thrush and Nathan Lambert and Shengyi Huang and Kashif Rasul and Quentin Gallou{\'e}dec},
year = 2020,
journal = {GitHub repository},
publisher = {GitHub},
howpublished = {\url{https://github.com/huggingface/trl}}
}
Evaluation โ checkpoint-363
This checkpoint was evaluated on the held-out Vietnamese chat-summarization test split using Transformers + PEFT, without vLLM. The base model Qwen/Qwen3-1.7B was loaded with BitsAndBytes 4-bit NF4 quantization and the LoRA adapter from hongduc05/qwen3-chat-sum-5/checkpoint-363 was attached with PeftModel.from_pretrained.
Inference setup
- Base model:
Qwen/Qwen3-1.7B - Adapter checkpoint:
hongduc05/qwen3-chat-sum-5/checkpoint-363 - Adapter config recorded base:
unsloth/Qwen3-1.7B - Backend: Transformers + PEFT + BitsAndBytes
- Quantization: 4-bit NF4, double quantization, compute dtype
torch.bfloat16 - Thinking: disabled with
enable_thinking=False - Sampling: temperature=0.7, top_p=0.8, top_k=20, min_p=0.0
- Max sequence length: 2048
- Max new tokens: 256
- Data split: 80/10/10, seed 42; rows after cleaning: 4810; test rows: 481
- Vietnamese metric tokenization:
underthesea - METEOR implementation: exact Vietnamese token matching, without English stemming/WordNet
Test results
| Metric | Value |
|---|---|
| Mean BLEU | 0.173951 |
| Mean ROUGE-1 F1 | 0.510965 |
| Mean ROUGE-2 F1 | 0.237379 |
| Mean ROUGE-L F1 | 0.425935 |
| Mean METEOR | 0.432727 |
| Latency mean (sec/sample) | 4.187413 |
| Latency p50 (sec/sample) | 4.101579 |
| Latency p95 (sec/sample) | 5.519641 |
| Mean prompt tokens | 432.10 |
| Mean generated tokens | 42.94 |
Detailed predictions and per-sample metrics: evaluation/checkpoint-363_test_results.xlsx
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐ Ask for provider support