Translation
Transformers
PyTorch
TensorFlow
Safetensors
Arabic
English
marian
text2text-generation
opus-mt-tc
Eval Results (legacy)
Instructions to use Helsinki-NLP/opus-mt-tc-big-en-ar with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-tc-big-en-ar 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="Helsinki-NLP/opus-mt-tc-big-en-ar")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-tc-big-en-ar") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-tc-big-en-ar") - Inference
- Notebooks
- Google Colab
- Kaggle
Joao Gante commited on
Commit ·
4fc3e51
1
Parent(s): e2140a8
Add TF weights
Browse files- config.json +2 -1
- tf_model.h5 +3 -0
config.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
{
|
|
|
|
| 2 |
"activation_dropout": 0.0,
|
| 3 |
"activation_function": "relu",
|
| 4 |
"architectures": [
|
|
@@ -39,7 +40,7 @@
|
|
| 39 |
"share_encoder_decoder_embeddings": true,
|
| 40 |
"static_position_embeddings": true,
|
| 41 |
"torch_dtype": "float16",
|
| 42 |
-
"transformers_version": "4.
|
| 43 |
"use_cache": true,
|
| 44 |
"vocab_size": 61247
|
| 45 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": "/tmp/Helsinki-NLP/opus-mt-tc-big-en-ar",
|
| 3 |
"activation_dropout": 0.0,
|
| 4 |
"activation_function": "relu",
|
| 5 |
"architectures": [
|
|
|
|
| 40 |
"share_encoder_decoder_embeddings": true,
|
| 41 |
"static_position_embeddings": true,
|
| 42 |
"torch_dtype": "float16",
|
| 43 |
+
"transformers_version": "4.22.0.dev0",
|
| 44 |
"use_cache": true,
|
| 45 |
"vocab_size": 61247
|
| 46 |
}
|
tf_model.h5
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6dbf6a18947b8c22fb28c638eec1d3c1e7930c4ba9cfc149e6be5e18f3f7da5e
|
| 3 |
+
size 965463208
|