Update README.md
Browse files
README.md
CHANGED
@@ -9,7 +9,9 @@ Note: this is a base model and not meant to be used as is. We recommend first fi
|
|
9 |
|
10 |
```
|
11 |
# Usage
|
12 |
-
|
|
|
|
|
13 |
model = LlamaForCausalLM.from_pretrained('sarvamai/OpenHathi-7B-Hi-v0.1-Base', torch_dtype=torch.bfloat16)
|
14 |
|
15 |
prompt = "मैं एक अच्छा हाथी हूँ"
|
|
|
9 |
|
10 |
```
|
11 |
# Usage
|
12 |
+
from transformers import LlamaTokenizer, LlamaForCausalLM
|
13 |
+
|
14 |
+
tokenizer = LlamaTokenizer.from_pretrained('sarvamai/OpenHathi-7B-Hi-v0.1-Base')
|
15 |
model = LlamaForCausalLM.from_pretrained('sarvamai/OpenHathi-7B-Hi-v0.1-Base', torch_dtype=torch.bfloat16)
|
16 |
|
17 |
prompt = "मैं एक अच्छा हाथी हूँ"
|