Downloads · 30 days
66
4% of all-time downloads
TheTokenFactory/gemma-4-E2B-sec-extraction-GGUF
gemma-4-E2B-sec-extraction-GGUF is a text generation model from TheTokenFactory. Use it when you need the model to write or continue text. It is set up for gguf. The card lists the license as cc-by-4.0.
DEPRECATED — Please use gemma-4-E2B-sec-extraction-GGUF-v2 instead. v2 was trained on a combined instruction + corrective dataset (3,957 examples vs. 2,726) and shows measurably stronger extraction quality, including…
Downloads · 30 days
66
4% of all-time downloads
All-time downloads
1.8K
Public
Repo size
4.4 GB
Likes
1
Public
Click a slice to open those files.
.gguf4.4 GB · 100%
From the Hugging Face model README
DEPRECATED — Please use gemma-4-E2B-sec-extraction-GGUF-v2 instead.
v2 was trained on a combined instruction + corrective dataset (3,957 examples vs. 2,726) and shows measurably stronger extraction quality, including a 2 percentage point reduction in hallucination rate versus the base Gemma 4 E2B model (10.7% vs. 12.7%). v2 also improves symbol compliance (+0.9%), reduces bare number errors (-0.8%), and eliminates year-as-value hallucinations entirely.
This v1 model remains available for reproducibility but is no longer recommended for production use.
A fine-tuned Gemma 4 E2B model specialized for extracting structured financial data from SEC Exhibit 10 material contracts. Quantized to Q4_K_M GGUF for efficient local inference.
Given raw text from an SEC filing (employment agreements, credit facilities, merger agreements, etc.), this model extracts structured JSON containing:
| Metric | v1 | v2 | Delta |
|---|---|---|---|
| Hallucination phrase rate | — | 10.7% (vs 12.7% base) | -2.0pp |
| Symbol compliance | — | 84.3% (vs 83.4% base) | +0.9pp |
| Bare number rate | — | 8.8% (vs 9.6% base) | -0.8pp |
| Year-as-value errors | — | 0 (vs 1 base) | Eliminated |
| Training examples | 2,726 | 3,957 | +45% |
| Training signal | Positive only | Positive + corrective + hard negatives | Richer |
v2 is a strict upgrade — same base model, same hardware requirements, better extraction quality across all measured dimensions.
Upgrade: TheTokenFactory/gemma-4-E2B-sec-extraction-GGUF-v2
gemma-4-E2B-it.Q4_K_M.gguf (3.4 GB)http://localhost:1234/v1from openai import OpenAI
client = OpenAI(base_url="http://localhost:1234/v1", api_key="lm-studio")
response = client.chat.completions.create(
model="gemma",
temperature=0.1,
messages=[
{"role": "system", "content": "You are a financial analyst AI. Extract ALL monetary dollar amounts and financial percentages. Output strictly as JSON."},
{"role": "user", "content": "<contract text here>"},
],
)
print(response.choices[0].message.content)
| Parameter | Value |
|---|---|
| Base model | unsloth/gemma-4-E2B-it |
| Method | QLoRA (4-bit) via Unsloth |
| LoRA rank | 8 |
| LoRA alpha | 8 |
| Epochs | 3 |
| Learning rate | 2e-4 |
| Max sequence length | 2,048 tokens |
| Training examples | 2,726 (positive only) |
| Quantization | Q4_K_M |
| Hardware | Google Colab T4 (16 GB VRAM) |
salary bonus severance retirement_benefit equity_grant credit_facility loan_amount interest_rate fee threshold purchase_price compensation other
leverage_ratio interest_coverage debt_service net_worth liquidity fixed_charge other
| Setup | VRAM | Notes |
|---|---|---|
| RTX 4050 / 4060 (6 GB) | 3.4 GB model + KV cache | Full GPU offload, 4096 context |
| RTX 3060 / 4070 (8+ GB) | Comfortable headroom | |
| CPU-only | ~4 GB RAM | Slower, but works |
CC-BY-4.0. SEC filings are public domain; this model's value is in the fine-tuning for structured extraction.
Trained 2x faster with Unsloth