Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

Raghavan
/
indictrans2-indic-en-dist-200M

Translation
Transformers
PyTorch
IndicTrans
text2text-generation
indictrans2
ai4bharat
multilingual
custom_code
Model card Files Files and versions
xet
Community
1

Instructions to use Raghavan/indictrans2-indic-en-dist-200M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use Raghavan/indictrans2-indic-en-dist-200M 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="Raghavan/indictrans2-indic-en-dist-200M", trust_remote_code=True)
    # Load model directly
    from transformers import AutoModelForSeq2SeqLM
    model = AutoModelForSeq2SeqLM.from_pretrained("Raghavan/indictrans2-indic-en-dist-200M", trust_remote_code=True, dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
indictrans2-indic-en-dist-200M
914 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 22 commits
Raghavan's picture
Raghavan
Upload 7 files
d7b3cdf verified over 2 years ago
  • .gitattributes
    1.52 kB
    initial commit over 2 years ago
  • LICENSE
    1.13 kB
    Upload 7 files over 2 years ago
  • README.md
    1.71 kB
    Upload 7 files over 2 years ago
  • config.json
    1.27 kB
    Upload 7 files over 2 years ago
  • configuration_indictrans.py
    14.1 kB
    Upload 7 files over 2 years ago
  • generation_config.json
    163 Bytes
    Upload 7 files over 2 years ago
  • modeling_indictrans.py
    60.6 kB
    Upload 7 files over 2 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

    • "collections.OrderedDict",
    • "torch.FloatStorage",
    • "torch._utils._rebuild_tensor_v2"

    What is a pickle import?

    914 MB
    xet
    Upload 7 files over 2 years ago