Downloads · 30 days
0
sighrobot/ReaderLM-v2-q4f16_1-MLC
ReaderLM-v2-q4f16_1-MLC is a machine learning model from sighrobot. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This is jinaai/ReaderLM-v2 compiled for WebLLM/MLC-LLM with q4f161 quantization.
Downloads · 30 days
0
Access
Public
Updated Dec 23, 2025
Repo size
885 MB
Likes
0
Public
Click a slice to open those files.
.bin869 MB · 97%
From the Hugging Face model README
This is jinaai/ReaderLM-v2 compiled for WebLLM/MLC-LLM with q4f16_1 quantization.
import * as webllm from "@mlc-ai/web-llm";
const MODEL_ID = "ReaderLM-v2-q4f16_1-MLC";
const MODEL_URL = "https://huggingface.co/YOUR_USERNAME/ReaderLM-v2-q4f16_1-MLC/resolve/main";
const engine = await webllm.CreateMLCEngine(MODEL_ID, {
appConfig: {
model_list: [
{
model_id: MODEL_ID,
model: MODEL_URL,
model_lib: `${MODEL_URL}/model.wasm`,
},
],
},
});
const response = await engine.chat.completions.create({
messages: [{ role: "user", content: "Your prompt here" }],
temperature: 0.3,
});
console.log(response.choices[0].message.content);
model.wasm - Compiled WebGPU modelparams_shard_*.bin - Quantized model weights (30 shards)mlc-chat-config.json - Model configurationtokenizer.json, vocab.json, merges.txt - Tokenizer filesThis model was compiled using MLC-LLM with the following settings:
# Convert weights
python -m mlc_llm convert_weight ./ReaderLM-v2 --quantization q4f16_1 --output ./dist
# Generate config
python -m mlc_llm gen_config ./ReaderLM-v2 --quantization q4f16_1 --conv-template chatml --context-window-size 8192 --output ./dist
# Compile for WebGPU
python -m mlc_llm compile ./dist --device webgpu --output ./dist/model.wasm
Same as the original ReaderLM-v2 model.