πŸ“‹ Model Description


quantized_by: bartowski pipeline_tag: text-generation language:
  • en
  • ar
  • cs
  • de
  • es
  • fr
  • it
  • ja
  • ko
  • nl
  • pt
  • zh
tags:
  • language
  • granite
  • embeddings
  • multilingual
license: apache-2.0 base_model: ibm-granite/granite-embedding-107m-multilingual model-index:
  • name: ibm-granite/granite-embedding-107m-multilingual
results: - task: type: Retrieval dataset: name: Miracl (en) type: miracl/mmteb-miracl config: en split: dev metrics: - type: ndcgat1 value: 0.41176 - type: ndcgat10 value: 0.46682 - type: ndcgat100 value: 0.54326 - type: ndcgat1000 value: 0.56567 - type: ndcgat20 value: 0.50157 - type: ndcgat3 value: 0.41197 - type: ndcgat5 value: 0.42086 - type: recallat1 value: 0.19322 - type: recallat10 value: 0.57721 - type: recallat100 value: 0.83256 - type: recallat1000 value: 0.95511 - type: recallat20 value: 0.6757 - type: recallat3 value: 0.37171 - type: recallat5 value: 0.44695 - task: type: Retrieval dataset: name: Miracl (ar) type: miracl/mmteb-miracl config: ar split: dev metrics: - type: ndcgat1 value: 0.55559 - type: ndcgat10 value: 0.62541 - type: ndcgat100 value: 0.67101 - type: ndcgat1000 value: 0.6805 - type: ndcgat20 value: 0.64739 - type: ndcgat3 value: 0.56439 - type: ndcgat5 value: 0.59347 - type: recallat1 value: 0.37009 - type: recallat10 value: 0.73317 - type: recallat100 value: 0.90066 - type: recallat1000 value: 0.96272 - type: recallat20 value: 0.80205 - type: recallat3 value: 0.56903 - type: recallat5 value: 0.6518 - task: type: Retrieval dataset: name: Miracl (bn) type: miracl/mmteb-miracl config: bn split: dev metrics: - type: ndcgat1 value: 0.56691 - type: ndcgat10 value: 0.65484 - type: ndcgat100 value: 0.70142 - type: ndcgat1000 value: 0.70994 - type: ndcgat20 value: 0.67838 - type: ndcgat3 value: 0.5988 - type: ndcgat5 value: 0.62718 - type: recallat1 value: 0.3605 - type: recallat10 value: 0.76854 - type: recallat100 value: 0.9285 - type: recallat1000 value: 0.97928 - type: recallat20 value: 0.83667 - type: recallat3 value: 0.61596 - type: recallat5 value: 0.69766 - task: type: Retrieval dataset: name: Miracl (de) type: miracl/mmteb-miracl config: de split: dev metrics: - type: ndcgat1 value: 0.41967 - type: ndcgat10 value: 0.45141 - type: ndcgat100 value: 0.53461 - type: ndcgat1000 value: 0.55463 - type: ndcgat20 value: 0.49012 - type: ndcgat3 value: 0.39486 - type: ndcgat5 value: 0.41496 - type: recallat1 value: 0.19494 - type: recallat10 value: 0.53774 - type: recallat100 value: 0.83314 - type: recallat1000 value: 0.95045 - type: recallat20 value: 0.65659 - type: recallat3 value: 0.3556 - type: recallat5 value: 0.44448 - task: type: Retrieval dataset: name: Miracl (es) type: miracl/mmteb-miracl config: es split: dev metrics: - type: ndcgat1 value: 0.54475 - type: ndcgat10 value: 0.46593 - type: ndcgat100 value: 0.58079 - type: ndcgat1000 value: 0.60656 - type: ndcgat20 value: 0.51858 - type: ndcgat3 value: 0.4578 - type: ndcgat5 value: 0.44321 - type: recallat1 value: 0.15966 - type: recallat10 value: 0.49343 - type: recallat100 value: 0.82684 - type: recallat1000 value: 0.95299 - type: recallat20 value: 0.62367 - type: recallat3 value: 0.2949 - type: recallat5 value: 0.37983 - task: type: Retrieval dataset: name: Miracl (fa) type: miracl/mmteb-miracl config: fa split: dev metrics: - type: ndcgat1 value: 0.36709 - type: ndcgat10 value: 0.46961 - type: ndcgat100 value: 0.53262 - type: ndcgat1000 value: 0.55024 - type: ndcgat20 value: 0.49892 - type: ndcgat3 value: 0.40235 - type: ndcgat5 value: 0.42866 - type: recallat1 value: 0.22735 - type: recallat10 value: 0.59949 - type: recallat100 value: 0.83867 - type: recallat1000 value: 0.95007 - type: recallat20 value: 0.68947 - type: recallat3 value: 0.41781 - type: recallat5 value: 0.49374 - task: type: Retrieval dataset: name: Miracl (fi) type: miracl/mmteb-miracl config: fi split: dev metrics: - type: ndcgat1 value: 0.59245 - type: ndcgat10 value: 0.65551 - type: ndcgat100 value: 0.6967 - type: ndcgat1000 value: 0.70521 - type: ndcgat20 value: 0.67552 - type: ndcgat3 value: 0.58876 - type: ndcgat5 value: 0.61779 - type: recallat1 value: 0.37669 - type: recallat10 value: 0.76529 - type: recallat100 value: 0.9156 - type: recallat1000 value: 0.96977 - type: recallat20 value: 0.82685 - type: recallat3 value: 0.60234 - type: recallat5 value: 0.67135 - task: type: Retrieval dataset: name: Miracl (fr) type: miracl/mmteb-miracl config: fr split: dev metrics: - type: ndcgat1 value: 0.38776 - type: ndcgat10 value: 0.47589 - type: ndcgat100 value: 0.54641 - type: ndcgat1000 value: 0.5629 - type: ndcgat20 value: 0.51203 - type: ndcgat3 value: 0.38924 - type: ndcgat5 value: 0.42572 - type: recallat1 value: 0.22082 - type: recallat10 value: 0.61619 - type: recallat100 value: 0.87237 - type: recallat1000 value: 0.97449 - type: recallat20 value: 0.72689 - type: recallat3 value: 0.39527 - type: recallat5 value: 0.48983 - task: type: Retrieval dataset: name: Miracl (hi) type: miracl/mmteb-miracl config: hi split: dev metrics: - type: ndcgat1 value: 0.33143 - type: ndcgat10 value: 0.42084 - type: ndcgat100 value: 0.48647 - type: ndcgat1000 value: 0.50712 - type: ndcgat20 value: 0.45399 - type: ndcgat3 value: 0.34988 - type: ndcgat5 value: 0.37938 - type: recallat1 value: 0.17852 - type: recallat10 value: 0.55217 - type: recallat100 value: 0.79929 - type: recallat1000 value: 0.93434 - type: recallat20 value: 0.65231 - type: recallat3 value: 0.33765 - type: recallat5 value: 0.43828 - task: type: Retrieval dataset: name: Miracl (id) type: miracl/mmteb-miracl config: id split: dev metrics: - type: ndcgat1 value: 0.43854 - type: ndcgat10 value: 0.45459 - type: ndcgat100 value: 0.53643 - type: ndcgat1000 value: 0.56052 - type: ndcgat20 value: 0.48795 - type: ndcgat3 value: 0.41041 - type: ndcgat5 value: 0.42235 - type: recallat1 value: 0.19193 - type: recallat10 value: 0.5289 - type: recallat100 value: 0.79649 - type: recallat1000 value: 0.92937 - type: recallat20 value: 0.61813 - type: recallat3 value: 0.35431 - type: recallat5 value: 0.43348 - task: type: Retrieval dataset: name: Miracl (ja) type: miracl/mmteb-miracl config: ja split: dev metrics: - type: ndcgat1 value: 0.53256 - type: ndcgat10 value: 0.59922 - type: ndcgat100 value: 0.65407 - type: ndcgat1000 value: 0.66484 - type: ndcgat20 value: 0.62596 - type: ndcgat3 value: 0.53717 - type: ndcgat5 value: 0.56523 - type: recallat1 value: 0.34555 - type: recallat10 value: 0.71476 - type: recallat100 value: 0.91152 - type: recallat1000 value: 0.97728 - type: recallat20 value: 0.79811 - type: recallat3 value: 0.53482 - type: recallat5 value: 0.62327 - task: type: Retrieval dataset: name: Miracl (ko) type: miracl/mmteb-miracl config: ko split: dev metrics: - type: ndcgat1 value: 0.5493 - type: ndcgat10 value: 0.58413 - type: ndcgat100 value: 0.64374 - type: ndcgat1000 value: 0.65655 - type: ndcgat20 value: 0.61732 - type: ndcgat3 value: 0.53068 - type: ndcgat5 value: 0.55202 - type: recallat1 value: 0.32602 - type: recallat10 value: 0.68647 - type: recallat100 value: 0.87746 - type: recallat1000 value: 0.95524 - type: recallat20 value: 0.78089 - type: recallat3 value: 0.49173 - type: recallat5 value: 0.5827 - task: type: Retrieval dataset: name: Miracl (ru) type: miracl/mmteb-miracl config: ru split: dev metrics: - type: ndcgat1 value: 0.43131 - type: ndcgat10 value: 0.48262 - type: ndcgat100 value: 0.56158 - type: ndcgat1000 value: 0.57929 - type: ndcgat20 value: 0.52023 - type: ndcgat3 value: 0.42808 - type: ndcgat5 value: 0.44373 - type: recallat1 value: 0.22018 - type: recallat10 value: 0.58034 - type: recallat100 value: 0.84074 - type: recallat1000 value: 0.93938 - type: recallat20 value: 0.68603 - type: recallat3 value: 0.39307 - type: recallat5 value: 0.47077 - task: type: Retrieval dataset: name: Miracl (sw) type: miracl/mmteb-miracl config: sw split: dev metrics: - type: ndcgat1 value: 0.50415 - type: ndcgat10 value: 0.59111 - type: ndcgat100 value: 0.64312 - type: ndcgat1000 value: 0.65089 - type: ndcgat20 value: 0.61651 - type: ndcgat3 value: 0.5304 - type: ndcgat5 value: 0.56139 - type: recallat1 value: 0.33267 - type: recallat10 value: 0.72082 - type: recallat100 value: 0.91377 - type: recallat1000 value: 0.96152 - type: recallat20 value: 0.79943 - type: recallat3 value: 0.5548 - type: recallat5 value: 0.64302 - task: type: Retrieval dataset: name: Miracl (te) type: miracl/mmteb-miracl config: te split: dev metrics: - type: ndcgat1 value: 0.64372 - type: ndcgat10 value: 0.78175 - type: ndcgat100 value: 0.79523 - type: ndcgat1000 value: 0.79774 - type: ndcgat20 value: 0.78826 - type: ndcgat3 value: 0.74856 - type: ndcgat5 value: 0.77128 - type: recallat1 value: 0.63688 - type: recallat10 value: 0.90358 - type: recallat100 value: 0.96558 - type: recallat1000 value: 0.9847 - type: recallat20 value: 0.92834 - type: recallat3 value: 0.81804 - type: recallat5 value: 0.87198 - task: type: Retrieval dataset: name: Miracl (th) type: miracl/mmteb-miracl config: th split: dev metrics: - type: ndcgat1 value: 0.65484 - type: ndcgat10 value: 0.71774 - type: ndcgat100 value: 0.75362 - type: ndcgat1000 value: 0.75898 - type: ndcgat20 value: 0.73709 - type: ndcgat3 value: 0.66199 - type: ndcgat5 value: 0.68451 - type: recallat1 value: 0.45911 - type: recallat10 value: 0.82619 - type: recallat100 value: 0.95515 - type: recallat1000 value: 0.98854 - type: recallat20 value: 0.88447 - type: recallat3 value: 0.67437 - type: recallat5 value: 0.73786 - task: type: Retrieval dataset: name: Miracl (yo) type: miracl/mmteb-miracl config: yo split: dev metrics: - type: ndcgat1 value: 0.46218 - type: ndcgat10 value: 0.64685 - type: ndcgat100 value: 0.66941 - type: ndcgat1000 value: 0.67361 - type: ndcgat20 value: 0.65548 - type: ndcgat3 value: 0.57609 - type: ndcgat5 value: 0.62021 - type: recallat1 value: 0.42787 - type: recallat10 value: 0.82913 - type: recallat100 value: 0.93277 - type: recallat1000 value: 0.96499 - type: recallat20 value: 0.85994 - type: recallat3 value: 0.65406 - type: recallat5 value: 0.7542 - task: type: Retrieval dataset: name: Miracl (zh) type: miracl/mmteb-miracl config: zh split: dev metrics: - type: ndcgat1 value: 0.41985 - type: ndcgat10 value: 0.4837 - type: ndcgat100 value: 0.55961 - type: ndcgat1000 value: 0.5762 - type: ndcgat20 value: 0.51595 - type: ndcgat3 value: 0.42094 - type: ndcgat5 value: 0.44273 - type: recallat1 value: 0.21446 - type: recallat10 value: 0.59695 - type: recallat100 value: 0.87388 - type: recallat1000 value: 0.96833 - type: recallat20 value: 0.69252 - type: recallat3 value: 0.40377 - type: recallat5 value: 0.4903

Llamacpp Static Quantizations of granite-embedding-107m-multilingual

Using llama.cpp release b4381 for quantization.

Original model: https://huggingface.co/ibm-granite/granite-embedding-107m-multilingual

Run them in LM Studio

Prompt format

No prompt format found, check original model page

What's new:

Fix tokenizer

Download a file (not the whole branch) from below:

FilenameQuant typeFile SizeSplitDescription
granite-embedding-107m-multilingual-f16.gguff160.22GBfalseFull F16 weights.
granite-embedding-107m-multilingual-Q80.ggufQ800.12GBfalseExtremely high quality, generally unneeded but max available quant.
granite-embedding-107m-multilingual-Q6KL.ggufQ6KL0.12GBfalseUses Q80 for embed and output weights. Very high quality, near perfect, recommended.
granite-embedding-107m-multilingual-Q6K.ggufQ6K0.12GBfalseVery high quality, near perfect, recommended.
granite-embedding-107m-multilingual-Q5KL.ggufQ5KL0.12GBfalseUses Q80 for embed and output weights. High quality, recommended.
granite-embedding-107m-multilingual-Q5KM.ggufQ5K_M0.12GBfalseHigh quality, recommended.
granite-embedding-107m-multilingual-Q5KS.ggufQ5K_S0.12GBfalseHigh quality, recommended.
granite-embedding-107m-multilingual-Q4KL.ggufQ4KL0.12GBfalseUses Q80 for embed and output weights. Good quality, recommended.
granite-embedding-107m-multilingual-Q4KM.ggufQ4K_M0.12GBfalseGood quality, default size for most use cases, recommended.
granite-embedding-107m-multilingual-Q4KS.ggufQ4K_S0.12GBfalseSlightly lower quality with more space savings, recommended.
granite-embedding-107m-multilingual-Q40.ggufQ400.12GBfalseLegacy format, offers online repacking for ARM and AVX CPU inference.
granite-embedding-107m-multilingual-IQ4NL.ggufIQ4NL0.12GBfalseSimilar to IQ4_XS, but slightly larger. Offers online repacking for ARM CPU inference.
granite-embedding-107m-multilingual-IQ4XS.ggufIQ4XS0.12GBfalseDecent quality, smaller than Q4KS with similar performance, recommended.
granite-embedding-107m-multilingual-Q3KXL.ggufQ3KXL0.12GBfalseUses Q80 for embed and output weights. Lower quality but usable, good for low RAM availability.
granite-embedding-107m-multilingual-Q3KL.ggufQ3K_L0.12GBfalseLower quality but usable, good for low RAM availability.
granite-embedding-107m-multilingual-Q3KM.ggufQ3K_M0.12GBfalseLow quality.
granite-embedding-107m-multilingual-IQ3M.ggufIQ3M0.12GBfalseMedium-low quality, new method with decent performance comparable to Q3KM.

Embed/output weights

Some of these quants (Q3KXL, Q4KL etc) are the standard quantization method with the embeddings and output weights quantized to Q8_0 instead of what they would normally default to.

Downloading using huggingface-cli


Click to view download instructions

First, make sure you have hugginface-cli installed:

pip install -U "huggingface_hub[cli]"

Then, you can target the specific file you want:

huggingface-cli download bartowski/granite-embedding-107m-multilingual-GGUF --include "granite-embedding-107m-multilingual-Q4KM.gguf" --local-dir ./

If the model is bigger than 50GB, it will have been split into multiple files. In order to download them all to a local folder, run:

huggingface-cli download bartowski/granite-embedding-107m-multilingual-GGUF --include "granite-embedding-107m-multilingual-Q8_0/*" --local-dir ./

You can either specify a new local-dir (granite-embedding-107m-multilingual-Q8_0) or download them all in place (./)

ARM/AVX information

Previously, you would download Q4044/48/8_8, and these would have their weights interleaved in memory in order to improve performance on ARM and AVX machines by loading up more data in one pass.

Now, however, there is something called "online repacking" for weights. details in this PR. If you use Q40 and your hardware would benefit from repacking weights, it will do it automatically on the fly.

As of llama.cpp build b4282 you will not be able to run the Q40XX files and will instead need to use Q4_0.

Additionally, if you want to get slightly better quality for , you can use IQ4NL thanks to this PR which will also repack the weights for ARM, though only the 4_4 for now. The loading time may be slower but it will result in an overall speed incrase.


Click to view Q40X_X information (deprecated

I'm keeping this section to show the potential theoretical uplift in performance from using the Q4_0 with online repacking.


Click to view benchmarks on an AVX2 system (EPYC7702)

modelsizeparamsbackendthreadstestt/s% (vs Q4_0)
qwen2 3B Q4_01.70 GiB3.09 BCPU64pp512204.03 Β± 1.03100%
qwen2 3B Q4_01.70 GiB3.09 BCPU64pp1024282.92 Β± 0.19100%
qwen2 3B Q4_01.70 GiB3.09 BCPU64pp2048259.49 Β± 0.44100%
qwen2 3B Q4_01.70 GiB3.09 BCPU64tg12839.12 Β± 0.27100%
qwen2 3B Q4_01.70 GiB3.09 BCPU64tg25639.31 Β± 0.69100%
qwen2 3B Q4_01.70 GiB3.09 BCPU64tg51240.52 Β± 0.03100%
qwen2 3B Q4KM1.79 GiB3.09 BCPU64pp512301.02 Β± 1.74147%
qwen2 3B Q4KM1.79 GiB3.09 BCPU64pp1024287.23 Β± 0.20101%
qwen2 3B Q4KM1.79 GiB3.09 BCPU64pp2048262.77 Β± 1.81101%
qwen2 3B Q4KM1.79 GiB3.09 BCPU64tg12818.80 Β± 0.9948%
qwen2 3B Q4KM1.79 GiB3.09 BCPU64tg25624.46 Β± 3.0483%
qwen2 3B Q4KM1.79 GiB3.09 BCPU64tg51236.32 Β± 3.5990%
qwen2 3B Q408_81.69 GiB3.09 BCPU64pp512271.71 Β± 3.53133%
qwen2 3B Q408_81.69 GiB3.09 BCPU64pp1024279.86 Β± 45.63100%
qwen2 3B Q408_81.69 GiB3.09 BCPU64pp2048320.77 Β± 5.00124%
qwen2 3B Q408_81.69 GiB3.09 BCPU64tg12843.51 Β± 0.05111%
qwen2 3B Q408_81.69 GiB3.09 BCPU64tg25643.35 Β± 0.09110%
qwen2 3B Q408_81.69 GiB3.09 BCPU64tg51242.60 Β± 0.31105%
Q408_8 offers a nice bump to prompt processing and a small bump to text generation

Which file should I choose?


Click here for details

A great write up with charts showing various performances is provided by Artefact2 here

The first thing to figure out is how big a model you can run. To do this, you'll need to figure out how much RAM and/or VRAM you have.

If you want your model running as FAST as possible, you'll want to fit the whole thing on your GPU's VRAM. Aim for a quant with a file size 1-2GB smaller than your GPU's total VRAM.

If you want the absolute maximum quality, add both your system RAM and your GPU's VRAM together, then similarly grab a quant with a file size 1-2GB Smaller than that total.

Next, you'll need to decide if you want to use an 'I-quant' or a 'K-quant'.

If you don't want to think too much, grab one of the K-quants. These are in format 'QXKX', like Q5KM.

If you want to get more into the weeds, you can check out this extremely useful feature chart:

llama.cpp feature matrix

But basically, if you're aiming for below Q4, and you're running cuBLAS (Nvidia) or rocBLAS (AMD), you should look towards the I-quants. These are in format IQXX, like IQ3M. These are newer and offer better performance for their size.

These I-quants can also be used on CPU and Apple Metal, but will be slower than their K-quant equivalent, so speed vs performance is a tradeoff you'll have to decide.

The I-quants are not compatible with Vulcan, which is also AMD, so if you have an AMD card double check if you're using the rocBLAS build or the Vulcan build. At the time of writing this, LM Studio has a preview with ROCm support, and other inference engines have specific builds for ROCm.

Credits

Thank you kalomaze and Dampf for assistance in creating the imatrix calibration dataset.

Thank you ZeroWw for the inspiration to experiment with embed/output.

Want to support my work? Visit my ko-fi page here: https://ko-fi.com/bartowski

πŸ“‚ GGUF File List

πŸ“ Filename πŸ“¦ Size ⚑ Download
granite-embedding-107m-multilingual-IQ3_M.gguf
LFS Q3
110.11 MB Download
granite-embedding-107m-multilingual-IQ4_NL.gguf
LFS Q4
110.35 MB Download
granite-embedding-107m-multilingual-IQ4_XS.gguf
LFS Q4
110.25 MB Download
granite-embedding-107m-multilingual-Q3_K_L.gguf
LFS Q3
111.09 MB Download
granite-embedding-107m-multilingual-Q3_K_M.gguf
LFS Q3
110.58 MB Download
granite-embedding-107m-multilingual-Q3_K_XL.gguf
LFS Q3
111.09 MB Download
granite-embedding-107m-multilingual-Q4_0.gguf
Recommended LFS Q4
110.35 MB Download
granite-embedding-107m-multilingual-Q4_K_L.gguf
LFS Q4
111.59 MB Download
granite-embedding-107m-multilingual-Q4_K_M.gguf
LFS Q4
111.59 MB Download
granite-embedding-107m-multilingual-Q4_K_S.gguf
LFS Q4
111.23 MB Download
granite-embedding-107m-multilingual-Q5_K_L.gguf
LFS Q5
112.28 MB Download
granite-embedding-107m-multilingual-Q5_K_M.gguf
LFS Q5
112.28 MB Download
granite-embedding-107m-multilingual-Q5_K_S.gguf
LFS Q5
112.04 MB Download
granite-embedding-107m-multilingual-Q6_K.gguf
LFS Q6
114.6 MB Download
granite-embedding-107m-multilingual-Q6_K_L.gguf
LFS Q6
114.6 MB Download
granite-embedding-107m-multilingual-Q8_0.gguf
LFS Q8
115.41 MB Download
granite-embedding-107m-multilingual-f16.gguf
LFS FP16
210.74 MB Download