
# English2Hinglish-Flan-T5-Base

This is a finetuned model of [google/flan-t5-base](https://huggingface.co/google/flan-t5-base) 
with [rvv-karma/English-Hinglish-TOP](https://huggingface.co/datasets/rvv-karma/English-Hinglish-TOP) dataset.

## Usage
```python
# Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM

model_name = "rvv-karma/English2Hinglish-Flan-T5-Base"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSeq2SeqLM.from_pretrained(model_name)

input_text = "What are you doing?"
input_ids = tokenizer(input_text, return_tensors="pt")
output_ids = model.generate(**input_ids)
output_text = tokenizer.decode(output_ids[0], skip_special_tokens=True)

print(output_text)
```


## Fine-tuning script

[Google Colaboratory Notebook](https://colab.research.google.com/drive/11fUHem8r8qe_Ildh2_1XjOEY-Zyoy5j8?usp=sharing)

## References

[DataCamp](https://www.datacamp.com/tutorial/flan-t5-tutorial)
{"language": ["en", "hi", "multilingual"], "license": "apache-2.0", "tags": ["text2text-generation"], "datasets": ["rvv-karma/English-Hinglish-TOP"], "widget": [{"text": "Is it raining in Hawaii?", "example_title": "Is it raining in Hawaii?"}, {"text": "Turn off music.", "example_title": "Turn off music."}, {"text": "Is it snowing in New York?", "example_title": "Is it snowing in New York?"}], "pipeline_tag": "text2text-generation"}
transformers tensorboard safetensors t5 text2text-generation en hi multilingual dataset:rvv-karma/English-Hinglish-TOP license:apache-2.0 autotrain_compatible endpoints_compatible text-generation-inference region:us