Downloads · 30 days
15
2% of all-time downloads
sahilchachra/locateanything-3b-mxfp4-mlx
locateanything-3b-mxfp4-mlx is a machine learning model from sahilchachra. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for mlx. The card lists the license as other.
MLX quantization of nvidia/LocateAnything-3B for Apple Silicon.
Downloads · 30 days
15
2% of all-time downloads
All-time downloads
835
Public
Parameters
3.5B
2.5 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors2.5 GB · 99%
How the weights are stored.
U323.1B · 88%
From the Hugging Face model README
MLX quantization of nvidia/LocateAnything-3B for Apple Silicon.
Variant: Block float MX FP4
Disk size: 2401 MB
Quantized by: sahilchachra
Note on effective bpw: mlx-vlm's quantizers only act on the language tower's linear weights. The vision encoder and embeddings stay at the source dtype (bf16), so the headline variant name reflects the LM-tower quantization while the on-disk size averages the two halves of the model.
Evaluated on Apple M5 Pro with MLX. Model loaded once; performance and quality measured in a single pass.
| This model | FP16 baseline | |
|---|---|---|
| Decode tok/s (steady-state) | 140.25 | 48.49 |
| Prefill tok/s (steady-state) | 837.58 | 480.19 |
| Peak memory (GB) | 2.675 | 7.082 |
| Disk size (MB) | 2401 | 6725 |
Warmed, short-prompt, chat-templated, thinking disabled. Represents steady-state decode for typical chat use; long thinking traces will be slower due to KV-cache growth.
| Benchmark | This model | FP16 baseline | n |
|---|---|---|---|
| RefCOCOg (grounding, [email protected]) | 75.5% | 80.0% | 200 |
| RefCOCOg (grounding, [email protected]) | 66.5% | 71.0% | 200 |
| RefCOCOg (grounding, mean IoU) | 0.7091 | 0.7499 | 200 |
Note: this base model's
mlx-vlmsupport currently lives in a pull request and is not yet in a releasedmlx-vlm. Until it merges, install from the PR branch and pin compatible transformers / tokenizers:pip install "git+https://github.com/beshkenadze/mlx-vlm@feat/locateanything-3b" pip install "transformers<5.5" "tokenizers<0.22" torchvision
The PR branch has a known issue where the custom LocateAnythingProcessor
isn't auto-registered with transformers, so both mlx_vlm.load(...) and
python -m mlx_vlm.generate ... fail with an "Unrecognized processing
class" error. Workaround until the PR merges — register the classes
manually before loading:
import transformers
from mlx_vlm.models.locateanything.processing_locateanything import (
LocateAnythingProcessor,
)
from mlx_vlm.models.locateanything.image_processing_locateanything import (
LocateAnythingImageProcessor,
)
transformers.LocateAnythingProcessor = LocateAnythingProcessor
transformers.LocateAnythingImageProcessor = LocateAnythingImageProcessor
from mlx_vlm import load, generate
model, processor = load("sahilchachra/locateanything-3b-mxfp4-mlx")
prompt = "<image-1>\nPlease locate <ref>the remote</ref> in the image."
response = generate(model, processor, prompt=prompt,
image="path/to/image.jpg", max_tokens=128, verbose=True)
print(response.text) # e.g. <box><520><160><580><392></box>
Output coordinates are normalized to 0..1000. Multiply by image W/H to
get pixel-space (x1, y1, x2, y2).
| Model | Variant |
|---|---|
| sahilchachra/locateanything-3b-mxfp4-mlx | Block float MX FP4 ← this model |
See nvidia/LocateAnything-3B for full model details and intended use.