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

techiaith
/
mt-dspec-legislation-en-cy

Translation
Transformers
PyTorch
Safetensors
English
Welsh
marian
text2text-generation
welsh
cymraeg
legislation
nmt
mt-models-api-name:legislation
Model card Files Files and versions
xet
Community
4

Instructions to use techiaith/mt-dspec-legislation-en-cy with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use techiaith/mt-dspec-legislation-en-cy 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="techiaith/mt-dspec-legislation-en-cy")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
    
    tokenizer = AutoTokenizer.from_pretrained("techiaith/mt-dspec-legislation-en-cy")
    model = AutoModelForSeq2SeqLM.from_pretrained("techiaith/mt-dspec-legislation-en-cy")
  • Notebooks
  • Google Colab
  • Kaggle
mt-dspec-legislation-en-cy
143 MB
Ctrl+K
Ctrl+K
  • 5 contributors
History: 15 commits
mgrbyte's picture
mgrbyte
Ychwanegu tag ar gyfer API gwasanaeth cyfieithu techiaith
cb1f8bd verified 3 months ago
  • .gitattributes
    1.52 kB
    Added initial versions of the domain-specific legislation model. about 3 years ago
  • README.md
    1.63 kB
    Ychwanegu tag ar gyfer API gwasanaeth cyfieithu techiaith 3 months ago
  • config.json
    961 Bytes
    Fix weight tying for transformers>=4.31 compatibility 3 months ago
  • generation_config.json
    254 Bytes
    Fix weight tying for transformers>=4.31 compatibility 3 months ago
  • model.safetensors
    140 MB
    xet
    Fix weight tying for transformers>=4.31 compatibility 3 months ago
  • pytorch_model.bin
    282 Bytes
    xet
    Upload new version of all model files. about 2 years ago
  • source.spm
    1.15 MB
    xet
    Fix weight tying for transformers>=4.31 compatibility 3 months ago
  • special_tokens_map.json
    70 Bytes
    Update sources having fixed issues with tokenizer. about 3 years ago
  • target.spm
    1.15 MB
    xet
    Fix weight tying for transformers>=4.31 compatibility 3 months ago
  • tokenizer_config.json
    819 Bytes
    Fix weight tying for transformers>=4.31 compatibility 3 months ago
  • vocab.json
    1.22 MB
    Fix weight tying for transformers>=4.31 compatibility 3 months ago