Downloads · 30 days
5
15% of all-time downloads
dipanjann/Gemma-4-31b-it-FinQA
Gemma-4-31b-it-FinQA is a text generation model from dipanjann. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
Gemma-4-31b-FinQA is a PEFT LoRA adapter for google/gemma-4-31B-it, adapted for financial question answering and numerical reasoning over financial-report context.
Downloads · 30 days
5
15% of all-time downloads
All-time downloads
34
Public
Repo size
120 MB
Likes
0
Public
Click a slice to open those files.
.safetensors87.7 MB · 73%
From the Hugging Face model README
Gemma-4-31b-FinQA is a PEFT LoRA adapter for google/gemma-4-31B-it,
adapted for financial question answering and numerical reasoning over
financial-report context.
google/gemma-4-31B-itLORA16320.05q_proj, v_projadapter_model.safetensors66b80c699208a913b502534eeff46f132cbd6f0b3b610dde5a16fc814c5fe8bfUse this adapter for research and prototyping on financial QA prompts that include a question plus relevant financial-report context. Do not use it as a substitute for professional financial advice, audited filing review, or production decisioning without independent validation.
This adapter is intended for the FinQA training workflow in the FinAI Dexlabs repository:
data/processed/finqa/train_question_answer.jsonl6,25158244847a8b9958a98260d843b5fc81a7cd74fce39fe2f1e2a6ba9ec50fb5e38question, answer, pre_text, table, table_ori,
post_text, stepsDataset readiness note: the FinQA export passes required completeness checks, but the quality report flags duplicate primary questions. Treat this model as a research adapter until model-level evaluation and split-hygiene evidence are added.
No model-level evaluation results are included in this release. Add scores only after a reproducible evaluation run exists, including dataset, metric, command, run date, and exact score.
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base_model = "google/gemma-4-31B-it"
adapter_id = "dipanjann/Gemma-4-31b-FinQA"
tokenizer = AutoTokenizer.from_pretrained(adapter_id)
model = AutoModelForCausalLM.from_pretrained(
base_model,
torch_dtype="auto",
device_map="auto",
)
model = PeftModel.from_pretrained(model, adapter_id)
prompt = """Answer the financial question using the context.
Question: What was the change in revenue?
Context: <paste relevant financial report context here>
"""
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=256)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
README.mdadapter_config.jsonadapter_model.safetensorschat_template.jinjaconfig.jsonspecial_tokens_map.jsontokenizer.jsontokenizer_config.jsontrainer_state.json