ONNX Model Zoo

electroglyph/snowflake-arctic-embed-m-v2.0-ONNX-quant

By electroglyph · ↓ 16 · ♥ 0 · Updated 2025-09-19

What's in this repo

This page lists the files in electroglyph/snowflake-arctic-embed-m-v2.0-ONNX-quant, including model.onnx.

  • 1 ONNX models (.onnx files)
  • 15 files, including 7 .json, 3 .png, 2 .py, 1 .md, 1 .onnx
  • Last updated 2025-09-19

ONNX files

File Size Download
onnx/model.onnx — Download

How to use

These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.

README

snowflake-arctic-embed-m-v2.0-ONNX-quant

This is a mostly uint8 quantized version of this model: https://huggingface.co/Snowflake/snowflake-arctic-embed-m-v2.0/blob/main/onnx/model.onnx

However, some of the ONNX graph nodes are left unquantized for better accuracy. This model, on average, roughly equals the accuracy of the full precision ONNX model. The int8 sized model here is a bit less accurate.

I'll be using this model as the base for one with uint8 output.

Quantization method

I instrumented the model and measured the dynamic range of all the graph nodes while processing tokens from my dataset here: https://github.com/electroglyph/dataset_build

It took quite a while, because I had to do this model in batches. It used 200+ GB of RAM to attempt to instrument the entire model (which I don't actually have).

Some languages were automatically removed from my dataset because the tokenizer couldn't completely handle them:

Unknown token (<unk>) found for lang: jpn, skipping this language.
Unknown token (<unk>) found for lang: kor, skipping this language.
Unknown token (<unk>) found for lang: zho, skipping this language.
Unknown token (<unk>) found for lang: math, skipping this language.

This left almost 1.4m tokens for analysis.

After the analysis I exempted 121 of the most sensitive graph nodes from quantization. This increased the model size to 366MB. When purely int8 or uint8 the model typically sits around 296MB.

Benchmarks

I included results for one of my other models: https://huggingface.co/electroglyph/embeddinggemma-300m-ONNX-uint8

The results for this model are a bit better than the default int8 sized onnx model, and the total of all the scores matches the f32 model.

mteb retrieval results

mteb totals

License

Arctic is licensed under the Apache-2. The released models can be used for commercial purposes free of charge.

Model info

sentence-similarity sentence-transformers
sentence-transformers onnx gte feature-extraction sentence-similarity mteb arctic snowflake-arctic-embed transformers.js custom_code af ar
↓ 16 ♥ 0

Created: 2025-09-19

Updated: 2025-09-19

View on Hugging Face

Files (15)

.gitattributes
1_Pooling/config.json
README.md
config.json
config_sentence_transformers.json
configuration_hf_alibaba_nlp_gte.py
modeling_hf_alibaba_nlp_gte.py
modules.json
mteb_results_by_task.png
mteb_total_scores.png
mteb_total_scores_graph.png
onnx/model.onnx ONNX
special_tokens_map.json
tokenizer.json
tokenizer_config.json

Related models