Run this model with HF Jobs
Run Nextcloud-AI/opus-mt-fi-nl on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/Nextcloud-AI/opus-mt-fi-nl. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Nextcloud-AI/opus-mt-fi-nl on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use Nextcloud-AI/opus-mt-fi-nl with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Nextcloud-AI/opus-mt-fi-nl 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="Nextcloud-AI/opus-mt-fi-nl")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Nextcloud-AI/opus-mt-fi-nl") model = AutoModelForSeq2SeqLM.from_pretrained("Nextcloud-AI/opus-mt-fi-nl", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Joao Gante commited on
Commit ·
a11d6f0
1
Parent(s): c73058f
Add TF weights
Browse filesFiles changed (2)
- config.json+8-1
- tf_model.h5Added+3
123410 unmodified lines15161718192021222324252627282930313215 unmodified lines484950515253{"_num_labels": 3,"activation_dropout": 0.0,"activation_function": "swish",10 unmodified lines],"bos_token_id": 0,"classif_dropout": 0.0,"d_model": 512,"decoder_attention_heads": 8,"decoder_ffn_dim": 2048,"decoder_layerdrop": 0.0,"decoder_layers": 6,"decoder_start_token_id": 59835,"dropout": 0.1,"encoder_attention_heads": 8,"encoder_ffn_dim": 2048,"encoder_layerdrop": 0.0,"encoder_layers": 6,"eos_token_id": 0,"id2label": {"0": "LABEL_0","1": "LABEL_1",15 unmodified lines"num_hidden_layers": 6,"pad_token_id": 59835,"scale_embedding": true,"static_position_embeddings": true,"vocab_size": 59836}1234510 unmodified lines16171819202122232425262728293031323334353615 unmodified lines525354555657585960{"_name_or_path": "/tmp/Helsinki-NLP/opus-mt-fi-nl","_num_labels": 3,"activation_dropout": 0.0,"activation_function": "swish",10 unmodified lines],"bos_token_id": 0,"classif_dropout": 0.0,"classifier_dropout": 0.0,"d_model": 512,"decoder_attention_heads": 8,"decoder_ffn_dim": 2048,"decoder_layerdrop": 0.0,"decoder_layers": 6,"decoder_start_token_id": 59835,"decoder_vocab_size": 59836,"dropout": 0.1,"encoder_attention_heads": 8,"encoder_ffn_dim": 2048,"encoder_layerdrop": 0.0,"encoder_layers": 6,"eos_token_id": 0,"forced_eos_token_id": 0,"id2label": {"0": "LABEL_0","1": "LABEL_1",15 unmodified lines"num_hidden_layers": 6,"pad_token_id": 59835,"scale_embedding": true,"share_encoder_decoder_embeddings": true,"static_position_embeddings": true,"transformers_version": "4.22.0.dev0","use_cache": true,"vocab_size": 59836}
123version https://git-lfs.github.com/spec/v1oid sha256:6a85db8281316ad9308811c7c9ddaa3b41144967c1391dae3e0d0497f828139bsize 301961360config.json+8-1
tf_model.h5Added+3