Instructions to use DifferentProductions/colSmol-256M-6bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use DifferentProductions/colSmol-256M-6bit with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download DifferentProductions/colSmol-256M-6bit --local-dir colSmol-256M-6bit
- ColPali
How to use DifferentProductions/colSmol-256M-6bit with ColPali:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
colSmol-256M-6bit
An MLX copy of vidore/colSmol-256M, a page retriever: it turns a page picture, or a text query, into one 128-number vector per token, and pages are ranked against a query by late interaction (MaxSim).
It does not chat. Use it to find the right page in a set of documents.
How this copy was made
- The LoRA adapter in
vidore/colSmol-256Mwas merged into the weights of its base, vidore/ColSmolVLM-Instruct-256M-base. - The config's
model_typewas set tocolidefics3, the typemlx-vlmloads. - The merged weights were quantized to 6 bits (affine, group size 64) with
mlx-vlm0.7.6.
Nothing was retrained. The merge was checked against the original PyTorch weights: MaxSim scores agree within 0.6%. Six-bit rounding moves the vectors by about 0.006 on average.
Use
With mlx-vlm in Python, load it as any colidefics3 checkpoint.
In Swift, Different-Productions/mlx-swift-lm loads it through MLXEmbedders (ColIdefics3Model, ColIdefics3Processor), and matches mlx-vlm on the same files: the same token ids and ranking, scores within 0.7% on PNG pages.
License and credit
MIT, as the original. The model is the work of the ViDoRe team at Illuin Technology; see the original card for training data, benchmarks and how to cite it. Its backbone, SmolVLM-256M-Instruct by Hugging Face, is Apache 2.0.
This repository changes the original in the three ways listed above and no others.
- Downloads last month
- -
6-bit
Model tree for DifferentProductions/colSmol-256M-6bit
Base model
HuggingFaceTB/SmolLM2-135M