Downloads · 30 days
8
10% of all-time downloads
rubenz-org/qwen2-5-0-5b-instruct-mlc
qwen2-5-0-5b-instruct-mlc is a machine learning model from rubenz-org. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for mlc-llm. The card lists the license as apache-2.0.
This is a quantized and optimized version of Qwen2.5 0.5B Instruct compiled with MLC-LLM for WebGPU deployment in browsers.
Downloads · 30 days
8
10% of all-time downloads
All-time downloads
80
Public
Repo size
307 MB
Likes
0
Public
Click a slice to open those files.
.bin278 MB · 89%
From the Hugging Face model README
This is a quantized and optimized version of Qwen2.5 0.5B Instruct compiled with MLC-LLM for WebGPU deployment in browsers.
import * as webllm from '@mlc-ai/web-llm';
const customModels = [
{
model: "https://huggingface.co/rubenz-org/qwen2-5-0-5b-instruct-mlc",
model_id: "qwen2.5-0.5b-instruct-custom",
// Use official WebLLM WASM runtime for compatibility
model_lib: "https://raw.githubusercontent.com/mlc-ai/binary-mlc-llm-libs/main/Qwen2.5-0.5B-Instruct-q4f32_1-MLC-1k.wasm",
vram_required_MB: 800,
low_resource_required: true,
overrides: {
context_window_size: 2048,
prefill_chunk_size: 512,
},
},
];
const engine = await webllm.CreateMLCEngine("qwen2.5-0.5b-instruct-custom", {
appConfig: { model_list: customModels }
});
const response = await engine.chat.completions.create({
messages: [{ role: 'user', content: 'Hello! How can you help me today?' }],
stream: true,
temperature: 0.7,
max_tokens: 512,
});
for await (const chunk of response) {
const content = chunk.choices[0]?.delta?.content || '';
if (content) {
console.log(content);
}
}
mlc-chat-config.json: Model configuration for MLC-LLMparams_shard_*.bin: Quantized model parameters (8 shards)tokenizer.json, vocab.json, merges.txt: Tokenizer filestensor-cache.json: Parameter metadata cacheThis model is optimized for browser deployment with:
This model follows the same license as the original Qwen2.5 model (Apache 2.0).