TL;DR: Monolithic APIs break down on cost, latency, and South Asian code-switching when production software needs strict JSON, SQLite BI queries,
<tool_call>payloads, and zero-placeholder compliance documents across English, Bengali script (বাংলা), and Romanized Banglish. At Softsasi NextGen Research (Softsasi), we fine-tuned and open-sourced six purpose-sized models (0.8Bto24B, Apache-2.0) across Hugging Face, Ollama, Kaggle, and GitHub, backed by a 430-case evaluation suite (softsasi-evals) and a cited Zenodo technical report.
1. The Production Problem: Banglish Code-Switching + Strict Schemas
When we build and deploy business software in Bangladesh—including Softsasi Hospital Management System (running live in production at Eidgah Model Hospital), Softsasi ERP, Softsasi Store, and VerdictAI—users rarely type textbook English or clean Bengali script.
Real queries look like this:
"doctor clinic booking bangla app lagbe""current kokhon jabe load shedding schedule dekhbo""Bhai 2ta chicken biryani cart e add koro"
Stock small models fail these workloads in two predictable ways:
- Unadapted Hybrid Reasoning Loops: Default Qwen3 / Qwen3.5 models emit
<think>...</think>blocks or verbose nested JSON objects unless constrained (think=False/enable_thinking=False), blowing latency budgets and breaking downstream parsers. - External Translation Tax: Calling an external API to translate Banglish into English before querying adds unacceptable round-trip latency and leaks operational data.
2. Why Six Purpose-Sized Models Instead of One?
Running a 24B dense model to expand a three-word Banglish search query wastes memory bandwidth; asking a 0.8B model to synthesize zero-placeholder Privacy Policy and Terms of Service documents degrades legal prose. Instead, we matched parameter scale strictly to output complexity:
| Model | Base Architecture | Q4_K_M Size | Software Surface & Task | Observed Training / Eval Loss |
|---|---|---|---|---|
| Store-1-Search | Qwen3.5-0.8B (873M) | 547 MB | Softsasi Store aiSearch, query expansion, reranking | 0.4747 -> 0.0783 train; ~0.1889 eval (ckpt-40) |
| Neural-1-Verify | Qwen2.5-1.5B | 986 MB | VerdictAI FEVER 3-class claim verification | FEVER v1.0 & v2.0 (429K rows) |
| Insight-1-ERP | Qwen3-4B | 2.5 GB | Softsasi ERP & HMS EN/BN Text-to-SQL & BI | 2.0226 -> 0.0199 train; 0.04627 eval (Step 60) |
| Commerce-1-Order | Qwen3-8B | 5.0 GB | Trilingual EN/BN/Banglish <tool_call> cart & order engine | 1.9767 -> 0.0538 train; 0.1258 eval (Step 30) |
| Kanban-1-Planner | Qwen3-14B | 9.0 GB | Kanban Export v1 JSON boards (#6b7280, #3b82f6, #10b981) | 0.3934 -> 0.031x train; 0.17946 eval (ckpt-30) |
| Store-1-Publisher | Mistral-Small-24B | 14.3 GB | ASO listing & zero-placeholder legal document generation | 6.8557 -> 3.0921 train; 3.1287 eval (Step 36) |
3. Zero-PII Corpus Construction (430 Held-Out Cases)
Production Firebase and SaaS databases contain user emails, phone numbers, reviewer usernames, avatars, and unpublished drafts. Every dataset generator applies deterministic pre-serialization scrubbing to exclude /users, /reviews, contact fields, and draft records while holding out unseen queries and unseen catalog items in softsasi-evals:
- Store-1-Search-Dataset (
900train /90eval): 50%aiSearchJSON ID arrays, 30%{categories, subcategories, keywords}expansion, 20% batch reranking, capped at6,276chars (~1,569est. tokens) to fit2,048context cleanly. - Neural-1-Verify (
429KFEVER /50EN-BN probes):SUPPORTS,REFUTES,NOT ENOUGH INFO. - Insight-1-ERP-Analytics-Dataset (
840train /50eval): Bilingual English & Bangla BI queries paired with SQLite-executableSELECTqueries. - Commerce-1-Order-AI-Dataset (
1,900convs /100eval): Backed by101menu items and3,386schema-checked<tool_call>payloads. - Kanban-1-Planner-Dataset (
1,080boards /80eval): Strict column hex palettes andred/orange/greenpriority enums across4,101tasks. - Store-1-Publisher-Dataset (
600train /60eval): Zero-placeholder validator blocking unresolved tokens like[Company Name].
4. Systems Engineering Lessons on Dual Tesla T4 GPUs
All fine-tunes ran on 2× NVIDIA Tesla T4 GPUs (2× 15 GiB VRAM) using Unsloth LoRA/QLoRA (DDP and FSDP2 sharding) with assistant-completion-only loss:
- The 248K Vocabulary Logit Trap (
Qwen3.5-0.8B): WithQwen3.5-0.8B's248,320-token vocabulary at2,048context,micro_batch_size=4spiked cross-entropy logits + Gated DeltaNet recurrent states to14.51 / 14.56 GiBVRAM and OOM'd at Step 0. Droppingmicro_batch_size=1withgradient_accumulation_steps=8cut peak VRAM cleanly to6.75 GiB. - Always Suppress
<think>at Inference Time: When serving Qwen3/Qwen3.5 variants behind strict JSON SLAs, pass"think": Falseto Ollama (/api/chat) orenable_thinking=Falsein Transformers Jinja templates:
import requests resp = requests.post( "http://localhost:11434/api/chat", json={ "model": "Softsasi/store-1-search", "messages": [ {"role": "user", "content": "doctor clinic booking bangla app lagbe"} ], "think": False, "stream": False, "options": {"temperature": 0.0, "num_predict": 128}, }, ).json() print(resp["message"]["content"]) 5. Verifiable Benchmarks (softsasi-evals)
On a live 50-case CPU benchmark (eval_runner.py --task search --limit 50 --num-predict 128, think=False, temperature=0.0):
| Model | Cases | Valid JSON Schema | Task Acc | Speed | Avg Tokens | Avg Wall Latency | Loaded RAM |
|---|---|---|---|---|---|---|---|
softsasi/store-1-search | 50 | 100.0% (50/50) | 86.0% (43/50) | 4.4 tok/s | 18.4 | 15.54 s | 626.8 MB |
qwen3.5:0.8b (Stock, 128-tok cap) | 50 | 0.0% (0/50) | 0.0% (0/50) | 1.2 tok/s | 72.5 | 79.73 s | 520.2 MB |
Why stock qwen3.5:0.8b hit 0.0% under the 128-token SLA: Even with think=False, the stock model invented verbose nested object arrays (e.g., {"categories": [{"type": "website", ...) and exhausted the 128-token budget before closing JSON braces, whereas softsasi/store-1-search emitted exact compact {categories, subcategories, keywords} schemas in ~18.4 tokens (5.1× lower CPU latency). In eval_runner.py, we also implemented --mode all (raw default vs. fair 512-token explicit-schema baseline vs. softsasi) so full 6-model GPU runs compare fairly across all tiers without truncation bias.
Run Locally with One Command
ollama run Softsasi/store-1-search ollama run Softsasi/insight-1-erp ollama run Softsasi/kanban-1-planner Links & Citation
- Company & Research Lab: www.softsasi.com · research.softsasi.com
- Live HMS / ERP: hms.softsasi.com · erp.softsasi.com
- GitHub Suite & Evals: github.com/Softsasi/-Softsasi-AI-Suite · github.com/Softsasi/softsasi-evals
- Model Registries: Hugging Face · Ollama · Kaggle
- Zenodo Technical Report (DOI): 10.5281/zenodo.24757015
- Show HN Discussion: news.ycombinator.com/item?id=50736455