BharatBhasha AI - Machine Translation (T2T) Models Catalog

πŸ“Œ Repository Purpose & Motivation

This repository provides full-precision and quantized INT8 ONNX packages for AI4Bharat IndicTrans2, enabling offline neural machine translation across all 22 Official Scheduled Indian Languages + English.

Why this repository exists:

  1. Un-gated Direct Distribution: Upstream Hugging Face repos may enforce gating forms, authentication restrictions, or experience availability drops. This un-gated mirror allows Android and desktop apps to pull translation weights directly without requiring user accounts or tokens.
  2. Dedicated Translation Bandwidth: Machine translation involves multi-file encoder/decoder ONNX models with past-key-value caches and custom subword tokenizers. Isolating T2T from speech models prevents download queue blockage.
  3. Optimized for On-Device Execution: Quantized to INT8 ONNX to fit inside mobile device memory constraints while maintaining BLEU score parity with FP32 models.

πŸ—οΈ Repository Folder Structure

The repository is organized into 3 distinct model packages, each containing the encoder, decoder, shared weights, dictionary mappings, and tokenizer configurations:

remiai3/TRANSLATION_MODELS/
β”œβ”€β”€ .gitattributes
β”œβ”€β”€ README.md                                          # Documentation & Catalog
β”‚
β”œβ”€β”€ indictrans2-indic-indic-dist-320M-ONNX-int8/       # Universal Indic-to-Indic (320M INT8)
β”‚   β”œβ”€β”€ config.json
β”‚   β”œβ”€β”€ generation_config.json
β”‚   β”œβ”€β”€ encoder_model.onnx
β”‚   β”œβ”€β”€ encoder_model.onnx.data
β”‚   β”œβ”€β”€ decoder_model.onnx
β”‚   β”œβ”€β”€ decoder_with_past_model.onnx
β”‚   β”œβ”€β”€ decoder_shared.onnx.data
β”‚   β”œβ”€β”€ dict.SRC.json
β”‚   β”œβ”€β”€ dict.TGT.json
β”‚   β”œβ”€β”€ model.SRC
β”‚   β”œβ”€β”€ model.TGT
β”‚   β”œβ”€β”€ tokenizer_config.json
β”‚   β”œβ”€β”€ tokenizer_meta.json
β”‚   β”œβ”€β”€ tokenizer_src.json
β”‚   β”œβ”€β”€ tokenizer_tgt.json
β”‚   β”œβ”€β”€ special_tokens_map.json
β”‚   β”œβ”€β”€ tokenization_indictrans.py
β”‚   └── translate.py
β”‚
β”œβ”€β”€ indictrans2-indic-en-dist-200M-ONNX-int8/          # Any Indic Language to English (200M INT8)
β”‚   β”œβ”€β”€ config.json
β”‚   β”œβ”€β”€ generation_config.json
β”‚   β”œβ”€β”€ encoder_model.onnx
β”‚   β”œβ”€β”€ encoder_model.onnx.data
β”‚   β”œβ”€β”€ decoder_model.onnx
β”‚   β”œβ”€β”€ decoder_with_past_model.onnx
β”‚   β”œβ”€β”€ decoder_shared.onnx.data
β”‚   β”œβ”€β”€ dict.SRC.json
β”‚   β”œβ”€β”€ dict.TGT.json
β”‚   β”œβ”€β”€ model.SRC
β”‚   β”œβ”€β”€ model.TGT
β”‚   β”œβ”€β”€ tokenizer_config.json
β”‚   β”œβ”€β”€ tokenizer_meta.json
β”‚   β”œβ”€β”€ tokenizer_src.json
β”‚   β”œβ”€β”€ tokenizer_tgt.json
β”‚   β”œβ”€β”€ tokenization_indictrans.py
β”‚   └── translate.py
β”‚
└── indictrans2-en-indic-dist-200M-ONNX-int8/          # English to any Indic Language (200M INT8)
    β”œβ”€β”€ config.json
    β”œβ”€β”€ generation_config.json
    β”œβ”€β”€ encoder_model.onnx
    β”œβ”€β”€ decoder_model.onnx
    β”œβ”€β”€ decoder_with_past_model.onnx
    β”œβ”€β”€ dict.SRC.json
    β”œβ”€β”€ dict.TGT.json
    β”œβ”€β”€ model.SRC
    β”œβ”€β”€ model.TGT
    β”œβ”€β”€ tokenizer_config.json
    β”œβ”€β”€ tokenizer_meta.json
    β”œβ”€β”€ tokenizer_src.json
    β”œβ”€β”€ tokenizer_tgt.json
    β”œβ”€β”€ special_tokens_map.json
    β”œβ”€β”€ tokenization_indictrans.py
    └── translate.py

🌐 Direct Download Endpoints for Android & Mobile Apps

Clients can download individual files directly without an access token:

Endpoint Format

https://huggingface.co/remiai3/TRANSLATION_MODELS/resolve/main/{MODEL_NAME}/{FILE_NAME}

Examples:

  • Download Indic-Indic Encoder:
    https://huggingface.co/remiai3/TRANSLATION_MODELS/resolve/main/indictrans2-indic-indic-dist-320M-ONNX-int8/encoder_model.onnx
    
  • Download Indic-English Config:
    https://huggingface.co/remiai3/TRANSLATION_MODELS/resolve/main/indictrans2-indic-en-dist-200M-ONNX-int8/config.json
    
  • Download English-Indic Tokenizer:
    https://huggingface.co/remiai3/TRANSLATION_MODELS/resolve/main/indictrans2-en-indic-dist-200M-ONNX-int8/tokenizer_src.json
    

πŸ“Š Translation Models Breakdown

Model Name Parameters Quantization Size RAM Overhead Primary Function
indictrans2-indic-indic-dist-320M-ONNX-int8 320M INT8 370 MB < 350 MB Direct translation between any pair among the 22 Indian languages.
indictrans2-indic-en-dist-200M-ONNX-int8 200M INT8 257 MB < 300 MB High-quality translation from any of the 22 Indian languages into natural English.
indictrans2-en-indic-dist-200M-ONNX-int8 200M INT8 363 MB < 300 MB High-quality translation from English into any of the 22 scheduled Indian languages.

βš–οΈ Open Source Licensing & Credits

  • Model Architecture & Base Weights: AI4Bharat IndicTrans2 developed by AI4Bharat (IIT Madras).
  • ONNX Quantization & Export: Quantized with ONNX Runtime by the community (naklitechie / hari31416).
  • License: MIT License (Permits free commercial and non-commercial redistribution).
  • Acknowledgement: Sincere gratitude to the AI4Bharat research team at IIT Madras and the Bhashini Mission for creating and open-sourcing foundational translation models for Indian languages.
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support