Views
No views yet
1try (var gen = OnnxTextGenerator.qwen2().build()) {
2 GenerationResult result = gen.generate("What is Java?");
3 System.out.println(result.text());
4}| Property | Value |
|---|---|
| Architecture | Qwen2ForCausalLM (1.5B parameters, 28 layers, 1536 hidden, 12 heads, 2 KV heads) |
| Task | Text generation (instruction-tuned) |
| Precision | FP16 |
| Context length | 32,768 tokens |
| Vocabulary | 151,936 tokens (BPE) |
| Chat template | ChatML (`< |
| Original framework | PyTorch (transformers) |
| Export method | Hugging Face Optimum (with KV cache, FP16) |