linh5nb commited on
Commit
f58de22
1 Parent(s): 2c29a92

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -0
README.md CHANGED
@@ -11,8 +11,11 @@ model = AutoModelForCausalLM.from_pretrained("linh5nb/Llama-2-7b-chat-finetune_c
11
  tokenizer = AutoTokenizer.from_pretrained("linh5nb/Llama-2-7b-chat-finetune_covid")
12
 
13
  prompt = "What is the main cause of HIV-1 infection in children?"
 
14
  pipe = pipeline(task="text-generation", model=model, tokenizer=tokenizer, max_length=200)
 
15
  result = pipe(f"<s>[INST] {prompt} [/INST] ")
 
16
  print(result[0]['generated_text'])
17
 
18
  [More Information Needed]
 
11
  tokenizer = AutoTokenizer.from_pretrained("linh5nb/Llama-2-7b-chat-finetune_covid")
12
 
13
  prompt = "What is the main cause of HIV-1 infection in children?"
14
+
15
  pipe = pipeline(task="text-generation", model=model, tokenizer=tokenizer, max_length=200)
16
+
17
  result = pipe(f"<s>[INST] {prompt} [/INST] ")
18
+
19
  print(result[0]['generated_text'])
20
 
21
  [More Information Needed]