Views
No views yet
1try (var gen = OnnxTextGenerator.tinyLlama().build()) {
2 GenerationResult result = gen.generate("What is Java?");
3 System.out.println(result.text());
4}| Property | Value |
|---|---|
| Architecture | LlamaForCausalLM (1.1B parameters, 22 layers, 2048 hidden, 32 heads, 4 KV heads) |
| Task | Text generation (instruction-tuned, Zephyr chat template) |
| Precision | FP16 |
| Context length | 2048 tokens |
| Vocabulary | 32,000 tokens (SentencePiece BPE) |
| Chat template | Zephyr (`< |
| Original framework | PyTorch (transformers) |
| Export method | Hugging Face Optimum (with KV cache, FP16) |