Downloads · 30 days
6
8% of all-time downloads
Parth7007/qwen2.5-finance-model
qwen2.5-finance-model is a text generation model from Parth7007. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as mit.
A parameter-efficient fine-tuned version of Qwen2.5-3B-Instruct for step-by-step financial reasoning and numerical problem solving.
Downloads · 30 days
6
8% of all-time downloads
All-time downloads
78
Public
Repo size
71.4 MB
Likes
0
Public
Click a slice to open those files.
.safetensors59.9 MB · 84%
From the Hugging Face model README
A parameter-efficient fine-tuned version of Qwen2.5-3B-Instruct for step-by-step financial reasoning and numerical problem solving.
This model is a fine-tuned version of Qwen2.5-3B-Instruct, trained to perform step-by-step financial reasoning and calculations using Low-Rank Adaptation (LoRA).
It is designed to:
| Field | Details |
|---|---|
| Developed by | Parth Kadoo |
| Model type | Causal Language Model (LLM) |
| Base model | unsloth/qwen2.5-3b-instruct-unsloth-bnb-4bit |
| Fine-tuning method | LoRA (PEFT) |
| Task | Financial reasoning & text generation |
| Language(s) | English |
| License | MIT |
| PEFT Version | 0.18.1 |
This model can be used directly for:
This model can be plugged into larger pipelines for:
This model is not intended for:
from transformers import AutoTokenizer, AutoModelForCausalLM
model_name = "Parth7007/qwen2.5-finance-model"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
prompt = "If you invest ₹10,000 at 10% annual interest for 2 years, what is the final amount?"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=200)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Input:
If you invest ₹10,000 at 10% annual interest for 2 years, what is the final amount?
Output:
Step 1: Use the compound interest formula: A = P(1 + r)^t
Step 2: A = 10,000 × (1 + 0.10)^2
Step 3: A = 10,000 × 1.21
Final Answer: ₹12,100
| Parameter | Value |
|---|---|
| Training regime | 4-bit quantization (NF4) with bf16 mixed precision |
| Fine-tuning method | LoRA (Low-Rank Adaptation) |
| Trainable parameters | ~0.48% of total parameters |
| Epochs | 2 |
| Final training loss | ~0.82 |
| Optimizer | AdamW (via Unsloth) |
| Detail | Value |
|---|---|
| Hardware | Google Colab GPU (T4) |
| Cloud Provider | Google Colab |
| Framework | Transformers + PEFT (Unsloth) |
| Precision | 4-bit quantization (bitsandbytes) |
| Training time | ~1–2 hours (estimated on Colab T4) |
Evaluation was performed on held-out examples from the dreamerdeo/finqa dataset.
⚠️ No formal benchmark evaluation has been conducted yet.
Qualitative observations were used to assess model performance.
The model shows meaningful improvement over the base Qwen2.5-3B-Instruct on financial reasoning tasks, particularly for multi-step numerical problems. Formal benchmarking (e.g., on FinQA test split) is planned for future iterations.
| Library | Version |
|---|---|
transformers | Latest stable |
peft | 0.18.1 |
trl | Latest stable |
unsloth | Latest stable |
bitsandbytes | Latest stable |
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
| Field | Details |
|---|---|
| Hardware Type | NVIDIA T4 GPU (Google Colab) |
| Hours used | ~1–2 hours (estimated) |
| Cloud Provider | Google (Colab) |
| Compute Region | US (estimated) |
| Carbon Emitted | Minimal (short training run on shared cloud GPU) |
If you use this model or find it helpful, please consider citing the original FinQA dataset:
BibTeX:
@inproceedings{chen2021finqa,
title = {FinQA: A Dataset of Numerical Reasoning over Financial Data},
author = {Chen, Zhiyu and Chen, Wenhu and Sha, Charese and Wang, Jianshu and Wang, William Yang},
booktitle = {Proceedings of EMNLP 2021},
year = {2021}
}
APA: Chen, Z., Chen, W., Sha, C., Wang, J., & Wang, W. Y. (2021). FinQA: A Dataset of Numerical Reasoning over Financial Data. EMNLP 2021.
| Term | Definition |
|---|---|
| LoRA | Low-Rank Adaptation — a PEFT method that trains small adapter matrices instead of full model weights |
| PEFT | Parameter-Efficient Fine-Tuning — techniques to fine-tune large models with minimal trainable parameters |
| SFT | Supervised Fine-Tuning — training on labeled instruction-response pairs |
| 4-bit quantization | Reducing model weights to 4-bit precision to lower memory usage |
| FinQA | A financial reasoning benchmark requiring numerical reasoning over earnings reports |
Parth Kadoo
For questions, feedback, or collaboration, feel free to reach out via Hugging Face.
peft == 0.18.1