1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3# Load the quantized model
4model = AutoModelForCausalLM.from_pretrained("Thomaschtl/qwen3-0.6b-qat-test")
5tokenizer = AutoTokenizer.from_pretrained("Thomaschtl/qwen3-0.6b-qat-test")
6
7# Generate text
8prompt = "The future of AI is"
9inputs = tokenizer(prompt, return_tensors="pt")
10outputs = model.generate(**inputs, max_length=100, do_sample=True, temperature=0.7)
11
12print(tokenizer.decode(outputs[0], skip_special_tokens=True))
@misc{qwen3-qat,
title={Qwen3-0.6B Quantized with QAT},
author={Thomaschtl},
year={2025},
publisher={Hugging Face},
url={https://huggingface.co/Thomaschtl/qwen3-0.6b-qat-test}
}
This model follows the same license as the base model (Apache 2.0).