Downloads · 30 days
0
FinGPT/fingpt-forecaster_sz50_llama2-7B_lora
fingpt-forecaster_sz50_llama2-7B_lora is a machine learning model from FinGPT. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
0
Access
Public
Updated Apr 18, 2024
Repo size
40 MB
Likes
5
Public
Click a slice to open those files.
.safetensors40 MB · 100%
From the Hugging Face model README
from transformers import AutoModel, AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
model = "meta-llama/Llama-2-7b-chat-hf"
tokenizer = AutoTokenizer.from_pretrained(model, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(model, trust_remote_code=True, device_map = 'cuda')
model = PeftModel.from_pretrained(model, "FinGPT/fingpt-forecaster_sz50_llama2-7B_lora")
model = model.eval()