Update README.md
Browse files
README.md
CHANGED
@@ -66,9 +66,13 @@ tokenizer = AutoTokenizer.from_pretrained("LingoIITGN/ganga-1b")
|
|
66 |
model = AutoModelForCausalLM.from_pretrained("LingoIITGN/ganga-1b", device_map="auto")
|
67 |
|
68 |
input_text = "BCCI ने टी-20 वर्ल्ड कप के बीच जिम्बाब्वे सीरीज "
|
69 |
-
input_ids = tokenizer.encode(input_text,
|
|
|
|
|
|
|
|
|
|
|
70 |
|
71 |
-
outputs = model.generate(input_ids, max_new_tokens=100, do_sample=True, top_k=50, top_p=0.95, temperature=0.7)
|
72 |
print(tokenizer.decode(outputs[0]))
|
73 |
|
74 |
```
|
|
|
66 |
model = AutoModelForCausalLM.from_pretrained("LingoIITGN/ganga-1b", device_map="auto")
|
67 |
|
68 |
input_text = "BCCI ने टी-20 वर्ल्ड कप के बीच जिम्बाब्वे सीरीज "
|
69 |
+
input_ids = tokenizer.encode(input_text,
|
70 |
+
return_tensors="pt").to("cuda")
|
71 |
+
|
72 |
+
outputs = model.generate(input_ids, max_new_tokens=100,
|
73 |
+
do_sample=True, top_k=50,
|
74 |
+
top_p=0.95, temperature=0.7)
|
75 |
|
|
|
76 |
print(tokenizer.decode(outputs[0]))
|
77 |
|
78 |
```
|