Downloads · 30 days
41
20% of all-time downloads
gandhiraketla277/finance-llama-3.1-8b
finance-llama-3.1-8b is a text generation model from gandhiraketla277. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as llama3.1.
This is a fine-tuned version of Meta's Llama-3.1-8B model, specialized for financial question-answering and advice. The model has been trained on financial instruction data to provide better responses to finance-relat…
Downloads · 30 days
41
20% of all-time downloads
All-time downloads
209
Public
Parameters
8B
6.1 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors6.1 GB · 100%
How the weights are stored.
U87B · 85%
From the Hugging Face model README
This is a fine-tuned version of Meta's Llama-3.1-8B model, specialized for financial question-answering and advice. The model has been trained on financial instruction data to provide better responses to finance-related queries.
This model is designed for:
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
# Load model and tokenizer
model = AutoModelForCausalLM.from_pretrained("gandhiraketla277/finance-llama-3.1-8b")
tokenizer = AutoTokenizer.from_pretrained("gandhiraketla277/finance-llama-3.1-8b")
# Example usage
prompt = "User: What is the difference between a tax credit and a tax deduction?\n\nAssistant:"
inputs = tokenizer.encode(prompt, return_tensors="pt")
with torch.no_grad():
outputs = model.generate(
inputs,
max_new_tokens=200,
temperature=0.7,
do_sample=True,
pad_token_id=tokenizer.eos_token_id
)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response[len(prompt):])
The model can handle various financial topics:
The model was fine-tuned on a subset of the Finance-Instruct-500k dataset, which contains instruction-following examples focused on financial topics.
The model shows improved performance on financial question-answering tasks compared to the base Llama-3.1-8B model, with more domain-specific knowledge and better structured responses.
If you use this model, please cite:
@misc{finance_llama_3.1_8b,
title={finance-llama-3.1-8b: A Finance-Specialized Llama-3.1-8B Model},
author={gandhiraketla277},
year={2025},
howpublished={\url{https://huggingface.co/gandhiraketla277/finance-llama-3.1-8b}}
}