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="abyrne55/nuextract-1.5-tiny-mealie-ingredient-parser",
	filename="nuextract-1.5-tiny-finetuned-q8_0.gguf",
)
llm.create_chat_completion(
	messages = [
		{
			"role": "user",
			"content": "What is the capital of France?"
		}
	]
)

NuExtract-1.5-tiny Fine-tuned for Mealie Ingredient Parsing

LoRA fine-tuned version of numind/NuExtract-1.5-tiny (Qwen2.5-0.5B) for structured ingredient extraction in mealie-llm-server.

Usage

Set MODEL_INGREDIENT_EXTRACTOR to the local GGUF path:

MODEL_INGREDIENT_EXTRACTOR=models/nuextract-1.5-tiny-finetuned-q8_0.gguf

The model expects the NuExtract 1.5 template format:

<|input|>
### Template:
{
    "quantity": "",
    "unit": "",
    "food": "",
    "note": ""
}
### Text:
1 cup arborio rice

<|output|>

Training

  • Method: LoRA (rank 16, alpha 32) targeting q/k/v/o projections
  • Framework: HuggingFace trl.SFTTrainer + peft
  • Dataset: 162 curated ingredient examples from tests/integration/ingredients.jsonl, shuffled (seed=42)
  • Epochs: 10
  • Hardware: Google Colab T4 GPU (~5 minutes)
  • Quantization: Q8_0 via llama.cpp

Results

Test set Passed Failed Total Rate
Training data (162 JSONL entries) 150 8 (+2 xfail, +2 xpass) 162 93%
Random novel ingredients (100) 97 3 100 97%

Failures on the training data are edge cases (uncommon Unicode fractions, complex notes). All 3 random-test failures were food resolver mismatches โ€” the LLM extracted correctly but the embedding lookup couldn't find the food in the database.

Downloads last month
399
GGUF
Model size
0.5B params
Architecture
qwen2
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 abyrne55/nuextract-1.5-tiny-mealie-ingredient-parser

Adapter
(2)
this model