saheedniyi
commited on
Commit
•
8282088
1
Parent(s):
39b30c9
Update README.md
Browse files
README.md
CHANGED
@@ -43,7 +43,7 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
43 |
tokenizer = AutoTokenizer.from_pretrained("saheedniyi/Llama3-8b-Naija_v1")
|
44 |
model = AutoModelForCausalLM.from_pretrained("saheedniyi/Llama3-8b-Naija_v1")
|
45 |
|
46 |
-
input_text = "What are the top
|
47 |
formatted_prompt=input_text=f"### BEGIN CONVERSATION ###\n\n## User: ##\n{input_text}\n\n## Assistant: ##\n"
|
48 |
inputs = tokenizer(input_text, return_tensors="pt")
|
49 |
outputs = model.generate(**inputs.to("cuda"), max_new_tokens=512,pad_token_id=tokenizer.pad_token_id,do_sample=True,temperature=0.6,top_p=0.9,)
|
|
|
43 |
tokenizer = AutoTokenizer.from_pretrained("saheedniyi/Llama3-8b-Naija_v1")
|
44 |
model = AutoModelForCausalLM.from_pretrained("saheedniyi/Llama3-8b-Naija_v1")
|
45 |
|
46 |
+
input_text = "What are the top places for tourism in Nigeria?"
|
47 |
formatted_prompt=input_text=f"### BEGIN CONVERSATION ###\n\n## User: ##\n{input_text}\n\n## Assistant: ##\n"
|
48 |
inputs = tokenizer(input_text, return_tensors="pt")
|
49 |
outputs = model.generate(**inputs.to("cuda"), max_new_tokens=512,pad_token_id=tokenizer.pad_token_id,do_sample=True,temperature=0.6,top_p=0.9,)
|