Downloads · 30 days
0
manuelaschrittwieser/llama-3-invoice-extractor
llama-3-invoice-extractor is a machine learning model from manuelaschrittwieser. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
- Developed by: manuelaschrittwieser - License: apache-2.0 - Finetuned from model : unsloth/llama-3-8b-bnb-4bit
Downloads · 30 days
0
Access
Public
Updated Jan 29, 2026
Repo size
71.8 MB
Likes
1
Public
Click a slice to open those files.
.safetensors54.6 MB · 76%
From the Hugging Face model README
This llama model was trained 2x faster with Unsloth
This model is a fine-tuned version of Meta's Llama-3-8B, specifically optimized for Structured Data Extraction. It excels at taking messy, unstructured text descriptions of financial transactions (invoices, receipts, and purchase orders) and transforming them into valid, machine-readable JSON objects.
Standard LLMs often struggle to output only valid JSON without conversational "noise." This model was trained to identify specific financial entities and wrap them in a consistent schema, making it ideal for:
For best results, use the following instruction-based prompt format:
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Extract invoice details into JSON.
### Input:
[PASTE MESSY TEXT HERE]
### Response:
You can load this model using the unsloth library for 2x faster inference:
from unsloth import FastLanguageModel
import torch
model, tokenizer = FastLanguageModel.from_pretrained(
model_name = "manuelaschrittwieser/llama-3-invoice-extractor",
max_seq_length = 2048,
load_in_4bit = True,
)
FastLanguageModel.for_inference(model)
# Example Inference
inputs = tokenizer([
"### Instruction:\nExtract invoice details into JSON.\n\n### Input:\nBought 3 laptops for $1500 each at Best Buy on Oct 12.\n\n### Response:\n"
], return_tensors = "pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens = 128)
print(tokenizer.decode(outputs[0]))
The model was trained on a curated dataset of synthetic and real-world receipt descriptions, including:
Created as part of an LLM Fine-Tuning project using Unsloth and Hugging Face TRL.