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
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

Hosstia
/
opus-mt-zh-ru-opus-mp

Translation
Transformers
Safetensors
Chinese
Russian
marian
text2text-generation
opus-mt
mnn
android
on-device
Model card Files Files and versions
xet
Community

Instructions to use Hosstia/opus-mt-zh-ru-opus-mp with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use Hosstia/opus-mt-zh-ru-opus-mp 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="Hosstia/opus-mt-zh-ru-opus-mp")
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
    
    tokenizer = AutoTokenizer.from_pretrained("Hosstia/opus-mt-zh-ru-opus-mp")
    model = AutoModelForSeq2SeqLM.from_pretrained("Hosstia/opus-mt-zh-ru-opus-mp", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
opus-mt-zh-ru-opus-mp
244 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 7 commits
Hosstia's picture
Hosstia
Upload special_tokens_map.json with huggingface_hub
d359cdc verified about 2 months ago
  • .gitattributes
    1.57 kB
    Upload source.spm with huggingface_hub about 2 months ago
  • config.json
    1.28 kB
    Upload config.json with huggingface_hub about 2 months ago
  • model.safetensors
    242 MB
    xet
    Upload model.safetensors with huggingface_hub about 2 months ago
  • source.spm
    854 kB
    xet
    Upload source.spm with huggingface_hub about 2 months ago
  • special_tokens_map.json
    416 Bytes
    Upload special_tokens_map.json with huggingface_hub about 2 months ago
  • tokenizer_config.json
    872 Bytes
    Upload tokenizer_config.json with huggingface_hub about 2 months ago
  • vocab.json
    1.21 MB
    Upload vocab.json with huggingface_hub about 2 months ago