mirror of
https://github.com/AI4Finance-Foundation/FinGPT.git
synced 2024-02-15 23:10:01 +03:00
Update README.md
This commit is contained in:
@@ -45,7 +45,7 @@ base_model = AutoModelForCausalLM.from_pretrained(
|
||||
device_map="auto",
|
||||
torch_dtype=torch.float16, # optional if you have enough VRAM
|
||||
)
|
||||
tokenizer = AutoTokenizer.from_pretrained('FinGPT/fingpt-forecaster_dow30_llama2-7b_lora')
|
||||
tokenizer = AutoTokenizer.from_pretrained('meta-llama/Llama-2-7b-chat-hf')
|
||||
|
||||
model = PeftModel.from_pretrained('FinGPT/fingpt-forecaster_dow30_llama2-7b_lora')
|
||||
model = model.eval()
|
||||
|
||||
Reference in New Issue
Block a user