Downloads · 30 days
34
6% of all-time downloads
Venkat9990/finance-specialist-v7
finance-specialist-v7 is a text generation model from Venkat9990. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
A fine-tuned Llama 3.2 1B Instruct model specialized for finance conversations, trained with knowledge-preserving LoRA techniques using llm-forge.
Downloads · 30 days
34
6% of all-time downloads
All-time downloads
568
Public
Parameters
1.2B
5.8 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors2.5 GB · 75%
From the Hugging Face model README
A fine-tuned Llama 3.2 1B Instruct model specialized for finance conversations, trained with knowledge-preserving LoRA techniques using llm-forge.
| Property | Value |
|---|---|
| Base Model | unsloth/Llama-3.2-1B-Instruct |
| Parameters | 1.24B (1.7M trainable via LoRA) |
| Training Method | LoRA (r=8, alpha=16, attention-only) |
| Training Data | Josephgflowers/Finance-Instruct-500k |
| Samples Used | 5,675 (20K loaded, 72% removed by data cleaning pipeline) |
| Training Time | 6 min 52 sec on 1x NVIDIA A100 80GB |
| License | Apache 2.0 |
This model was carefully tuned to add finance conversational ability without destroying the base model's general knowledge. Previous versions (v1-v6) suffered from catastrophic forgetting. v7 fixes this with:
| Benchmark | Base | v7 | Delta | Verdict |
|---|---|---|---|---|
| MMLU (57 subjects, 5-shot) | 46.05% | 45.86% | -0.19% | Minimal |
| GSM8K (math reasoning) | 33.59% | 31.99% | -1.60% | Minimal |
| IFEval (instruction following) | 43.07% | 41.04% | -2.03% | Moderate |
| ARC Challenge | 37.88% | 37.97% | +0.09% | Preserved |
| ARC Easy | 68.81% | 68.35% | -0.46% | Minimal |
| HellaSwag | 61.59% | 60.88% | -0.71% | Minimal |
| Winogrande | 61.80% | 61.88% | +0.08% | Preserved |
| TruthfulQA MC2 | 43.37% | 42.52% | -0.85% | Minimal |
| Benchmark | Base | v7 | Delta |
|---|---|---|---|
| MMLU Business Ethics | 49.00% | 49.00% | 0.00% |
| MMLU Econometrics | 28.95% | 28.95% | 0.00% |
| MMLU Prof. Accounting | 35.11% | 35.46% | +0.35% |
| Benchmark | v6 | v7 | Recovery |
|---|---|---|---|
| GSM8K | 6.07% | 31.99% | +25.92 pts |
| IFEval | 25.32% | 41.04% | +15.72 pts |
| MMLU | 38.67% | 45.86% | +7.19 pts |
| Business Ethics | 28.00% | 49.00% | +21.00 pts |
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model = AutoModelForCausalLM.from_pretrained(
"Venkat9990/finance-specialist-v7",
torch_dtype=torch.bfloat16,
device_map="auto",
)
tokenizer = AutoTokenizer.from_pretrained("Venkat9990/finance-specialist-v7")
messages = [
{"role": "system", "content": "You are a finance specialist AI assistant."},
{"role": "user", "content": "What is a bond yield curve inversion?"},
]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, return_tensors="pt").to(model.device)
with torch.no_grad():
output = model.generate(**inputs, max_new_tokens=256, temperature=0.1, top_p=0.9)
print(tokenizer.decode(output[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))
# Download GGUF and Modelfile from this repo, then:
ollama create finance-specialist-v7 -f Modelfile
ollama run finance-specialist-v7
model:
name: unsloth/Llama-3.2-1B-Instruct
max_seq_length: 2048
torch_dtype: bf16
lora:
r: 8
alpha: 16
target_modules: [q_proj, v_proj, k_proj, o_proj]
use_rslora: false
training:
mode: lora
learning_rate: 1.0e-5
num_epochs: 1
per_device_train_batch_size: 2
gradient_accumulation_steps: 8
gradient_checkpointing: true
assistant_only_loss: true
completion_only_loss: true
neftune_noise_alpha: null
label_smoothing_factor: 0.0
data:
train_path: Josephgflowers/Finance-Instruct-500k
format: sharegpt
max_samples: 20000
cleaning:
enabled: true
quality_preset: permissive
dedup_enabled: true
llm-forge — Config-driven, YAML-first open-source LLM training platform.
Naga Venkata Sai Chennu (@Venkat9990) — George Mason University