Downloads · 30 days
0
mrjet001/minilm-code-jina-distilled-mlx
minilm-code-jina-distilled-mlx is a sentence similarity model from mrjet001. Use it when you need a score for how close two texts are. It is set up for mlx. The card lists the license as apache-2.0.
An Apple-Silicon-native code-search embedding adapter for mlx-community/all-MiniLM-L6-v2-bf16. It was trained on 94,987 CodeSearchNet query/function pairs, distilled from jinaai/jina-embeddings-v2-base-code, then cont…
Downloads · 30 days
0
Access
Public
Updated Sep 3, 2026
Repo size
895 KB
Likes
0
Public
Click a slice to open those files.
.npz895 KB · 99%
From the Hugging Face model README
An Apple-Silicon-native code-search embedding adapter for
mlx-community/all-MiniLM-L6-v2-bf16. It was trained on 94,987 CodeSearchNet
query/function pairs, distilled from jinaai/jina-embeddings-v2-base-code, then
continued for 1,500 steps with globally mined hard negatives.
This repository contains a LoRA adapter rather than duplicated base weights.
The loader downloads the base checkpoint and applies adapters.npz.
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python loader.py "parse JSON without throwing an exception"
Or from Python:
from loader import load_model
model = load_model()
vectors = model.encode([
"parse JSON without throwing an exception",
"def try_parse_json(value): ...",
])
similarity = float((vectors[0] * vectors[1]).sum().item())
After downloading this repository with huggingface_hub.snapshot_download, pass
its directory to load_model(path).
Paired retrieval against the complete candidate pool:
| Model | CodeXGLUE AdvTest Recall@1 | Recall@5 | Recall@10 | MRR |
|---|---|---|---|---|
| Base MiniLM | 82.71% | 93.73% | 95.53% | 0.8770 |
| Distilled + hard negatives | 92.97% | 98.25% | 98.85% | 0.9537 |
CodeXGLUE AdvTest contains 19,210 Python query/code pairs and replaces function names and variables in its test code. The development corpus contained six languages: Python, Java, JavaScript, Go, PHP, and Ruby.
mlx-community/all-MiniLM-L6-v2-bf16jinaai/jina-embeddings-v2-base-code