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

franjamonga
/
translate

Translation
Transformers
PyTorch
Spanish
English
marian
text2text-generation
Model card Files Files and versions
xet
Community
3

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

  • Libraries
  • Transformers

    How to use franjamonga/translate 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="franjamonga/translate")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
    
    tokenizer = AutoTokenizer.from_pretrained("franjamonga/translate")
    model = AutoModelForSeq2SeqLM.from_pretrained("franjamonga/translate")
  • Notebooks
  • Google Colab
  • Kaggle
translate
315 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
franjamonga's picture
franjamonga
Upload 8 files
1b64441 over 3 years ago
  • .gitattributes
    1.48 kB
    initial commit over 3 years ago
  • README.md
    2.43 kB
    Upload 8 files over 3 years ago
  • config.json
    1.44 kB
    Upload 8 files over 3 years ago
  • metadata.json
    1.09 kB
    Upload 8 files over 3 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

    • "collections.OrderedDict",
    • "torch._utils._rebuild_tensor_v2",
    • "torch.FloatStorage"

    What is a pickle import?

    312 MB
    xet
    Upload 8 files over 3 years ago
  • source.spm
    826 kB
    Upload 8 files over 3 years ago
  • target.spm
    802 kB
    Upload 8 files over 3 years ago
  • tokenizer_config.json
    44 Bytes
    Upload 8 files over 3 years ago
  • vocab.json
    1.59 MB
    Upload 8 files over 3 years ago