Parchi reads the purchase note a grocery (kirana) shopkeeper types to a supplier, in
Hinglish, English or Telugu
(script or romanised), and returns the order as JSON: vendor, plus item, quantity, unit and rupee rate for each line.
It is Qwen2.5-0.5B-Instruct fine-tuned with LoRA (r=16) on 2,600 generated notes over a 64-item catalogue, trained on a laptop CPU, then merged. Scores are
exact match on notes written by hand
that the model never saw: every field of every line has to be right. Hinglish set: 34 notes; Telugu set: 36 notes.
This repo is the
full model
(16-bit safetensors) for Python / transformers. For phones, laptops, llama.cpp, Ollama or LM Studio use the quantized builds in
ajayk0608/parchi-v2-GGUF
.
Which build should I use?
File
Build
Size
Best for
Hinglish exact
Telugu exact
this repo
Full model (safetensors)
953 MB
Developers in Python, servers, and anyone fine-tuning further
Older or budget Android phones (3 to 4 GB RAM), Raspberry Pi
68%
42%
⭐ = the default for a phone app.
The hand-written sets are small (34 and 36 notes), so one note moves a score by about 3 points. Builds within a few points of each other perform the same, and a quantized build scoring above the full model is noise, not an improvement.
Prompt
Always send this system prompt (the model was trained with it), then the note as the user message. Use greedy decoding (temperature 0).
You read a kirana (grocery) shop purchase note, often in Hinglish, and return the order as JSON only. Schema: {"vendor": string or null, "lines": [{"item": string, "qty": number, "unit": string, "rate": number or null}]}. item is the canonical English name; unit is one of kg, g, l, ml, pcs, dozen, packet, bottle, bunch, box; rate is the rupee price per unit if stated, else null; vendor is who the note is addressed to, else null.
from transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("ajayk0608/parchi-v2")
model = AutoModelForCausalLM.from_pretrained("ajayk0608/parchi-v2")
SYSTEM = "..."# the system prompt above
msgs = [{"role": "system", "content": SYSTEM}, {"role": "user", "content": "bhai 5 kg chini aur 2 dzn ande bhej do, chini 42 ka"}]
enc = tok.apply_chat_template(msgs, add_generation_prompt=True, return_tensors="pt", return_dict=True)
out = model.generate(**enc, max_new_tokens=256, do_sample=False)
print(tok.decode(out[0, enc["input_ids"].shape[1]:], skip_special_tokens=True))
Limits
Knows the 64 catalogue items and their spellings; an unknown item is guessed onto a known one.
One order per note, up to about six lines; rates are per unit as written.
Trained on generated notes: real notes can surface patterns it has not seen (common misses: the next line's number taken as a rate, near-neighbour Telugu spellings, brand-only items).
Runs of ajayk0608 parchi-v2 on huggingface.co
643
Total runs
6
24-hour runs
14
3-day runs
41
7-day runs
643
30-day runs
More Information About parchi-v2 huggingface.co Model
parchi-v2 huggingface.co is an AI model on huggingface.co that provides parchi-v2's model effect (), which can be used instantly with this ajayk0608 parchi-v2 model. huggingface.co supports a free trial of the parchi-v2 model, and also provides paid use of the parchi-v2. Support call parchi-v2 model through api, including Node.js, Python, http.
parchi-v2 huggingface.co is an online trial and call api platform, which integrates parchi-v2's modeling effects, including api services, and provides a free online trial of parchi-v2, you can try parchi-v2 online for free by clicking the link below.
ajayk0608 parchi-v2 online free url in huggingface.co:
parchi-v2 is an open source model from GitHub that offers a free installation service, and any user can find parchi-v2 on GitHub to install. At the same time, huggingface.co provides the effect of parchi-v2 install, users can directly use parchi-v2 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.