Instructions to use SZTAKI-HLT/opennmt-en-hu with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SZTAKI-HLT/opennmt-en-hu 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="SZTAKI-HLT/opennmt-en-hu")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("SZTAKI-HLT/opennmt-en-hu", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
59272f0
1
Parent(s): 2667f20
Upload model
Browse files- config.json +9 -0
- model.bin +3 -0
- shared_vocabulary.txt +0 -0
- sp_m.model +3 -0
config.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_source_bos": false,
|
| 3 |
+
"add_source_eos": false,
|
| 4 |
+
"bos_token": "<s>",
|
| 5 |
+
"decoder_start_token": "<s>",
|
| 6 |
+
"eos_token": "</s>",
|
| 7 |
+
"layer_norm_epsilon": null,
|
| 8 |
+
"unk_token": "<unk>"
|
| 9 |
+
}
|
model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0cfb098c8787ca33daacfe0641a050a4e23860b19a8a4283969bc4c53f560c49
|
| 3 |
+
size 830029557
|
shared_vocabulary.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
sp_m.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:48cd3a0b8a1701acd10683e42fc29d646ad9e5d0ae09f26f97d5253b91813cf1
|
| 3 |
+
size 829080
|