Downloads · 30 days
219
24% of all-time downloads
Akhenaton/sft_banking_model
sft_banking_model is a text generation model from Akhenaton. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/
Downloads · 30 days
219
24% of all-time downloads
All-time downloads
904
Public
Parameters
1.2B
8 GB on disk
Likes
0
Public
Click a slice to open those files.
.gguf5.5 GB · 69%
How the weights are stored.
F16973M · 79%
From the Hugging Face model README
A specialized banking and financial AI assistant fine-tuned on the T2-RAGBench dataset for conversational RAG tasks. This model excels at analyzing financial documents, answering banking-related questions, and providing detailed insights from financial reports.
LoRA Parameters:
r: 16
lora_alpha: 16
lora_dropout: 0
target_modules: [q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj]
Training Setup:
max_seq_length: 2048
per_device_train_batch_size: 2
gradient_accumulation_steps: 4
max_steps: 60
learning_rate: 2e-4
optimizer: adamw_8bit
lr_scheduler_type: cosine
weight_decay: 0.01
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
You are a specialized banking AI assistant. Analyze financial documents and provide accurate, detailed answers based on the given context. Focus on numerical accuracy and financial terminology.<|eot_id|><|start_header_id|>user<|end_header_id|>
Financial Document Context:
{context}
Question: {question}<|eot_id|><|start_header_id|>assistant<|end_header_id|>
{response}<|eot_id|>
from transformers import AutoModelForCausalLM, AutoTokenizer
# Load model and tokenizer
model = AutoModelForCausalLM.from_pretrained("Akhenaton/sft_banking_model")
tokenizer = AutoTokenizer.from_pretrained("Akhenaton/sft_banking_model")
# Prepare conversation
messages = [
{"role": "user", "content": "Explain the key financial metrics in quarterly earnings."}
]
# Generate response
inputs = tokenizer.apply_chat_template(messages, return_tensors="pt", add_generation_prompt=True)
outputs = model.generate(inputs, max_new_tokens=128, temperature=1.5, min_p=0.1)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
from unsloth import FastLanguageModel
model, tokenizer = FastLanguageModel.from_pretrained(
"Akhenaton/sft_banking_model",
max_seq_length=2048,
dtype=None,
load_in_4bit=True
)
FastLanguageModel.for_inference(model) # Enable fast inference
This model is available in multiple quantization formats:
If you use this model in your research or applications, please consider citing:
@misc{akhenaton2025sft_banking_model,
author = {Akhenaton},
title = {Banking AI Assistant - Llama 3.2 1B Fine-tuned},
year = {2025},
url = {https://huggingface.co/Akhenaton/sft_banking_model},
note = {Fine-tuned with Unsloth on T2-RAGBench dataset}
}
This model was trained 2x faster with Unsloth and Hugging Face's TRL library.