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

trillionlabs
/
Tri-1.8B-Translation

Translation
Transformers
Safetensors
llama
text-generation
multilingual
trillionlabs
preview
text-generation-inference
Model card Files Files and versions
xet
Community
1

Instructions to use trillionlabs/Tri-1.8B-Translation with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use trillionlabs/Tri-1.8B-Translation 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="trillionlabs/Tri-1.8B-Translation")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForCausalLM
    
    tokenizer = AutoTokenizer.from_pretrained("trillionlabs/Tri-1.8B-Translation")
    model = AutoModelForCausalLM.from_pretrained("trillionlabs/Tri-1.8B-Translation")
  • Notebooks
  • Google Colab
  • Kaggle
Tri-1.8B-Translation
Ctrl+K
Ctrl+K
  • 1 contributor
History: 9 commits
juyoung-trl's picture
juyoung-trl
Update README.md
7f64c04 verified 9 months ago
  • .gitattributes
    1.52 kB
    initial commit 10 months ago
  • README.md
    3.57 kB
    Update README.md 9 months ago
  • chat_template.jinja
    291 Bytes
    Upload tokenizer 10 months ago
  • config.json
    684 Bytes
    Upload LlamaForCausalLM 10 months ago
  • generation_config.json
    145 Bytes
    Upload LlamaForCausalLM 10 months ago
  • model-00001-of-00002.safetensors
    4.99 GB
    xet
    Upload LlamaForCausalLM 10 months ago
  • model-00002-of-00002.safetensors
    2.25 GB
    xet
    Upload LlamaForCausalLM 10 months ago
  • model.safetensors.index.json
    18.8 kB
    Upload LlamaForCausalLM 10 months ago
  • special_tokens_map.json
    4.14 kB
    Upload tokenizer 10 months ago
  • tokenizer.json
    9.89 MB
    Upload tokenizer 10 months ago
  • tokenizer_config.json
    28.2 kB
    Upload tokenizer 10 months ago