TheFinAI/Fino1_Reasoning_Path_FinQA
Viewer • Updated • 5.5k • 536 • 42
How to use vignesha7/DeepSeek-R1-Distill-Qwen-7B-Financial-Expert with Transformers:
# Use a pipeline as a high-level helper
# Warning: Pipeline type "question-answering" is no longer supported in transformers v5.
# You must load the model directly (see below) or downgrade to v4.x with:
# pip install "transformers<5.0.0"
from transformers import pipeline
pipe = pipeline("question-answering", model="vignesha7/DeepSeek-R1-Distill-Qwen-7B-Financial-Expert") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("vignesha7/DeepSeek-R1-Distill-Qwen-7B-Financial-Expert")
model = AutoModelForCausalLM.from_pretrained("vignesha7/DeepSeek-R1-Distill-Qwen-7B-Financial-Expert", device_map="auto")DeepSeek-R1 model finetuned for financial question answering.
DeepSeek-R1-Distill-Qwen-7B model finetuned on TheFinAI/Fino1_Reasoning_Path_FinQA dataset.
Mainly intented to answer questions related to finance.
Base model
deepseek-ai/DeepSeek-R1-Distill-Qwen-7B