How to use from the
Use from the
llama-cpp-python library
# !pip install llama-cpp-python

from llama_cpp import Llama

llm = Llama.from_pretrained(
	repo_id="codedrivehg/wealthwise-1.7b-GGUF",
	filename="wealthwise-1.7b-q8_0.gguf",
)
llm.create_chat_completion(
	messages = [
		{
			"role": "user",
			"content": "What is the capital of France?"
		}
	]
)

WealthWise 1.7B (GGUF)

A compact, on-device model that extracts and classifies financial transactions from SMS and email into structured JSON. Fine-tuned from Qwen3-1.7B for the WealthWise local-first personal-finance app.

๐Ÿšง Status: experimental / under active development. WealthWise's larger 14B model is the most accurate today; this 1.7B is the phone-sized variant that is catching up. On controlled benchmarks it already matches or beats the 14B; on the long tail of real-world mail it is still improving via distillation from the 14B teacher and user corrections. It is ~8ร— smaller and severalร— faster and is intended for laptops, low-power machines, and mobile.

What it does

Given a raw SMS or email message, it returns a single JSON object:

{
  "amount": 437.0, "currency": "INR", "type": "debit",
  "merchant": "Swiggy - Behrouz Biryani", "account_last4": null,
  "date": "2026-06-12", "payment_method": "UPI", "reference": null,
  "balance": null, "is_recurring": false,
  "category_l1": "Food & Dining", "category_l2": "Food Delivery"
}

category_l1 is one of: Food & Dining, Transportation, Shopping, Housing, Utilities, Entertainment, Health, Education, Travel, Investments, Financial, Income, Miscellaneous. Non-transactional messages return {"is_transaction": false}.

Files

  • wealthwise-1.7b-q8_0.gguf โ€” Q8_0 quantized weights (~1.8 GB, near-lossless).
  • Modelfile โ€” Ollama recipe (correct non-thinking Qwen3 template + system prompt).

Run it

Ollama (recommended)

# from this folder:
ollama create wealthwise-1.7b -f Modelfile
ollama run wealthwise-1.7b
# or, if published to the Ollama registry:
# ollama pull codedrivehg/wealthwise-1.7b

Download the GGUF:

hf download codedrivehg/wealthwise-1.7b-GGUF --local-dir wealthwise-1.7b

llama.cpp

llama-cli -m wealthwise-1.7b-q8_0.gguf -p "<your message>"

Important: this model is trained for non-thinking output (direct JSON). The bundled Modelfile pre-fills the empty <think></think> block Qwen3 expects โ€” use it (or replicate that template) or the model may emit garbage.

Training

  • Base: Qwen/Qwen3-1.7B (Apache-2.0).
  • Method: LoRA fine-tune (attention + MLP) on financial extraction data, then merged to 16-bit and exported to GGUF.
  • Improving via knowledge distillation from the WealthWise 14B teacher (and a larger teacher), an expanding curated merchant database, and in-app corrections.

Limitations

  • Out-of-distribution real-world emails (unusual formats, multilingual, receipts with many line items) are where it still trails the 14B.
  • Use the 14B for maximum accuracy on capable hardware.

License

Apache-2.0 (inherits the Qwen3-1.7B base license).

Downloads last month
20
GGUF
Model size
2B params
Architecture
qwen3
Hardware compatibility
Log In to add your hardware

8-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for codedrivehg/wealthwise-1.7b-GGUF

Finetuned
Qwen/Qwen3-1.7B
Quantized
(298)
this model