Downloads · 30 days
17
3% of all-time downloads
Vinay121A/Qwen2.5-Coder-0.5B-Instruct-tied-embed-q4
Qwen2.5-Coder-0.5B-Instruct-tied-embed-q4 is a text generation model from Vinay121A. Use it when you need the model to write or continue text.
This is a derivative of onnx-community/Qwen2.5-Coder-0.5B-Instruct, an ONNX export of Qwen/Qwen2.5-Coder-0.5B-Instruct.
Downloads · 30 days
17
3% of all-time downloads
All-time downloads
546
Public
Repo size
401 MB
Likes
0
Public
Click a slice to open those files.
.onnx_data390 MB · 97%
From the Hugging Face model README
This is a derivative of onnx-community/Qwen2.5-Coder-0.5B-Instruct, an ONNX export of Qwen/Qwen2.5-Coder-0.5B-Instruct.
Architecture, tokenizer, and generation config are unchanged from the base model — only the weight quantization differs.
Qwen2.5-Coder-0.5B-Instruct uses tied input/output embeddings (tie_word_embeddings: true). The base repo's q4 export quantizes the rest of the model but leaves embed_tokens unquantized at FP32 (~519MB), because the default quantization config excludes Gather ops from quantization.
This export re-quantizes with op_types_to_quantize including "Gather", so embed_tokens is quantized along with everything else. Total on-disk size drops from ~862MB to ~390MB, with no observed quality regression on manual spot checks (fibonacci / debounce / palindrome completions).
onnx/model_q4.onnx — graph fileonnx/model_q4.onnx_data — external weight data (ONNX external-data format, referenced by onnx/model_q4.onnx)Same as the base model — e.g. with 🤗 Transformers.js:
import { pipeline } from '@huggingface/transformers';
const generator = await pipeline('text-generation', 'Vinay121A/Qwen2.5-Coder-0.5B-Instruct-tied-embed-q4', {
dtype: 'q4',
});