Update README.md
Browse files
README.md
CHANGED
|
@@ -17,12 +17,10 @@ This was trained as part of the paper [RomanSetu: Efficiently unlocking multilin
|
|
| 17 |
The codebase used to train and evaluate this model can be found at [https://github.com/AI4Bharat/romansetu](https://github.com/AI4Bharat/romansetu).
|
| 18 |
|
| 19 |
## Usage
|
| 20 |
-
Clone [https://github.com/AI4Bharat/romansetu](https://github.com/AI4Bharat/romansetu) and install the required dependencies. Then download or clone this model to the same machine.
|
| 21 |
-
|
| 22 |
-
## Example
|
| 23 |
|
| 24 |
```python3
|
| 25 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 26 |
model_path = "ai4bharat/romansetu-cpt-roman-400m"
|
| 27 |
tokenizer = AutoTokenizer.from_pretrained(model_path)
|
| 28 |
-
model = AutoModelForCausalLM.from_pretrained(model_path)
|
|
|
|
|
|
| 17 |
The codebase used to train and evaluate this model can be found at [https://github.com/AI4Bharat/romansetu](https://github.com/AI4Bharat/romansetu).
|
| 18 |
|
| 19 |
## Usage
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
```python3
|
| 22 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 23 |
model_path = "ai4bharat/romansetu-cpt-roman-400m"
|
| 24 |
tokenizer = AutoTokenizer.from_pretrained(model_path)
|
| 25 |
+
model = AutoModelForCausalLM.from_pretrained(model_path)
|
| 26 |
+
```
|