Run this model with HF Jobs
Run IndexTeam/Index-Translate-2B-FP8 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/IndexTeam/Index-Translate-2B-FP8. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/IndexTeam/Index-Translate-2B-FP8 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use IndexTeam/Index-Translate-2B-FP8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use IndexTeam/Index-Translate-2B-FP8 with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "translation" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("translation", model="IndexTeam/Index-Translate-2B-FP8")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("IndexTeam/Index-Translate-2B-FP8") model = AutoModelForMultimodalLM.from_pretrained("IndexTeam/Index-Translate-2B-FP8", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Add README.md
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051---base_model: IndexTeam/Index-Translate-2Blibrary_name: transformerstags:- fp8- compressed-tensors- translation- indexlicense: apache-2.0---
# Index-Translate-2B-FP8
Official FP8 (W8A8) quantization of [IndexTeam/Index-Translate-2B](https://huggingface.co/IndexTeam/Index-Translate-2B), part of the **Index-Translate** multilingual translation model family (150 languages, terminology/format-constrained translation, controlled dubbing translation, long-document translation).
- Technical report: [Index-Translate: A Multilingual Translation Model Family](https://arxiv.org/abs/2609.40181)- Code: [github.com/bilibili/Index-Translate](https://github.com/bilibili/Index-Translate)
## Quantization
- Scheme: `FP8_DYNAMIC` (FP8 E4M3 weights, per-token dynamic FP8 activations), produced with [llm-compressor](https://github.com/vllm-project/llm-compressor) (`quantization_scheme` recorded in `recipe.yaml`).- All `Linear` layers of the language model are quantized; the vision tower, multi-modal projector, `lm_head`, and embeddings are kept in BF16. MTP (multi-token prediction) weights are preserved.- Format: [compressed-tensors](https://github.com/neuralmagic/compressed-tensors) safetensors — load directly with vLLM (`quantization="compressed-tensors"`) or transformers.
## Consistency validation
Measured on an NVIDIA A100 against the original BF16 checkpoint (greedy decoding, official translation prompt):
| Metric | BF16 | FP8 | Delta ||:-------|-----:|----:|------:|| Perplexity (fixed corpus) | 3.9104 | 3.9403 | +0.76% || zh→en generation identical | — | — | yes || en→zh generation identical | — | — | no (semantically equivalent) |
## Usage
```bashvllm serve IndexTeam/Index-Translate-2B-FP8 --host 127.0.0.1 --port 8000 --max-model-len 4096```
Translation prompt format (greedy decoding, temperature=0 recommended):
```text请将以下文本翻译为{target-language},直接输出翻译结果,不要进行任何解释。
{source-text}```
See the [base model card](https://huggingface.co/IndexTeam/Index-Translate-2B) for the full instTrans constrained-translation format and serving presets. GGUF builds for local inference are published in [Index-Translate-2B-GGUF](https://huggingface.co/IndexTeam/Index-Translate-2B-GGUF).
*Quantized and published by the Index team, 2026-10-03.*README.mdAdded+51