ONNX Model Zoo

inference4j/tinyllama-1.1b-chat

By inference4j · ↓ 14 · ♥ 0 · Updated 2026-02-24

What's in this repo

This page lists the files in inference4j/tinyllama-1.1b-chat, including model.onnx.

  • 1 ONNX models (.onnx files)
  • 7 files, including 2 .json, 1 .md, 1 .jinja, 1 .onnx, 1 .onnx_data
  • Last updated 2026-02-24

ONNX files

File Size Download
model.onnx — Download

How to use

These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.

README

TinyLlama-1.1B-Chat — ONNX (FP16)

ONNX export of TinyLlama-1.1B-Chat-v1.0 (1.1B parameters, FP16 weights) with KV cache support for efficient autoregressive generation.

Converted for use with inference4j, an inference-only AI library for Java.

Original Source

Usage with inference4j

try (var gen = OnnxTextGenerator.tinyLlama().build()) {
    GenerationResult result = gen.generate("What is Java?");
    System.out.println(result.text());
}

Model Details

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)

License

This model is licensed under the Apache License 2.0. Original model by TinyLlama.

Model info

onnx llama text-generation tinyllama inference4j conversational license:apache-2.0 region:us
↓ 14 ♥ 0

Created: 2026-02-24

Updated: 2026-02-24

View on Hugging Face

Files (7)

.gitattributes
README.md
chat_template.jinja
config.json
model.onnx ONNX
model.onnx_data
tokenizer.json

Related models