tmberooney
commited on
Commit
·
834bb10
1
Parent(s):
71e72f9
Update README.md
Browse files
README.md
CHANGED
@@ -15,12 +15,11 @@ TODO: Change Model.
|
|
15 |
### Usage
|
16 |
For usage, use this code block, with GPU recommended
|
17 |
```
|
18 |
-
|
|
|
19 |
|
20 |
-
|
21 |
-
model = AutoModelForCausalLM.from_pretrained("
|
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
|