Instructions to use ramankrishna10/npc-fin-32b-sft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use ramankrishna10/npc-fin-32b-sft with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/qwen2.5-32b-instruct-bnb-4bit") model = PeftModel.from_pretrained(base_model, "ramankrishna10/npc-fin-32b-sft") - Notebooks
- Google Colab
- Kaggle
Card v2: add Zenodo DOI (10.5281/zenodo.19802598) + fix hardware/batch/precision (config drift)
Browse files
README.md
CHANGED
|
@@ -21,6 +21,8 @@ pipeline_tag: text-generation
|
|
| 21 |
|
| 22 |
A domain-specific financial reasoning model fine-tuned from [Qwen2.5-32B-Instruct](https://huggingface.co/Qwen/Qwen2.5-32B-Instruct) using QLoRA, focused on crypto market analysis, macro reasoning, and multi-step financial logic.
|
| 23 |
|
|
|
|
|
|
|
| 24 |
## Model Details
|
| 25 |
|
| 26 |
| Parameter | Value |
|
|
@@ -32,7 +34,6 @@ A domain-specific financial reasoning model fine-tuned from [Qwen2.5-32B-Instruc
|
|
| 32 |
| LoRA Dropout | 0.05 |
|
| 33 |
| Target Modules | q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj |
|
| 34 |
| Training Framework | Unsloth + trl SFTTrainer |
|
| 35 |
-
| Precision | float16 |
|
| 36 |
| Max Sequence Length | 4,096 tokens |
|
| 37 |
|
| 38 |
## Training Data
|
|
@@ -57,11 +58,19 @@ A domain-specific financial reasoning model fine-tuned from [Qwen2.5-32B-Instruc
|
|
| 57 |
| LR Schedule | Cosine decay |
|
| 58 |
| Warmup Ratio | 0.05 |
|
| 59 |
| Weight Decay | 0.01 |
|
| 60 |
-
| Batch Size | 4 |
|
| 61 |
-
| Gradient Accumulation | 8
|
|
|
|
| 62 |
| Epochs | 3 |
|
| 63 |
-
|
|
| 64 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 65 |
|
| 66 |
## Evaluation
|
| 67 |
|
|
@@ -120,12 +129,18 @@ print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
|
| 120 |
|
| 121 |
## Citation
|
| 122 |
|
|
|
|
|
|
|
| 123 |
```bibtex
|
| 124 |
-
@misc{
|
| 125 |
-
title={NPC Fin 32B
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 129 |
}
|
| 130 |
```
|
| 131 |
|
|
|
|
| 21 |
|
| 22 |
A domain-specific financial reasoning model fine-tuned from [Qwen2.5-32B-Instruct](https://huggingface.co/Qwen/Qwen2.5-32B-Instruct) using QLoRA, focused on crypto market analysis, macro reasoning, and multi-step financial logic.
|
| 23 |
|
| 24 |
+
📄 **Paper:** [NPC Fin 32B: A Domain-Specialized Financial Reasoning Model via Multi-GPU QLoRA](https://doi.org/10.5281/zenodo.19802598) (Zenodo, 2026)
|
| 25 |
+
|
| 26 |
## Model Details
|
| 27 |
|
| 28 |
| Parameter | Value |
|
|
|
|
| 34 |
| LoRA Dropout | 0.05 |
|
| 35 |
| Target Modules | q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj |
|
| 36 |
| Training Framework | Unsloth + trl SFTTrainer |
|
|
|
|
| 37 |
| Max Sequence Length | 4,096 tokens |
|
| 38 |
|
| 39 |
## Training Data
|
|
|
|
| 58 |
| LR Schedule | Cosine decay |
|
| 59 |
| Warmup Ratio | 0.05 |
|
| 60 |
| Weight Decay | 0.01 |
|
| 61 |
+
| Per-device Batch Size | 4 |
|
| 62 |
+
| Gradient Accumulation | 8 |
|
| 63 |
+
| Realized Effective Batch | ~384 (4 × 12 GPUs × 8) |
|
| 64 |
| Epochs | 3 |
|
| 65 |
+
| Mixed Precision | bf16 |
|
| 66 |
+
| Distributed Strategy | DeepSpeed ZeRO-3 + full CPU offload |
|
| 67 |
+
| Hardware | 12 × NVIDIA H100 SXM5 80GB (RunPod single multi-GPU node) |
|
| 68 |
+
| Wall Clock | ~72 hours (3 days) |
|
| 69 |
+
| Total Compute | ~864 H100-hours |
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
|
| 73 |
+
> **Note on batch size:** an earlier version of this card listed the per-device batch (4) and gradient accumulation (8) with an "effective batch 32" annotation inherited from a single-GPU experimental plan. The realized run distributed across 12 H100 GPUs under DeepSpeed ZeRO-3 scaled the effective batch by world size to approximately 384 (4 × 12 × 8). The peak learning rate of 2e-4 was tuned for the planned eff-batch 32, not for the realized 384; see the [paper §4.3 (Config drift: planned vs realized batch size)](https://doi.org/10.5281/zenodo.19802598) for full discussion.
|
| 74 |
|
| 75 |
## Evaluation
|
| 76 |
|
|
|
|
| 129 |
|
| 130 |
## Citation
|
| 131 |
|
| 132 |
+
> Bachu, R. K. (2026). *NPC Fin 32B: A Domain-Specialized Financial Reasoning Model via Multi-GPU QLoRA.* Zenodo. https://doi.org/10.5281/zenodo.19802598
|
| 133 |
+
|
| 134 |
```bibtex
|
| 135 |
+
@misc{bachu2026npcfin32b,
|
| 136 |
+
title = {NPC Fin 32B: A Domain-Specialized Financial Reasoning Model
|
| 137 |
+
via Multi-GPU QLoRA},
|
| 138 |
+
author = {Bachu, Rama Krishna},
|
| 139 |
+
year = {2026},
|
| 140 |
+
publisher = {Zenodo},
|
| 141 |
+
doi = {10.5281/zenodo.19802598},
|
| 142 |
+
url = {https://doi.org/10.5281/zenodo.19802598},
|
| 143 |
+
note = {Preprint},
|
| 144 |
}
|
| 145 |
```
|
| 146 |
|