cfilt/iitb-english-hindi
Viewer • Updated • 1.66M • 10.5k • 66
How to use SRDdev/HingFlow 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="SRDdev/HingFlow") # Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("SRDdev/HingFlow")
model = AutoModelForSeq2SeqLM.from_pretrained("SRDdev/HingFlow")# Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("SRDdev/HingFlow")
model = AutoModelForSeq2SeqLM.from_pretrained("SRDdev/HingFlow")It achieves the following results on the evaluation set:
https://github.com/SRDdev/HingFlow
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Bleu | Gen Len |
|---|---|---|---|---|---|
| 0.1505 | 1.0 | 1000 | 0.2053 | 71.6108 | 5.8418 |
| 0.1057 | 2.0 | 2000 | 0.1887 | 72.3468 | 5.9953 |
# 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="SRDdev/HingFlow")