Downloads · 30 days
27
30% of all-time downloads
AITRADER/Amsi-fin-o1
Amsi-fin-o1 is a image-text-to-text model from AITRADER. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
A fine-tuned Qwen3-VL 4B model specialized for financial document understanding, chart analysis, and chain-of-thought reasoning.
Downloads · 30 days
27
30% of all-time downloads
All-time downloads
89
Public
Parameters
4.4B
8.9 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors8.9 GB · 100%
From the Hugging Face model README
A fine-tuned Qwen3-VL 4B model specialized for financial document understanding, chart analysis, and chain-of-thought reasoning.
Amsi-fin-o1 is a vision-language model fine-tuned for financial applications. It combines:
huihui-ai/Huihui-Qwen3-VL-4B-Thinking-abliteratedThe model was trained in 4 progressive stages:
| Stage | Focus | Steps | Learning Rate | Datasets |
|---|---|---|---|---|
| B1 | Financial Text | 1,200 | 8e-6 | FinTrain (70%), FinTrain-Math (15%), OCR (10%), ChartQA (5%) |
| B2 | Visual OCR | 1,500 | 8e-6 | MultiFinBen-OCR (50%), SecureFinAI-OCR (20%), ChartQA (20%), NuminaMath (10%) |
| B3 | Chain-of-Thought | 2,000 | 6e-6 | CoTA (50%), Program-CoTA (50%) |
| B4 | Mixed Fine-tuning | 1,200 | 6e-6 | All datasets combined |
bf16: true
full_finetune: true
per_device_train_batch_size: 1
gradient_accumulation_steps: 8
max_seq_length: 2048
target_context_length: 131072
rope_scaling_type: dynamic
rope_scaling_factor: 64.0
warmup_ratio: 0.03
weight_decay: 0.01
from transformers import AutoProcessor, AutoModelForVision2Seq
import torch
model_id = "AITRADER/Amsi-fin-o1"
processor = AutoProcessor.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForVision2Seq.from_pretrained(
model_id,
torch_dtype=torch.bfloat16,
device_map="auto",
trust_remote_code=True
)
# For text-only queries
messages = [
{"role": "user", "content": "Analyze the following financial statement..."}
]
# For image + text queries
from PIL import Image
image = Image.open("financial_chart.png")
messages = [
{"role": "user", "content": [
{"type": "image", "image": image},
{"type": "text", "text": "What trends do you see in this chart?"}
]}
]
inputs = processor.apply_chat_template(messages, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=512)
response = processor.decode(outputs[0], skip_special_tokens=True)
print(response)
Apache 2.0
@misc{amsi-fin-o1,
author = {AITRADER},
title = {Amsi-fin-o1: Financial Thinking Vision-Language Model},
year = {2025},
publisher = {HuggingFace},
url = {https://huggingface.co/AITRADER/Amsi-fin-o1}
}