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

  • Log In
  • Sign Up

Mxode
/
NanoTranslator-S

Translation
Transformers
Safetensors
English
Chinese
llama
text-generation
text-generation-inference
Model card Files Files and versions
xet
Community

Instructions to use Mxode/NanoTranslator-S with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use Mxode/NanoTranslator-S 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="Mxode/NanoTranslator-S")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForCausalLM
    
    tokenizer = AutoTokenizer.from_pretrained("Mxode/NanoTranslator-S")
    model = AutoModelForCausalLM.from_pretrained("Mxode/NanoTranslator-S")
  • Notebooks
  • Google Colab
  • Kaggle
NanoTranslator-S
36.8 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 15 commits
Mxode's picture
Mxode
Update README_zh-CN.md
b3d7013 verified over 1 year ago
  • .gitattributes
    1.52 kB
    initial commit over 1 year ago
  • README.md
    4.47 kB
    Update README.md over 1 year ago
  • README_zh-CN.md
    4.29 kB
    Update README_zh-CN.md over 1 year ago
  • config.json
    697 Bytes
    upload model over 1 year ago
  • generation_config.json
    111 Bytes
    upload model over 1 year ago
  • model.safetensors
    36.4 MB
    xet
    upload model over 1 year ago
  • result.log
    147 Bytes
    update over 1 year ago
  • special_tokens_map.json
    438 Bytes
    upload model over 1 year ago
  • tokenizer.json
    155 kB
    upload model over 1 year ago
  • tokenizer_config.json
    1.18 kB
    upload model over 1 year ago
  • trainer_state.json
    159 kB
    update over 1 year ago