Views
No views yet
mixedbread-ai/mxbai-embed-large-v1 for the MLX framework on Apple Silicon.| Variant | Disk | GPU peak (embed) | Embed mean | top-1 stab vs fp16 | top-1 vs ground truth | top-5 jaccard | MRR drift |
|---|---|---|---|---|---|---|---|
| fp16 | 639 MB | 1411 MB | 27.6 ms | — | 93.6% | — | — |
| int8 | 368 MB | 538 MB | 25.4 ms | 99.5% | 93.1% | 0.99 | +0.0033 |
| int6 | 296 MB | 466 MB | 16.1 ms | 99.0% | 93.6% | 0.97 | +0.0000 |
| int5 | 260 MB | 430 MB | 17.3 ms | 99.0% | 93.6% | 0.94 | +0.0008 |
| int4 | 224 MB | 394 MB | 13.0 ms | 97.5% | 95.1% | 0.87 | -0.0082 |
1import MLXEmbedders
2import MLXLMCommon
3
4let config = ModelConfiguration(
5 id: .id("lorelaiassistant/mxbai-embed-large-v1-mlx-int6")
6)
7
8let container = try await EmbedderModelFactory.shared.loadContainer(
9 from: hubDownloader,
10 using: huggingFaceTokenizerLoader,
11 configuration: config,
12 progressHandler: { _ in }
13)quantization block in config.json and applies mlx.nn.quantize to the matching Linear layers at load time.mlx.core.load("model.safetensors") returns the quantized weights; build a BERT module that uses mlx.nn.QuantizedLinear (or call mlx.nn.quantize(model, group_size=64, bits=6) on a fresh fp16 model and load the weights afterward).