How to use from the
Use from the
MLX library
# Download the model from the Hub
pip install huggingface_hub[hf_xet]

hf download zerodegress/Index-Translate-2B-MLX-4bit --local-dir Index-Translate-2B-MLX-4bit

Index-Translate-2B-MLX-4bit

MLX affine 4-bit quantization (group size 64) of IndexTeam/Index-Translate-2B. Weights only re-encoded โ€” no retraining, no fine-tuning.

Text translation only: the upstream checkpoint's vision tower and MTP head are not included. Runs with mlx-lm on Apple Silicon; not a llama.cpp / GGUF model.

Usage

from mlx_lm import load, generate

model, tokenizer = load("zerodegress/Index-Translate-2B-MLX-4bit")
prompt = "่ฏทๅฐ†ไปฅไธ‹ไธญๆ–‡ๆ–‡ๆœฌ็ฟป่ฏ‘ไธบ่‹ฑ่ฏญ๏ผŒ็›ดๆŽฅ่พ“ๅ‡บ็ฟป่ฏ‘็ป“ๆžœ๏ผŒไธ่ฆ่ฟ›่กŒไปปไฝ•่งฃ้‡Šใ€‚\n\nไฝ ๅฅฝ๏ผŒไธ–็•Œ๏ผ"
print(generate(model, tokenizer, prompt=prompt, max_tokens=1024))

Prompt template: ่ฏทๅฐ†ไปฅไธ‹{ๆบ่ฏญ่จ€}ๆ–‡ๆœฌ็ฟป่ฏ‘ไธบ{็›ฎๆ ‡่ฏญ่จ€}๏ผŒ็›ดๆŽฅ่พ“ๅ‡บ็ฟป่ฏ‘็ป“ๆžœ๏ผŒไธ่ฆ่ฟ›่กŒไปปไฝ•่งฃ้‡Šใ€‚ (the source-language slot is left empty for auto-detection). Greedy decoding, thinking disabled.

Files

file bytes sha256
model.safetensors 1,059,404,317 15de5bf127c59b14c29ab80967a942848f473f2dc153614a11685368e533c569

Plus config.json, tokenizer.json, tokenizer_config.json, vocab.json, merges.txt, generation_config.json (copied from upstream), and MANIFEST.json (conversion record).

Attribution

Weights: IndexTeam/Index-Translate-2B (apache-2.0) ยท family repo. This release only re-encodes the upstream weights; no new rights are claimed.

Downloads last month
428
Safetensors
Model size
2B params
Tensor type
U32
ยท
BF16
ยท
MLX
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for zerodegress/Index-Translate-2B-MLX-4bit

Quantized
(22)
this model