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

facebook
/
nllb-200-distilled-1.3B

Translation
Transformers
PyTorch
m2m_100
text2text-generation
nllb
Model card Files Files and versions
xet
Community
9

Instructions to use facebook/nllb-200-distilled-1.3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use facebook/nllb-200-distilled-1.3B 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="facebook/nllb-200-distilled-1.3B")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
    
    tokenizer = AutoTokenizer.from_pretrained("facebook/nllb-200-distilled-1.3B")
    model = AutoModelForSeq2SeqLM.from_pretrained("facebook/nllb-200-distilled-1.3B")
  • Notebooks
  • Google Colab
  • Kaggle
nllb-200-distilled-1.3B
5.51 GB
Ctrl+K
Ctrl+K
  • 3 contributors
History: 8 commits
joaogante's picture
joaogante
Narsil's picture
Narsil
Moving this model to `translation` for better integration with `transformers` + remove inference since the widget won't work out of the box (#3)
7be3e24 over 3 years ago
  • .gitattributes
    1.22 kB
    Add tokenizer almost 4 years ago
  • README.md
    7.65 kB
    Moving this model to `translation` for better integration with `transformers` + remove inference since the widget won't work out of the box (#3) over 3 years ago
  • config.json
    808 Bytes
    Update config.json almost 4 years ago
  • generation_config.json
    189 Bytes
    Adding generation config file(s) over 3 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

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

    What is a pickle import?

    5.48 GB
    xet
    Add modeling files almost 4 years ago
  • sentencepiece.bpe.model
    4.85 MB
    xet
    Add tokenizer almost 4 years ago
  • special_tokens_map.json
    3.55 kB
    Add tokenizer almost 4 years ago
  • tokenizer.json
    17.3 MB
    xet
    Add tokenizer almost 4 years ago
  • tokenizer_config.json
    564 Bytes
    Add tokenizer almost 4 years ago