nvidia/llama-embed-nemotron-8b 的 MLX 16/8/4/2 位量化版本
摘要
用户将 Nvidia 的 Llama-Embed-Nemotron-8B 模型转换为 MLX 格式,包含 fp16、8位、4位和2位量化,从而能够通过 mlx-embeddings 在 Apple Silicon 上实现在进程内加载嵌入向量。
我将 nvidia/llama-embed-nemotron-8b 转换为 MLX fp16、8位、4位和2位量化(为了满足我的强迫症),并上传到了 HuggingFace:[ncorder/llama-embed-nemotron-8b-mlx-fp16](https://huggingface.co/ncorder/llama-embed-nemotron-8b-mlx-fp16) [ncorder/llama-embed-nemotron-8b-mlx-8bit](https://huggingface.co/ncorder/llama-embed-nemotron-8b-mlx-8bit) [ncorder/llama-embed-nemotron-8b-mlx-4bit](https://huggingface.co/ncorder/llama-embed-nemotron-8b-mlx-4bit) [ncorder/llama-embed-nemotron-8b-mlx-2bit](https://huggingface.co/ncorder/llama-embed-nemotron-8b-mlx-2bit) ——我之前使用 GGUFs 和 llama-server 运行此模型,对 Obsidian 笔记库和其他项目进行本地语义搜索。它运行良好,但我厌倦了仅为了嵌入向量而管理整个 HTTP 服务器,并且还想要 Apple Silicon 的优化。MLX 版本通过 mlx-embeddings 在进程内加载,无需服务器。
from mlx_embeddings import load_model, encode model, tokenizer = load_model("ncorder/llama-embed-nemotron-8b-mlx-4bit") embeddings = encode(model, tokenizer, ["your text here"]) 尽情使用吧!
相似文章
SOTA图像生成本地部署 NVIDIA Cosmos3(64B) INT4量化 CUDA/MLX
NVIDIA Cosmos3,一个64B参数的图像生成模型,发布了INT4量化版本,支持在CUDA和MLX上本地部署,代码和权重可用,并在Apple Silicon上展示了性能。
Qwen3.8-27B 混合 IQ4_XS 量化版本,适用于16GB RAM
这是一个使用 IQ4_XS 量化的 Qwen3.8-27B AI模型的量化版本,针对16GB RAM系统进行了优化,并提供使用各种工具如 llama.cpp 和 Ollama 的本地部署指南。
Qwen3.8-27B-Uncensored-MLX (阅读时长4分钟)
这是一个针对 Apple Silicon 量化的 Qwen Qwen3.8-27B 模型的无审查 MLX 构建,移除了安全对齐用于研究目的。
Qwen3.6-35B-A3B-Abliterated-Heretic-MLX-4bit
用户评价了通过MLX为Apple Silicon优化的Qwen3.6-35B模型的量化微调版本,称赞其速度快、智能化程度高且没有安全免责声明。
@no_stp_on_snek: MiniMax-M3 的 Config-I 量化版本已发布在 MLX 上。2-bit 专家、4-bit 注意力、8-bit 边界与嵌入、f16 路由器。约…
发布了 MiniMax-M3 的 Config-I 量化版本,在 MLX 上使用 2-bit 专家和 4-bit 注意力,将 427B MoE 模型从 869GB 减少到约 167GB,但该量化版本未经测试且需要为 mlx_lm 打补丁。