Text Generation
PEFT
Safetensors
Transformers
English
finance
trl
unsloth
sft
conversational

Model Card for Model ID

Model Details

Fino1-4B is a fine-tuned version of Qwen3-4B adapted for financial reasoning and question answering. The model was trained with LoRA parameter-efficient fine-tuning on a curated dataset derived from FinQA and enriched with GPT-4o-generated reasoning paths, enabling more structured and explainable answers to financial questions.

Model Description

  • Language(s) (NLP): English
  • License: MIT
  • Finetuned from model: Qwen3-4B
  • Domain: Finance

Uses

Direct Use

  • Primary use case: Answering financial reasoning questions with step-by-step structured reasoning.
  • Example applications:
    • Financial report analysis
    • Numerical reasoning over tabular data
    • Structured financial Q&A for educational/research purposes

Bias, Risks, and Limitations

  • Not a financial advisor; outputs should not be considered professional financial advice.
  • May hallucinate numbers or misinterpret complex financial contexts.
  • Trained on ~5.5K examples; may lack coverage for niche financial instruments or international standards.

How to Get Started with the Model


from huggingface_hub import login
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel

login(token="")

tokenizer = AutoTokenizer.from_pretrained("unsloth/Qwen3-4B",)
base_model = AutoModelForCausalLM.from_pretrained(
    "unsloth/Qwen3-4B",
    device_map={"": 0}, token=""
)

model = PeftModel.from_pretrained(base_model,"khazarai/Fino1-4B")

question = """
Please answer the given financial question based on the context.
Context: note 9 2014 benefit plans the company has defined benefit pension plans covering certain employees in the united states and certain international locations . postretirement healthcare and life insurance benefits provided to qualifying domestic retirees as well as other postretirement benefit plans in international countries are not material . the measurement date used for the company 2019s employee benefit plans is september 30 . effective january 1 , 2018 , the legacy u.s . pension plan was frozen to limit the participation of employees who are hired or re-hired by the company , or who transfer employment to the company , on or after january 1 , net pension cost for the years ended september 30 included the following components: .
|( millions of dollars )|pension plans 2019|pension plans 2018|pension plans 2017|
|service cost|$ 134|$ 136|$ 110|
|interest cost|107|90|61|
|expected return on plan assets|( 180 )|( 154 )|( 112 )|
|amortization of prior service credit|( 13 )|( 13 )|( 14 )|
|amortization of loss|78|78|92|
|settlements|10|2|2014|
|net pension cost|$ 135|$ 137|$ 138|
|net pension cost included in the preceding table that is attributable to international plans|$ 32|$ 34|$ 43|
net pension cost included in the preceding table that is attributable to international plans $ 32 $ 34 $ 43 the amounts provided above for amortization of prior service credit and amortization of loss represent the reclassifications of prior service credits and net actuarial losses that were recognized in accumulated other comprehensive income ( loss ) in prior periods . the settlement losses recorded in 2019 and 2018 primarily included lump sum benefit payments associated with the company 2019s u.s . supplemental pension plan . the company recognizes pension settlements when payments from the supplemental plan exceed the sum of service and interest cost components of net periodic pension cost associated with this plan for the fiscal year . as further discussed in note 2 , upon adopting an accounting standard update on october 1 , 2018 , all components of the company 2019s net periodic pension and postretirement benefit costs , aside from service cost , are recorded to other income ( expense ) , net on its consolidated statements of income , for all periods presented . notes to consolidated financial statements 2014 ( continued ) becton , dickinson and company .
Question: what is the percentage increase in service costs from 2017 to 2018?
Answer:
"""

messages = [
    {"role" : "user", "content" : question}
]
text = tokenizer.apply_chat_template(
    messages,
    tokenize = False,
    add_generation_prompt = True, 
    enable_thinking = True,
)

from transformers import TextStreamer
_ = model.generate(
    **tokenizer(text, return_tensors = "pt").to("cuda"),
    max_new_tokens = 4000,
    temperature = 0.6,
    top_p = 0.95,
    top_k = 20,
    streamer = TextStreamer(tokenizer, skip_prompt = True),
)

For pipeline:

from transformers import pipeline, AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel

tokenizer = AutoTokenizer.from_pretrained("unsloth/Qwen3-4B")
base_model = AutoModelForCausalLM.from_pretrained("unsloth/Qwen3-4B")
model = PeftModel.from_pretrained(base_model, "khazarai/Fino1-4B")

question = """
Please answer the given financial question based on the context.
Context: note 9 2014 benefit plans the company has defined benefit pension plans covering certain employees in the united states and certain international locations . postretirement healthcare and life insurance benefits provided to qualifying domestic retirees as well as other postretirement benefit plans in international countries are not material . the measurement date used for the company 2019s employee benefit plans is september 30 . effective january 1 , 2018 , the legacy u.s . pension plan was frozen to limit the participation of employees who are hired or re-hired by the company , or who transfer employment to the company , on or after january 1 , net pension cost for the years ended september 30 included the following components: .
|( millions of dollars )|pension plans 2019|pension plans 2018|pension plans 2017|
|service cost|$ 134|$ 136|$ 110|
|interest cost|107|90|61|
|expected return on plan assets|( 180 )|( 154 )|( 112 )|
|amortization of prior service credit|( 13 )|( 13 )|( 14 )|
|amortization of loss|78|78|92|
|settlements|10|2|2014|
|net pension cost|$ 135|$ 137|$ 138|
|net pension cost included in the preceding table that is attributable to international plans|$ 32|$ 34|$ 43|
net pension cost included in the preceding table that is attributable to international plans $ 32 $ 34 $ 43 the amounts provided above for amortization of prior service credit and amortization of loss represent the reclassifications of prior service credits and net actuarial losses that were recognized in accumulated other comprehensive income ( loss ) in prior periods . the settlement losses recorded in 2019 and 2018 primarily included lump sum benefit payments associated with the company 2019s u.s . supplemental pension plan . the company recognizes pension settlements when payments from the supplemental plan exceed the sum of service and interest cost components of net periodic pension cost associated with this plan for the fiscal year . as further discussed in note 2 , upon adopting an accounting standard update on october 1 , 2018 , all components of the company 2019s net periodic pension and postretirement benefit costs , aside from service cost , are recorded to other income ( expense ) , net on its consolidated statements of income , for all periods presented . notes to consolidated financial statements 2014 ( continued ) becton , dickinson and company .
Question: what is the percentage increase in service costs from 2017 to 2018?
Answer:
"""

pipe = pipeline("text-generation", model=model, tokenizer=tokenizer)
messages = [
    {"role": "user", "content": question}
]
pipe(messages)

Training Data

Citation

@article{chen2021finqa,
  title={Finqa: A dataset of numerical reasoning over financial data},
  author={Chen, Zhiyu and Chen, Wenhu and Smiley, Charese and Shah, Sameena and Borova, Iana and Langdon, Dylan and Moussa, Reema and Beane, Matt and Huang, Ting-Hao and Routledge, Bryan and others},
  journal={arXiv preprint arXiv:2109.00122},
  year={2021}

@article{qian2025fino1,
  title={Fino1: On the Transferability of Reasoning Enhanced LLMs to Finance},
  author={Qian, Lingfei and Zhou, Weipeng and Wang, Yan and Peng, Xueqing and Huang, Jimin and Xie, Qianqian},
  journal={arXiv preprint arXiv:2502.08127},
  year={2025}
}

Framework versions

  • PEFT 0.14.0
Downloads last month
10
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for khazarai/Fino1-4B

Base model

Qwen/Qwen3-4B-Base
Finetuned
Qwen/Qwen3-4B
Finetuned
unsloth/Qwen3-4B
Adapter
(7)
this model

Dataset used to train khazarai/Fino1-4B

Collection including khazarai/Fino1-4B