Hemanth-thunder commited on
Commit
e925584
1 Parent(s): c6fa14a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +17 -0
README.md CHANGED
@@ -28,6 +28,23 @@ Mistral-7B-v0.1 is a transformer model, with the following architecture choices:
28
  - Sliding-Window Attention
29
  - Byte-fallback BPE tokenizer
30
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31
  ## Troubleshooting
32
 
33
  - If you see the following error:
 
28
  - Sliding-Window Attention
29
  - Byte-fallback BPE tokenizer
30
 
31
+
32
+ #### Running the model on a GPU
33
+
34
+
35
+ ```python
36
+ from transformers import AutoTokenizer, AutoModelForCausalLM
37
+
38
+ tokenizer = AutoTokenizer.from_pretrained("Hemanth-thunder/Tamil-Mistral-7B-v0.1")
39
+ model = AutoModelForCausalLM.from_pretrained("Hemanth-thunder/Tamil-Mistral-7B-v0.1")
40
+
41
+ input_text = "ஒரு கிராமத்தில் பண்ணையார் ஒருவர் வாழ்ந்து வந்தார்."
42
+ input_ids = tokenizer(input_text, return_tensors="pt")
43
+
44
+ outputs = model.generate(**input_ids)
45
+ print(tokenizer.decode(outputs[0]))
46
+ ```
47
+
48
  ## Troubleshooting
49
 
50
  - If you see the following error: