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

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
194 MB
Ctrl+K
Ctrl+K
  • 5 contributors
History: 6 commits
mgrbyte's picture
mgrbyte
Added model card
625e2ea over 3 years ago
  • .gitattributes
    1.52 kB
    Added initial versions of the domain-specific legislation model. over 3 years ago
  • README.md
    2.46 kB
    Added model card over 3 years ago
  • config.json
    994 Bytes
    Update sources having fixed issues with tokenizer. over 3 years ago
  • generation_config.json
    277 Bytes
    Update sources having fixed issues with tokenizer. over 3 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

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

    What is a pickle import?

    191 MB
    xet
    Update sources having fixed issues with tokenizer. over 3 years ago
  • source.spm
    1.15 MB
    xet
    Added initial versions of the domain-specific legislation model. over 3 years ago
  • special_tokens_map.json
    70 Bytes
    Update sources having fixed issues with tokenizer. over 3 years ago
  • target.spm
    1.15 MB
    xet
    Added initial versions of the domain-specific legislation model. over 3 years ago
  • tokenizer_config.json
    206 Bytes
    Update sources having fixed issues with tokenizer. over 3 years ago
  • vocab.json
    1.17 MB
    Update sources having fixed issues with tokenizer. over 3 years ago