tmberooney commited on
Commit
834bb10
·
1 Parent(s): 71e72f9

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -5
README.md CHANGED
@@ -15,12 +15,11 @@ TODO: Change Model.
15
  ### Usage
16
  For usage, use this code block, with GPU recommended
17
  ```
18
- from transformers import AutoModelForCausalLM, AutoTokenizer
 
19
 
20
- config = PeftConfig.from_pretrained("tmberooney/medllama")
21
- model = AutoModelForCausalLM.from_pretrained("daryl149/llama-2-7b-chat-hf", device_map="auto")
22
- model = PeftModel.from_pretrained(model, "tmberooney/medllama")
23
- tokenizer=AutoTokenizer.from_pretrained(config.base_model_name_or_path)
24
  ```
25
 
26
  ### Intended Use
 
15
  ### Usage
16
  For usage, use this code block, with GPU recommended
17
  ```
18
+ # Load model directly
19
+ from transformers import AutoTokenizer, AutoModelForCausalLM
20
 
21
+ tokenizer = AutoTokenizer.from_pretrained("tmberooney/medllama-merged")
22
+ model = AutoModelForCausalLM.from_pretrained("tmberooney/medllama-merged")
 
 
23
  ```
24
 
25
  ### Intended Use