Downloads · 30 days
0
seifelzeiny/finetuned-SmolLM2-1.7B-finmarba
finetuned-SmolLM2-1.7B-finmarba is a machine learning model from seifelzeiny. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as mit.
This model is a parameter-efficient, LoRA-finetuned version of SmolLM2-1.7B, specialized for financial news sentiment classification (distinguishing "Negative" vs. "Neutral" headlines).
Downloads · 30 days
0
Access
Public
Updated Nov 21, 2025
Repo size
831 MB
Likes
0
Public
Click a slice to open those files.
.safetensors831 MB · 99%
From the Hugging Face model README
This model is a parameter-efficient, LoRA-finetuned version of SmolLM2-1.7B, specialized for financial news sentiment classification (distinguishing "Negative" vs. "Neutral" headlines).
SmolLM2-1.7B fine-tuned to answer financial news headlines sentiment Q&A, using the FinMarBa dataset.
This model predicts sentiment (Negative/Neutral) from financial headlines in English via causal language modeling with LoRA.
Users should verify outputs before acting, especially in critical or high-stakes analysis settings.
Apple profits drop unexpectedly in Q3.from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
model_id = "seifelzeiny/finetuned-SmolLM2-1.7B-finmarba"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)
prompt = "### Question: What is the sentiment of this news?\nApple profits fall in Q3.\n### Answer:"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
with torch.no_grad():
outputs = model.generate(**inputs, max_new_tokens=32)
print(tokenizer.decode(outputs, skip_special_tokens=True))
Tesla stock surges after record vehicle deliveries in Q2.
Global markets tumble amid renewed recession fears.
Major auto manufacturer announces massive recall after defects found.
Oil prices remain stable despite geopolitical tensions.
Amazon to invest $10 billion in new US warehouses.
### Question: What is the sentiment of this news?\n{headline}\n### Answer: {label}Model achieves near-equal training and validation loss, indicating good generalization without overfitting (see training logs).
Manual validation shows plausible sentiment answers (“Negative”, “Neutral”) for held-out headlines.
The model can reliably classify headline sentiment as Negative or Neutral.
@misc{seifelzeiny2025finmarba_smollm2, author = {Seifeldin Elzeiny}, title = {Finetuned SmolLM2-1.7B for Financial News Sentiment Q&A (FinMarBa)}, year = {2025}, url = {https://huggingface.co/seifelzeiny/finetuned-SmolLM2-1.7B-finmarba}, note = {Financial NLP, LoRA, FinMarBa, SmolLM2} }
Contact author for questions or collaboration. [[email protected]]