Run this model with HF Jobs
Run Mananhumai/ATLAS-Finance-V1-Beta on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/Mananhumai/ATLAS-Finance-V1-Beta. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Mananhumai/ATLAS-Finance-V1-Beta on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/Mananhumai/ATLAS-Finance-V1-Beta. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/Mananhumai/ATLAS-Finance-V1-Beta. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use Mananhumai/ATLAS-Finance-V1-Beta with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Mananhumai/ATLAS-Finance-V1-Beta with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Mananhumai/ATLAS-Finance-V1-Beta") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("Mananhumai/ATLAS-Finance-V1-Beta") model = AutoModelForMultimodalLM.from_pretrained("Mananhumai/ATLAS-Finance-V1-Beta", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Mananhumai/ATLAS-Finance-V1-Beta with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Mananhumai/ATLAS-Finance-V1-Beta" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Mananhumai/ATLAS-Finance-V1-Beta", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Mananhumai/ATLAS-Finance-V1-Beta
- SGLang
How to use Mananhumai/ATLAS-Finance-V1-Beta with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Mananhumai/ATLAS-Finance-V1-Beta" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Mananhumai/ATLAS-Finance-V1-Beta", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Mananhumai/ATLAS-Finance-V1-Beta" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Mananhumai/ATLAS-Finance-V1-Beta", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Mananhumai/ATLAS-Finance-V1-Beta with Docker Model Runner:
docker model run hf.co/Mananhumai/ATLAS-Finance-V1-Beta
ATLAS Finance V1 Beta: Stage 2 SFT (merged)
Research beta. Not for autonomous financial decision-making. This 0.8B model gets most held-out finance questions wrong (42.3% accuracy on the 940-item test set). Its free-form analyst summaries (
grounded_analysis) contain an ungrounded number in 46.7% of scorable outputs. Use it only for research and with a human checking every answer against the cited evidence. It is not investment, accounting, tax or legal advice.
ATLAS Finance V1 is Qwen/Qwen3.5-0.8B fine-tuned for evidence-grounded financial reasoning. It covers ratio and valuation maths, SEC XBRL evidence lookups with cited evidence IDs, refusing unanswerable questions, accounting consistency checks, claim checking, FinQA-style report questions, risk-factor classification and short grounded analyst findings. It was trained with QLoRA on a 2 GB laptop GPU (NVIDIA MX330).
This repository holds the stage-2 supervised (SFT) checkpoint at step 145, the officially selected model. The LoRA adapter is merged into the base weights (bf16).
- Format: identical to the base checkpoint (
Qwen3_5ForConditionalGeneration, bf16 safetensors, same config, tokenizer and chat template). It loads in engines that loadQwen/Qwen3.5-0.8B, including SGLang โฅ 0.5.9 and transformers. Only transformers loading has been tested; the SGLang serving check is pending. - What changed: only the 186 LoRA-targeted language-model projection matrices, in all 24 layers
(q/k/v/o, linear-attention in_proj_qkv/z/a/b and out_proj, MLP gate/up/down). The vision tower, MTP head,
embeddings and norms are byte-identical to the base model.
export_manifest.jsonholds the checks. - Not evaluated: image inputs, MTP speculative decoding, thinking mode, and inputs longer than about 3,000 tokens.
Intended use
- Research on small, locally trainable financial-reasoning models.
- Structured tasks in the formats it was trained on (one JSON object per answer), with the evidence supplied in the prompt and a human reviewing the output.
Out of scope: autonomous trading, investment, credit, accounting or compliance decisions; financial advice to end users; questions that need knowledge that is not in the prompt; any setting where a wrong number is not caught by a person.
How the model was selected
The model was chosen on validation data only, before any test result was looked at. The rule is the highest 0.8 ร finance validation accuracy (526 items) + 0.2 ร general-reasoning validation accuracy (200 items: GSM8K 100 + ARC-Challenge 100).
| Checkpoint | Finance validation | General validation | Selection score |
|---|---|---|---|
| Qwen3.5-0.8B base | 14.1% | 46.0% | 0.2045 |
| SFT stage 1 | 44.1% | 25.0% | 0.4029 |
| SFT stage 2, step 145 (this model) | 46.2% | 47.0% | 0.4636 |
| DPO on stage 2 (experimental, not released here) | 47.0% | 43.5% | 0.4627 |
Held-out test results
The test set is ATLAS-Bench v2: 940 items. It covers 70 companies never seen in training, the FinQA test split and panel-labelled risk factors. All runs used the 4-bit NF4 base plus the unmerged adapter, greedy decoding and thinking off. Every run finished with 0 runtime errors.
| Model | Overall | JSON valid | Hallucination | Citation precision |
|---|---|---|---|---|
| Qwen3.5-0.8B base | 12.2% | 64.4% | 27.7% | 62.6% |
| SFT stage 1 | 41.5% | 99.4% | 0.7% | 99.8% |
| SFT stage 2 (this model) | 42.3% | 98.4% | 8.1% | 99.7% |
| DPO (experimental) | 44.3% | 98.1% | 7.8% | 100% |
On the same 940 items, base โ this model: 337 fixed and 54 broken (exact McNemar p โ 4e-51).
By category (this model; base in brackets):
| Category | n | Accuracy | Hallucination |
|---|---|---|---|
| unanswerable (must refuse) | 43 | 100.0% (4.7%) | 0% (72.1%) |
| contrarian (claim checking) | 70 | 71.4% (5.7%) | 0% |
| evidence_qa (cited lookups) | 100 | 69.0% (25.0%) | 0% |
| consistency (accounting checks) | 90 | 51.1% (46.7%) | โ |
| risk_classify | 38 | 50.0% (26.3%) | โ |
| fin_calc (ratios) | 160 | 47.5% (14.4%) | โ |
| finqa (report questions) | 299 | 25.4% (2.0%) | โ |
| fin_math (multi-step maths) | 80 | 16.2% (3.8%) | โ |
| grounded_analysis (free-form findings) | 60 | 10.0% (0.0%) | 46.7% (36.4%) |
"โ" means the category has no hallucination measure. Hallucination is scored where the output can state facts that are absent from the evidence: an answered unanswerable question, an uncited or invented number, or an invented citation.
Hallucination warning (grounded_analysis)
The overall 8.1% hallucination rate comes entirely from grounded_analysis. There, 21 of 45 scorable outputs
(46.7%) contain a number that is not in the supplied evidence or cite evidence that does not exist. Another 15 of
60 outputs (25%) are not valid JSON. On validation the rate was 5 of 15 (33.3%). The other categories with a
hallucination measure (evidence_qa, unanswerable, contrarian) had 0 hallucinated outputs on test. Do not use
this model to write analyst summaries or reports. Use it for its structured lookup and refusal formats, and
verify numbers against the cited evidence IDs.
Two further weaknesses:
- Risk classification dropped from 78.9% (stage 1) to 50.0% (this model).
- Multi-step maths (fin_math 16.2%, finqa 25.4%) is weak.
General reasoning (never trained on these test items)
| Model | Overall (400) | ARC-Challenge (200) | GSM8K (200) |
|---|---|---|---|
| Qwen3.5-0.8B base | 46.2% | 59.0% | 33.5% |
| SFT stage 1 | 24.8% | 43.5% | 6.0% |
| SFT stage 2 (this model) | 46.2% | 64.0% | 28.5% |
| DPO (experimental) | 45.8% | 64.0% | 27.5% |
Base โ this model: 54 fixed and 54 broken overall (p = 1.0). GSM8K was 27 fixed and 37 broken (p = 0.26); ARC was 27 fixed and 17 broken (p = 0.17). Neither change is statistically significant.
DPO comparison (experimental checkpoint, reported separately)
A DPO stage (921 verified on-policy preference pairs) was trained on top of this model. It scored slightly lower on the selection rule (0.4627 vs 0.4636), mainly because general validation fell from 47.0% to 43.5% (7 items broken, 0 fixed, p = 0.016). This model therefore remains the selected release. On the test set, DPO scored 44.3% vs 42.3% (32 fixed and 14 broken, p = 0.011). That result is reported but did not change the selection, because test results are not used for model choice. The DPO adapter is kept as an experimental checkpoint and is not in this repository.
Export verification (these merged bf16 weights)
Weights check: only the 186 targeted tensors changed, and their header and the untouched bytes match the base. The worst cosine between the stored update and the trained LoRA update is 0.9916, which is bf16 rounding. Details are in
export_manifest.json.Merged-weights test run: every 4th test item (235 items) was run with the merged weights loaded and quantized to 4-bit on the fly, against the unmerged adapter on the same items. Results: 42.1% vs 45.5%; 90.6% of items got the same verdict; 15 vs 7 discordant items, exact McNemar p = 0.13 (not significant).
Functional check of this repository's weights file, loaded in bf16 with transformers 5.22, on 40 finance validation prompts with greedy decoding:
This file (merged) Base + unmerged adapter Base only Accuracy 45.0% 47.5% 17.5% - Merged vs adapter: 36 of 40 outputs are token-identical, and the mean max |ฮlogit| on the first token is 0.28.
- Merged vs base: 0 of 40 outputs are identical, and the mean max |ฮlogit| is 15.9. So the fine-tune is present.
The merged weights behave like the adapter up to bf16 rounding, with a small, non-significant accuracy gap. Serving through SGLang on GMI Cloud has not been verified yet.
Usage
The model was trained and evaluated with thinking off. The bundled chat template defaults to thinking off when
enable_thinking is not set. To reproduce the evaluation, use greedy decoding (temperature 0) and the ATLAS
system prompts, which ask for a single JSON object.
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "Mananhumai/ATLAS-Finance-V1-Beta"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo, dtype="bfloat16")
msgs = [{"role": "system", "content": 'You are a precise financial analyst. Compute the requested metric from the figures given. Respond with ONE JSON object: {"answer": <number>, "unit": "<unit>", "working": "<one-line arithmetic>"}. Percentages are expressed as numbers like 12.34 (meaning 12.34%).'},
{"role": "user", "content": "Revenue was $120.0 million and cost of revenue $78.0 million. Compute the gross margin."}]
ids = tok.apply_chat_template(msgs, add_generation_prompt=True, enable_thinking=False, return_tensors="pt")
out = model.generate(ids, max_new_tokens=200, do_sample=False)
print(tok.decode(out[0, ids.shape[1]:], skip_special_tokens=True))
For evidence questions, send the user turn as EVIDENCE:\n<ID-tagged facts>\n\nQUESTION: <question>, with this system prompt:
You answer questions using ONLY the ID-tagged evidence provided. Respond with ONE JSON object: {"answer": <number or null>, "unit": "<unit>", "evidence_ids": ["<ID>", ...], "explanation": "<short>"}. Report dollar amounts in billions of USD (e.g. 391.04), percentages as numbers like 12.34. If the evidence does not contain the information, answer null with an empty evidence_ids list. Never guess.
SGLang (OpenAI-compatible server; not yet verified on GMI Cloud):
python3 -m sglang.launch_server --model-path Mananhumai/ATLAS-Finance-V1-Beta --served-model-name atlas-finance-v1-beta \
--host 0.0.0.0 --port 30000 --dtype bfloat16 --context-length 8192 --mem-fraction-static 0.8
Send "temperature": 0 and "chat_template_kwargs": {"enable_thinking": false} with each chat request. Do not
enable speculative decoding: the MTP head was not fine-tuned.
Training
Hardware was one NVIDIA MX330 (2 GB VRAM), a 4-core i7-1065G7 and 7.8 GB RAM. No rented GPUs were used for training. GMI Cloud-hosted models were used for teacher data and as comparison baselines.
- Stage 1 SFT: 5,500 examples (3.46M tokens), of which 4,212 were reached in the 29-hour time budget (353 steps). The data are verified SEC XBRL tasks, FinQA with re-executed programs, and teacher data filtered by agreement, deterministic validation and a critic.
- Stage 2 SFT (this model): 1,414 examples (1.05M tokens): 85% finance (902 new + 300 replay) and 15% general reasoning (GSM8K/ARC train splits). There were 145 steps (15.5 h), with a curriculum that ends on grounded analysis.
- DPO (experimental, not released here): 874 train / 47 holdout pairs, ฮฒ = 0.1, SFT weight 0.2, LR 5e-6, 110 steps, 17.4 h.
QLoRA throughout: NF4 4-bit base, LoRA r=32, ฮฑ=64, dropout 0.05 on all linear layers including the Gated DeltaNet projections. Other settings: fp32 adapters, fp16 autocast, LR 2e-4 (stage 1) and 1e-4 (stage 2), gradient checkpointing, completion-only loss. Benchmark companies (tickers and CIKs) and FinQA dev/test documents were excluded from training, and all DPO prompts were audited against every evaluation split.
Limitations
- This is a small model. Its world knowledge is limited and it often produces wrong numbers: 57.7% of test items are wrong.
- Free-form analysis is unreliable (see the hallucination warning).
- All benchmark numbers come from the 4-bit evaluation setup. The bf16 weights in this repository were checked on 235 test items and 40 validation items, not the full test set.
- Silver labels (risk categories, analyst findings) come from teacher models and are filtered but may contain noise. FinQA test documents may share companies (different years) with the SEC XBRL training data.
- It was only evaluated in English, with thinking off and prompts of up to about 3,000 tokens.
Licence and attribution
Apache License 2.0 (see LICENSE). This is a derivative of Qwen/Qwen3.5-0.8B
(revision 2fc06364715b967f1860aea9cf38778875588b17) by the Qwen team, Alibaba Cloud, which is licensed under
Apache 2.0. NOTICE lists which files were changed (only the weights file, in 186 matrices) and which were added.
Training data: FinQA (MIT), SEC EDGAR/XBRL (U.S. public domain), GSM8K (MIT), ARC (CC BY-SA 4.0).
- Downloads last month
- 655