Update README.md
Browse files
README.md
CHANGED
@@ -8,7 +8,7 @@ This repository is the first model in the OpenHathi series of models that will b
|
|
8 |
Note: this is a base model and not meant to be used as is. We recommend first finetuning it on task(s) you are interested in.
|
9 |
|
10 |
```
|
11 |
-
from transformers
|
12 |
import torch
|
13 |
|
14 |
# Usage
|
@@ -32,7 +32,7 @@ pipe = pipeline(
|
|
32 |
model=model,
|
33 |
tokenizer=tokenizer,
|
34 |
max_length=100,
|
35 |
-
temperature=0.
|
36 |
pad_token_id=tokenizer.eos_token_id,
|
37 |
top_p=0.95,
|
38 |
repetition_penalty=1.2,
|
|
|
8 |
Note: this is a base model and not meant to be used as is. We recommend first finetuning it on task(s) you are interested in.
|
9 |
|
10 |
```
|
11 |
+
from transformers import AutoTokenizer,LlamaForCausalLM
|
12 |
import torch
|
13 |
|
14 |
# Usage
|
|
|
32 |
model=model,
|
33 |
tokenizer=tokenizer,
|
34 |
max_length=100,
|
35 |
+
temperature=0.01,
|
36 |
pad_token_id=tokenizer.eos_token_id,
|
37 |
top_p=0.95,
|
38 |
repetition_penalty=1.2,
|