Downloads · 30 days
9
9% of all-time downloads
mentriaai/Qwen3.5-0.8B-quotes-ONNX
Qwen3.5-0.8B-quotes-ONNX is a image-text-to-text model from mentriaai. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. It is set up for transformers.js. The card lists the license as apache-2.0.
A fine-tuned version of Qwen3.5-0.8B optimized for generating original, poetic motivational quotes. Converted to ONNX with Q4 quantization for efficient in-browser inference via Transformers.js.
Downloads · 30 days
9
9% of all-time downloads
All-time downloads
98
Public
Repo size
862 MB
Likes
0
Public
Click a slice to open those files.
.onnx_data841 MB · 98%
From the Hugging Face model README
A fine-tuned version of Qwen3.5-0.8B optimized for generating original, poetic motivational quotes. Converted to ONNX with Q4 quantization for efficient in-browser inference via Transformers.js.
Try it live: mentria.ai/tools/quote · Run an LLM in your browser
The model runs entirely in your browser using WebGPU (or WASM fallback), with no account or API key. Your prompts are processed on your device, and the weights are cached locally after the first download.
import { AutoProcessor, AutoModelForImageTextToText, TextStreamer } from '@huggingface/transformers';
const MODEL_ID = 'mentriaai/Qwen3.5-0.8B-quotes-ONNX';
const processor = await AutoProcessor.from_pretrained(MODEL_ID);
const model = await AutoModelForImageTextToText.from_pretrained(MODEL_ID, {
dtype: { embed_tokens: 'q4', vision_encoder: 'fp16', decoder_model_merged: 'q4' },
device: 'webgpu',
});
const messages = [
{ role: 'system', content: 'You are a poetic thinker. Write one short, original motivational quote (1-2 sentences). Do not attribute it to anyone. No preamble, no quotation marks — just the quote itself.' },
{ role: 'user', content: [{ type: 'text', text: 'Give me a motivational quote.' }] },
];
const textContent = processor.apply_chat_template(messages, {
tokenize: false,
add_generation_prompt: true,
});
const inputs = await processor(textContent, null, { padding: true, truncation: true });
const streamer = new TextStreamer(processor.tokenizer, {
skip_prompt: true,
skip_special_tokens: true,
callback_function(token) {
process.stdout.write(token);
},
});
await model.generate({
...inputs,
max_new_tokens: 128,
do_sample: true,
temperature: 0.9,
top_p: 0.95,
streamer,
});
The seeds you plant in silence become the forests that speak for you.
Fear is a compass — it always points toward the thing worth doing.
You are both the sculptor and the marble — chip away everything that is not you.
The coastline of your dreams is where the sea meets the shore — follow it.
| Base model | Qwen/Qwen3.5-0.8B |
| Architecture | Hybrid Mamba (DeltaNet) + Transformer, 24 layers, 0.8B params |
| Fine-tuning | LoRA (rank 16, scale 2.0, all linear layers), 200 iterations |
| Training data | 229 curated motivational quotes in chat format |
| Training hardware | Apple M4 Pro 24GB via mlx-lm |
| ONNX source | Weight-swapped from onnx-community/Qwen3.5-0.8B-ONNX |
| Quantization | Q4 (4-bit weight-only, block size 32) |
| License | Apache 2.0 |
onnx/
decoder_model_merged_q4.onnx (813 KB graph + 452 MB weights)
embed_tokens_q4.onnx (857 B graph + 155 MB weights)
vision_encoder_fp16.onnx (183 KB graph + 195 MB weights)
Total download: ~802 MB on WebGPU (cached by the browser after first load).
Mentria is AI that runs in your browser, with built-in tools, an extensions library and card decks for learning. Add your own extensions and decks. Your data stays private. The motivational quote generator is one of its AI tools: mentria.ai/tools/quote.