starmpcc commited on
Commit
ad05e3a
1 Parent(s): 2f15bd8

Fix exampel script on readme

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -84,9 +84,9 @@ The response should provide the accurate answer to the instruction, while being
84
  [Instruction End]
85
  """
86
 
87
- from transformers import AutoTokenizer, AutoModel
88
- tokenizer = AutoTokenizer.from_pretrained("starmpcc/Asclepius-Llama2-7B")
89
- model = AutoModel.from_pretrained("starmpcc/Asclepius-Llama2-7B")
90
 
91
  note = "This is a sample note"
92
  question = "What is the diagnosis?"
 
84
  [Instruction End]
85
  """
86
 
87
+ from transformers import AutoTokenizer, AutoModelForCausalLM
88
+ tokenizer = AutoTokenizer.from_pretrained("starmpcc/Asclepius-Llama2-7B", use_fast=False)
89
+ model = AutoModelForCausalLM.from_pretrained("starmpcc/Asclepius-Llama2-7B")
90
 
91
  note = "This is a sample note"
92
  question = "What is the diagnosis?"