Text2Text Generation
Transformers
PyTorch
Oriya
Hindi
English
mt5
india language
Inference Endpoints
mrSoul7766 commited on
Commit
d4266d8
1 Parent(s): 1adbfdb

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +45 -0
README.md CHANGED
@@ -50,7 +50,52 @@ widget:
50
  example_title: summarize
51
  license: cc-by-sa-4.0
52
  ---
 
 
53
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54
 
55
  ### Licensing Information
56
 
 
50
  example_title: summarize
51
  license: cc-by-sa-4.0
52
  ---
53
+ # Model Card for odia-t5-base
54
+ ![model image](https://adaptiverecs-web.s3.ap-south-1.amazonaws.com/my-test-data/Odia+T5.png)
55
 
56
+ # Model Details
57
+
58
+ ## Model Description
59
+
60
+ odia-t5-base is a multilingual Text-To-Text Transfer Transformer fine-tuned to perform downstream tasks in the Odia language.
61
+
62
+ - **Developed by:** Mohammed Ashraf
63
+ - **Model type:** Language model
64
+ - **Language(s) (NLP):** Odia, English, Hindi
65
+ - **License:** CC BY-NC-SA 4.0
66
+ - **Related Models:** [All MT5 Checkpoints](https://huggingface.co/models?search=mt5)
67
+
68
+ # Uses
69
+
70
+ ## Direct Use and Downstream Use
71
+
72
+ - Translate English to Odia.
73
+ - Translate Hind to Odia.
74
+ - Odia Sentence Summarization.
75
+ - Question Answering in Odia.
76
+ - Context-Based Question answering in Odia.
77
+
78
+
79
+ ### How to use
80
+
81
+ ```
82
+ from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
83
+
84
+ tokenizer = AutoTokenizer.from_pretrained("mrSoul7766/odia-t5-base")
85
+ model = AutoModelForSeq2SeqLM.from_pretrained("mrSoul7766/odia-t5-base")
86
+
87
+ # Set maximum generation length
88
+ max_length = 512
89
+
90
+ # Generate response with question as input
91
+ input_ids = tokenizer.encode("answer: ଓଡ଼ିଶାରେ ଅଟ୍ଟାଳିକା ପାଇଁ ସର୍ବାଧିକ ଆସନ ସୀମା କ’ଣ?</s>", return_tensors="pt")
92
+ output_ids = model.generate(input_ids, max_length=max_length)
93
+
94
+ # Decode response
95
+ response = tokenizer.decode(output_ids[0], skip_special_tokens=True)
96
+ print(response)
97
+
98
+ ```
99
 
100
  ### Licensing Information
101