Update Readme.md to use correct peft library syntax.
#4
by
gmittalg
- opened
README.md
CHANGED
@@ -20,7 +20,7 @@ base_model = AutoModelForCausalLM.from_pretrained(
|
|
20 |
)
|
21 |
tokenizer = AutoTokenizer.from_pretrained('meta-llama/Llama-2-7b-chat-hf')
|
22 |
|
23 |
-
model = PeftModel.from_pretrained('FinGPT/fingpt-forecaster_dow30_llama2-7b_lora')
|
24 |
model = model.eval()
|
25 |
```
|
26 |
|
|
|
20 |
)
|
21 |
tokenizer = AutoTokenizer.from_pretrained('meta-llama/Llama-2-7b-chat-hf')
|
22 |
|
23 |
+
model = PeftModel.from_pretrained(base_model, 'FinGPT/fingpt-forecaster_dow30_llama2-7b_lora')
|
24 |
model = model.eval()
|
25 |
```
|
26 |
|