Downloads · 30 days
57
22% of all-time downloads
subbuzdesk/gemma4-financial-sentiment
gemma4-financial-sentiment is a text generation model from subbuzdesk. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
Downloads · 30 days
57
22% of all-time downloads
All-time downloads
263
Public
Repo size
4.5 GB
Likes
1
Public
Click a slice to open those files.
.gguf3.4 GB · 100%
From the Hugging Face model README
subbuzdesk/gemma4-financial-sentiment is a state-of-the-art Financial Small Language Model (SLM) developed by Ambiakshi Financial Technologies. It is fine-tuned from Google Gemma 4 (google/gemma-4-e2b-it) in native 16-bit precision using PEFT (LoRA) on expert-annotated financial disclosures, SEC 10-K filings, and corporate earnings calls.
sentiment (BULLISH/BEARISH/NEUTRAL), confidence (0.0–1.0), primary_driver, and stock_signal.| Model | Context Window | Accuracy | Macro F1 |
|---|---|---|---|
| Traditional FinBERT | 512 tokens | 86.2% | 84.1% |
| GPT-4 (Zero-Shot) | 128k tokens | 81.5% | 80.8% |
| BloombergGPT (50B) | 2,048 tokens | 88.3% | 86.9% |
| subbuzdesk/gemma4-financial-sentiment | 8192 tokens | 93.4% | 92.8% |
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
base_model_id = "google/gemma-4-e2b-it"
adapter_id = "subbuzdesk/gemma4-financial-sentiment"
tokenizer = AutoTokenizer.from_pretrained(base_model_id)
model = AutoModelForCausalLM.from_pretrained(base_model_id, torch_dtype=torch.float16, device_map="auto")
model = PeftModel.from_pretrained(model, adapter_id)
prompt = [
{"role": "system", "content": "You are Ambiakshi AI, a financial sentiment and stock analysis SLM."},
{"role": "user", "content": "Operating profit rose to EUR 14.5 mn from EUR 10.2 mn on expanding SaaS subscriptions."}
]
formatted_input = tokenizer.apply_chat_template(prompt, return_tensors="pt").to("cuda")
outputs = model.generate(formatted_input, max_new_tokens=256, temperature=0.2)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Released under the Apache 2.0 permissive license for commercial and private enterprise use.