Metin commited on
Commit
1776ce3
1 Parent(s): f3be38d

Fix usage example

Browse files
Files changed (1) hide show
  1. README.md +1 -3
README.md CHANGED
@@ -33,9 +33,7 @@ from transformers import AutoTokenizer, AutoModelForCausalLM
33
  tokenizer = AutoTokenizer.from_pretrained("Metin/gemma-2b-tr")
34
  model = AutoModelForCausalLM.from_pretrained("Metin/gemma-2b-tr")
35
 
36
- system_prompt = "You are a helpful assistant. Always reply in Turkish."
37
- instruction = "Bugün sinemaya gidemedim çünkü"
38
- prompt = f"{system_prompt} [INST] {instruction} [/INST]"
39
  input_ids = tokenizer(prompt, return_tensors="pt")
40
 
41
  outputs = model.generate(**input_ids)
 
33
  tokenizer = AutoTokenizer.from_pretrained("Metin/gemma-2b-tr")
34
  model = AutoModelForCausalLM.from_pretrained("Metin/gemma-2b-tr")
35
 
36
+ prompt = "Bugün sinemaya gidemedim çünkü"
 
 
37
  input_ids = tokenizer(prompt, return_tensors="pt")
38
 
39
  outputs = model.generate(**input_ids)