Downloads · 30 days
50
2% of all-time downloads
Josephgflowers/FinR1-llama-8b-multi-language-thinking
FinR1-llama-8b-multi-language-thinking is a machine learning model from Josephgflowers. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as llama3.1.
Downloads · 30 days
50
2% of all-time downloads
All-time downloads
2.2K
Public
Parameters
8B
48.2 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors32.1 GB · 100%
From the Hugging Face model README

FinR1-llama-8b-multi-language-thinking is an 8-billion-parameter model fine-tuned for financial reasoning, multilingual analysis, and structured thinking.
It is built on top of meta-llama/Llama-3.1-8B-Instruct and extends prior Phi-series work by introducing deeper multilingual support, reasoning-trace integration, and improved numerical reliability in quantitative tasks.
This release focuses on OPTIONAL thought-process modeling using <think> reasoning tags and multi-turn financial dialogues across 60+ languages.
The FinR1 (Finance Reasoning 1) line targets:
meta-llama/Llama-3.1-8B-Instruct<think>…</think> structure to promote transparent reasoning.Datasets:
And more unreleased multi language datasets. Coverage extended to 60+ languages.
Full Languages List Used: "Arabic", "Amharic", "Azerbaijani", "Bengali", "Burmese", "Chinese (Simplified)", "Chinese (Traditional)", "Czech", "Danish", "Dutch", "English", "Finnish", "French", "Georgian", "German", "Greek", "Gujarati", "Haitian Creole", "Hausa", "Hebrew", "Hindi", "Hungarian", "Igbo", "Indonesian", "Italian", "Japanese", "Javanese", "Kazakh", "Khmer", "Korean", "Lao", "Malay", "Marathi", "Persian", "Polish", "Portuguese", "Punjabi", "Quechua", "Romanian", "Russian", "Serbian/Croatian/Bosnian", "Sinhala", "Somali", "Spanish", "Swahili", "Swedish", "Tagalog", "Tamil", "Telugu", "Thai", "Turkish", "Turkmen", "Ukrainian", "Urdu", "Uzbek", "Vietnamese", "Yoruba", "Zulu"
Using comprehensive seed data from: https://huggingface.co/datasets/Josephgflowers/finance_curriculum_topics
Covering 7,794 financial topic.
Benchmarked against prior Phi-mini reasoning models and base Llama-3.1-8B:
| Task | Metric | Base 8B | FinR1-8B |
|---|---|---|---|
| Spreadsheet conversion | Structural accuracy | 0.74 | 0.98 |
| Financial difference calc | Numerical correctness | 0.67 | 1.00 |
| Instruction following | Pass rate | 0.81 | 0.96 |
| Multilingual finance QA | F1 (avg 10 langs) | 0.61 | 0.89 |
Example benchmark:
You are a multilingual financial reasoning assistant.
Explain your reasoning step by step using <think>...</think> tags.
Sales channel data:
POS total: $2,075,743.54
Online total: $254,277.27
How much more is POS doing?
<think>
To find the difference, subtract Online total from POS total:
2,075,743.54 - 254,277.27 = 1,821,466.27
</think>
The Point of Sale channel generated $1,821,466.27 more than the Online Store.
Recent limited evaluation tests by GPT 5 showed:
The model’s reasoning outputs mirror the structure defined in Pollinations dataset generation scripts used in development.
| Parameter | Value |
|---|---|
| Base | Llama-3.1-8B-Instruct |
| Architecture | 8 B parameters |
| Context Length | 16 k |
| Precision | bfloat16 / 4-bit LoRA compatible |
| License | llama3.1 |
| Author | Joseph G. Flowers |
| Framework | Hugging Face Transformers + TRL / Unsloth |
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "Josephgflowers/FinR1-llama-8b-multi-language-thinking"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name, device_map="auto")
prompt = """You are a financial assistant. Use <think>...</think> to explain your steps.
Sales increased from $500K to $650K. What is the percentage growth?"""
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=150)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
@model{josephgflowers2025finr1llama8b,
title={FinR1-llama-8b-multi-language-thinking},
author={Joseph G. Flowers},
year={2025},
url={https://huggingface.co/Josephgflowers/FinR1-llama-8b-multi-language-thinking}
}
Additional multilingual finance datasets (v2 + v3) and extended Gemini-filtered reasoning traces will be uploaded soon to support reproducibility and expansion for FinR2. Future plans include dataset release under the Finance-Reasoning-Hub collection for structured evaluation across reasoning, translation, and quantitative accuracy.