inference4j/smollm2-360m-instruct
By inference4j · ↓ 19 · ♥ 0 · Updated 2026-02-21
What's in this repo
This page lists the files in inference4j/smollm2-360m-instruct, including model.onnx.
- 1 ONNX models (.onnx files)
- 9 files, including 4 .json, 1 .md, 1 .jinja, 1 .txt, 1 .onnx
- Last updated 2026-02-21
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
SmolLM2-360M-Instruct — ONNX
ONNX export of SmolLM2-360M-Instruct (360M parameters) with KV cache support for efficient autoregressive generation.
Converted for use with inference4j, an inference-only AI library for Java.
Original Source
- Repository: HuggingFaceTB/SmolLM2-360M-Instruct
- License: Apache 2.0
Usage with inference4j
try (var gen = SmolLM2TextGenerator.builder().build()) {
GenerationResult result = gen.generate("What is Java?");
System.out.println(result.text());
}
Model Details
| Property | Value |
|---|---|
| Architecture | LlamaForCausalLM (360M parameters, 32 layers, 960 hidden, 15 heads, 5 KV heads) |
| Task | Text generation (instruction-tuned) |
| Context length | 8192 tokens |
| Vocabulary | 49,152 tokens (BPE) |
| Chat template | ChatML (`< |
| Original framework | PyTorch (transformers) |
| Export method | Hugging Face Optimum (with KV cache) |
License
This model is licensed under the Apache License 2.0. Original model by HuggingFace.
Model info
Created: 2026-02-21
Updated: 2026-02-21
View on Hugging Face