인셔셔RSS 관심 있는 블로그, 뉴스, 기술 정보를 효율적으로 추적하고 읽으세요
원문 읽기 InertiaRSS에서 열기

추천 피드

freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
S
SegmentFault 最新的问题
N
Netflix TechBlog - Medium
Vercel News
Vercel News
F
Fortinet All Blogs
量子位
博客园 - Franky
酷 壳 – CoolShell
酷 壳 – CoolShell
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
MongoDB | Blog
MongoDB | Blog
Y
Y Combinator Blog
GbyAI
GbyAI
博客园 - 三生石上(FineUI控件)
Apple Machine Learning Research
Apple Machine Learning Research
爱范儿
爱范儿
月光博客
月光博客
Recent Announcements
Recent Announcements
人人都是产品经理
人人都是产品经理
Hugging Face - Blog
Hugging Face - Blog
D
DataBreaches.Net
H
Help Net Security
阮一峰的网络日志
阮一峰的网络日志
D
Docker
WordPress大学
WordPress大学

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
"Gemma 4 Analyzed My Bank Statements – Apparently I 'Have...
Abel Mhlanga · 2026-05-22 · via DEV Community
Cover image for "Gemma 4 Analyzed My Bank Statements – Apparently I 'Have a Problem' with Coffee and Late-Night Apps"

Abel Mhlanga

Gemma 4 Challenge: Build With Gemma 4 Submission

This is a submission for the Gemma 4 Challenge: Build with Gemma 4

What I Built

Bank statement Analyzer — upload 3–6 months of statements, get a breakdown of spending patterns, subscriptions you forgot about, anomalies, and concrete suggestions to cut your costs.

Demo

Code

GitHub logo AbelCodeCanvas / my-bank-app

Bank statement Analyzer — upload 3–6 months of statements, get a breakdown of spending patterns, subscriptions you forgot about, anomalies, and concrete suggestions to cut your costs.

markdown

💰 Bank Statement Analyser

Upload 3–6 months of bank statements and get a clear breakdown of:

  • 📊 Spending patterns – where your money really goes
  • 🔁 Subscriptions you forgot about – recurring charges you might not need
  • ⚠️ Anomalies – unusual or unexpected transactions
  • ✂️ Concrete suggestions – actionable advice to cut costs

Powered by Gemma 4 26B A4B instruction‑tuned model via Hugging Face.


📋 Prerequisites

Before you begin, make sure your local machine has:

  • Python 3.9 or higher (recommended: 3.10)
  • Git – to clone the repository
  • A Hugging Face account (free) with a User Access Token Create one here
  • At least 16 GB RAM (32 GB recommended)
  • GPU with 12+ GB VRAM (optional but strongly recommended for fast inference) – if no GPU, the app will fall back to CPU (very slow for 26B model)

Note: The 26B A4B model is large but uses Mixture‑of‑Experts to reduce compute…

How I Used Gemma 4

For my Bank Statement Analyser, I used Gemma 4 26B A4B (the instruction-tuned variant) on Hugging Face. While not exactly one of the standard sizes (E2B, E4B, or 31B Dense), this 26B parameter model strikes an ideal balance for the task:

Long context handling – Bank statements over 3–6 months contain hundreds of transactions. The model’s large context window lets me feed entire statements without chunking, preserving temporal patterns.

Structured extraction – Gemma 4’s instruction-tuning excels at parsing semi-structured data (PDF/CSV statements) and outputting consistent JSON breakdowns of spending, subscriptions, and anomalies.

Reasoning for suggestions – The 26B size provides enough reasoning capacity to identify cost-cutting opportunities (e.g., duplicate subscriptions, high-fee accounts, irregular charges) without the latency or cost of a dense 31B model.

A4B efficiency – The Mixture-of-Experts (A4B) architecture reduces compute per token, making it feasible to run locally or on a free Hugging Face T4 GPU.

In short, Gemma 4 powers the entire pipeline: statement parsing → spending categorization → anomaly detection → actionable recommendations.