Downloads · 30 days
229
28% of all-time downloads
BananaMind/BananaMind-2-Medium-Chat-ONNX
BananaMind-2-Medium-Chat-ONNX is a text generation model from BananaMind. Use it when you need the model to write or continue text. It is set up for transformers.js.
ONNX export of BananaMind/BananaMind-2-Medium-Chat, with KV cache, for Transformers.js and ONNX Runtime.
Downloads · 30 days
229
28% of all-time downloads
All-time downloads
815
Public
Repo size
481 MB
Likes
0
Public
Click a slice to open those files.
.onnx481 MB · 100%
From the Hugging Face model README
ONNX export of BananaMind/BananaMind-2-Medium-Chat, with KV cache, for Transformers.js and ONNX Runtime.
The weights were remapped into an equivalent Qwen3 layout (RoPE pair permutation, embedding scale folded in), so no custom code is needed. The fp32 export matches the original model's greedy output exactly.
| File | dtype | Size | Top-1 agreement | Mean KL |
|---|---|---|---|---|
onnx/model.onnx | fp32 | 224 MB | reference | reference |
onnx/model_fp16.onnx | fp16 | 119 MB | 99.84% | < 0.0001 |
onnx/model_quantized.onnx | q8 (weight-only int8) | 82 MB | 98.10% | 0.0014 |
onnx/model_q4.onnx | q4 | 78 MB | 75.61% | 0.2241 |
Top-1 agreement and mean per-token KL(fp32 ‖ variant) are measured against the fp32 model over 2,000 WikiText-2 prompts (225,265 tokens, up to 128 tokens each).
fp16 is effectively lossless and q8 is close to the original. q4 is heavily degraded for a model this small and is not recommended.
import { pipeline } from "@huggingface/transformers";
const generator = await pipeline("text-generation", "BananaMind/BananaMind-2-Medium-Chat-ONNX", { dtype: "fp16" });
const out = await generator([{ role: "user", content: "What is the capital of France?" }], { max_new_tokens: 128 });
console.log(out[0].generated_text.at(-1).content);