Downloads · 30 days
15
28% of all-time downloads
aijadugar/multi30k-gru
multi30k-gru is a translation model from aijadugar. Use it when you need text moved from one language to another. It is set up for pytorch. The card lists the license as mit.
A PyTorch Seq2Seq Encoder-Decoder GRU trained from scratch on the Multi30k dataset.
Downloads · 30 days
15
28% of all-time downloads
All-time downloads
54
Public
Repo size
17.6 MB
Likes
0
Public
Click a slice to open those files.
.safetensors17.5 MB · 99%
From the Hugging Face model README
A PyTorch Seq2Seq Encoder-Decoder GRU trained from scratch on the Multi30k dataset.
| Split | Samples |
|---|---|
| Train | 29,000 |
| Validation | 1,014 |
| Test | 1,000 |
| Metric | Value |
|---|---|
| Train Loss | 0.87 |
| Validation Loss | 5.19 |
| Test Loss | 3.75 |
| BLEU | 16.06 |

# Load model
model = Seq2Seq(encoder, decoder, device)
model.load_state_dict(
load_file("best_seq2seq_gru.safetensors")
)
model.eval()
# Inference
sentence = "A man is riding a bicycle."
translation = translate_sentence(
sentence,
model
)
print(" ".join(translation))
Author Ankit Bari
GitHub: https://github.com/aijadugar Hugging Face: https://huggingface.co/aijadugar