Update README.md
Browse files
README.md
CHANGED
@@ -45,10 +45,9 @@ tokenizer = AutoTokenizer.from_pretrained(model_id)
|
|
45 |
question: "Akciğer kanseri nedir?"
|
46 |
# For generating a response
|
47 |
prompt = '''
|
48 |
-
###
|
49 |
{question}
|
50 |
-
|
51 |
-
### Response:'''
|
52 |
input_ids = tokenizer(prompt, return_tensors="pt").input_ids
|
53 |
output = model.generate(inputs=input_ids,max_new_tokens=512,pad_token_id=tokenizer.eos_token_id,top_k=50, do_sample=True,
|
54 |
top_p=0.95)
|
|
|
45 |
question: "Akciğer kanseri nedir?"
|
46 |
# For generating a response
|
47 |
prompt = '''
|
48 |
+
### Kullancı:
|
49 |
{question}
|
50 |
+
'''
|
|
|
51 |
input_ids = tokenizer(prompt, return_tensors="pt").input_ids
|
52 |
output = model.generate(inputs=input_ids,max_new_tokens=512,pad_token_id=tokenizer.eos_token_id,top_k=50, do_sample=True,
|
53 |
top_p=0.95)
|