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

kd13
/
nano-translate-v2

Translation
Transformers
Safetensors
English
Hindi
lstm_seq2seq_bahdanau_en_hi
text2text-generation
en-hi
custom_code
Model card Files Files and versions
xet
Community

Instructions to use kd13/nano-translate-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use kd13/nano-translate-v2 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="kd13/nano-translate-v2", trust_remote_code=True)
    # Load model directly
    from transformers import AutoModelForSeq2SeqLM
    model = AutoModelForSeq2SeqLM.from_pretrained("kd13/nano-translate-v2", trust_remote_code=True, dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
nano-translate-v2
567 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 22 commits
kd13's picture
kd13
Update generation_config.json
c4f2382 verified about 1 month ago
  • .gitattributes
    1.52 kB
    initial commit about 2 months ago
  • README.md
    8.52 kB
    Update README.md about 2 months ago
  • __init__.py
    115 Bytes
    Upload __init__.py about 2 months ago
  • config.json
    566 Bytes
    Update config.json about 2 months ago
  • configuration_lstm_seq2seq_en_hi.py
    1.11 kB
    Update configuration_lstm_seq2seq_en_hi.py about 2 months ago
  • generation_config.json
    238 Bytes
    Update generation_config.json about 1 month ago
  • model.safetensors
    561 MB
    xet
    Upload 4 files about 2 months ago
  • modeling_lstm_seq2seq_en_hi.py
    14.2 kB
    Update modeling_lstm_seq2seq_en_hi.py about 2 months ago
  • tokenizer.json
    6.26 MB
    Upload 4 files about 2 months ago
  • tokenizer_config.json
    244 Bytes
    Upload 4 files about 2 months ago