Feature Extraction
Transformers
ONNX
nomic_bert
quantized
int8
code-search
embedding
nomic-bert
text-embeddings-inference
Instructions to use mrsladoje/CodeRankEmbed-onnx-int8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mrsladoje/CodeRankEmbed-onnx-int8 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="mrsladoje/CodeRankEmbed-onnx-int8")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("mrsladoje/CodeRankEmbed-onnx-int8") model = AutoModel.from_pretrained("mrsladoje/CodeRankEmbed-onnx-int8", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
docs: update README with reduce_range=True rationale and Zen 3 fix
Verified signaturee74f446 -
fix(quantization): re-quantize with reduce_range=True
Verified signatureOriginal v1 quantization omitted reduce_range=True, producing full-range INT8 weights (-128..127). On pre-VNNI x86 CPUs (AMD Zen 3 / EPYC 7543, older Intel), ORT's AVX2-only INT8 kernel has an int16 accumulator that overflows on full-range weights, producing degenerate embeddings (all inputs collapse to a near-constant manifold). reduce_range=True clamps weights to [-64, 63], leaving 1 bit of accumulator headroom. VNNI CPUs (Intel Cascade Lake+, AMD Zen 4+) and Apple Silicon are unaffected — they use different kernel paths that handle full-range INT8 natively. New SHA256: 4eae31d09b1843103a1ebd5e2b2e24b5a5cad441a33906b35b12b1e2ed91d1db95c2a74
-
Rename onnx/model_quantized.onnx to onnx/model.onnx
Verified signature5588dcf -
Upload LICENSE with huggingface_hub
Verified signature05bff10 -
Upload README.md with huggingface_hub
Verified signature329639e -
Upload onnx/model_quantized.onnx with huggingface_hub
Verified signatureb52ca89 -
Upload special_tokens_map.json with huggingface_hub
Verified signature60fd8ce -
Upload vocab.txt with huggingface_hub
Verified signature6f69d39 -
Upload tokenizer_config.json with huggingface_hub
Verified signature79885d7 -
Upload tokenizer.json with huggingface_hub
Verified signature382610c -
Upload config.json with huggingface_hub
Verified signature7869b5f -
initial commit
Verified signaturee86742a