onnx-community/Olmo-3-7B-Instruct-ONNX
By onnx-community · ↓ 8 · ♥ 0 · Updated 2025-12-08
What's in this repo
This page lists the files in onnx-community/Olmo-3-7B-Instruct-ONNX, including model.onnx, model_fp16.onnx, model_q4.onnx and more.
- 5 ONNX models (.onnx files)
- 43 files, including 5 .onnx, 5 .onnx_data, 5 .onnx_data_1, 4 .json, 3 .onnx_data_2, 3 .onnx_data_3
- Last updated 2025-12-08
ONNX files
| File | Size | Download |
|---|---|---|
| onnx/model.onnx | — | Download |
| onnx/model_fp16.onnx | — | Download |
| onnx/model_q4.onnx | — | Download |
| onnx/model_q4f16.onnx | — | Download |
| onnx/model_quantized.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
Use with Transformers.js
[!IMPORTANT]
Note: This model requires Transformers.js v4.0.0 and above!
If you haven't already, you can install the Transformers.js JavaScript library from NPM using:
npm i @huggingface/transformers
Example: Basic example
import { pipeline, TextStreamer } from "@huggingface/transformers";
// Create a text generation pipeline
const generator = await pipeline(
"text-generation",
"onnx-community/Olmo-3-7B-Instruct-ONNX",
{ dtype: "q4f16", device: "webgpu" },
);
// Define the list of messages
const messages = [
{ role: "system", content: "You are a helpful assistant." },
{ role: "user", content: "Write me a poem about Machine Learning." },
];
// Generate a response
const output = await generator(messages, {
max_new_tokens: 512,
do_sample: false,
streamer: new TextStreamer(generator.tokenizer, { skip_prompt: true, skip_special_tokens: true }),
});
console.log(output[0].generated_text.at(-1).content);
Model info
Created: 2025-12-05
Updated: 2025-12-08
View on Hugging Face