Downloads · 30 days
8
7% of all-time downloads
eagle0504/finetuned-warren-buffett-letter-model-llama-3.2-3B-Instruct-2024
finetuned-warren-buffett-letter-model-llama-3.2-3B-Instruct-2024 is a question answering model from eagle0504. Use it when the input is a question plus a passage. It is set up for transformers. The card lists the license as mit.
This model is fine-tuned to answer questions based on Warren Buffett’s annual shareholder letters from 1998 to 2024. It understands the themes, vocabulary, and tone of Buffett’s writing and is capable of responding to…
Downloads · 30 days
8
7% of all-time downloads
All-time downloads
107
Public
Parameters
3.2B
6.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors6.4 GB · 100%
From the Hugging Face model README
This model is fine-tuned to answer questions based on Warren Buffett’s annual shareholder letters from 1998 to 2024. It understands the themes, vocabulary, and tone of Buffett’s writing and is capable of responding to questions about his investment philosophy, decisions, and observations.
Invoke notebook shared here, a publicly available Colab notebook for tests.
This is a transformer-based question-answering model fine-tuned from unsloth/Llama-3.2-3B-Instruct. It was trained on a dataset derived from Warren Buffett’s letters to Berkshire Hathaway shareholders. The dataset pairs real excerpts with corresponding questions and answers for a conversational learning experience.
This model can be used to:
The model inherits the biases and perspectives from Warren Buffett’s letters, which reflect his personal views and investment philosophy. While these views are valuable, they do not represent all schools of financial thought. Also, since the model was fine-tuned on a niche dataset, it may not perform well on unrelated questions or general knowledge.
Always verify model outputs, especially if using for educational or advisory purposes.
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("eagle0504/warren-buffett-letters-qna-r1-enhanced-1998-2024-finetuned-llama-3.2-3B-Instruct")
tokenizer = AutoTokenizer.from_pretrained("eagle0504/warren-buffett-letters-qna-r1-enhanced-1998-2024-finetuned-llama-3.2-3B-Instruct")
inputs = tokenizer("Question: What is intrinsic value?\nAnswer:", return_tensors="pt")
outputs = model.generate(**inputs)
print(tokenizer.decode(outputs[0]))
{"question": "...", "answer": "..."} based on text from the lettersA formatting function was used to convert each entry to:
Question: <question text>
Answer: <answer text>
runpod/pytorch:2.1.0-py3.10-cuda11.8.0-devel-ubuntu22.04uvCarbon emissions can be estimated using the Machine Learning Impact calculator.
Author: Yiqiao Yin Connect with me on LinkedIn