Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

RUCAIBox
/
Erya

Translation
Transformers
PyTorch
Chinese
bart
text-generation
Model card Files Files and versions
xet
Community
3

Instructions to use RUCAIBox/Erya with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use RUCAIBox/Erya 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="RUCAIBox/Erya")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
    
    tokenizer = AutoTokenizer.from_pretrained("RUCAIBox/Erya")
    model = AutoModelForSeq2SeqLM.from_pretrained("RUCAIBox/Erya")
  • Notebooks
  • Google Colab
  • Kaggle
Erya
Ctrl+K
Ctrl+K
  • 1 contributor
History: 22 commits
straybird's picture
straybird
Update README.md
2f83314 almost 3 years ago
  • .gitattributes
    1.52 kB
    initial commit almost 3 years ago
  • README.md
    1.37 kB
    Update README.md almost 3 years ago
  • config.json
    1.79 kB
    Upload 5 files almost 3 years ago
  • pytorch_model.bin
    1.05 GB
    xet
    Rename pytorch_model_zero-shot.bin to pytorch_model.bin almost 3 years ago
  • special_tokens_map.json
    173 Bytes
    Upload 5 files almost 3 years ago
  • tokenizer_config.json
    559 Bytes
    Upload 5 files almost 3 years ago
  • vocab.txt
    259 kB
    Upload 5 files almost 3 years ago