--- base_model: - unsloth/Qwen3-4B-Instruct-2507-unsloth-bnb-4bit datasets: - Softsasi/Insight-1-ERP-Analytics-Dataset library_name: peft pipeline_tag: text-generation license: apache-2.0 language: - en - bn tags: - text-generation-inference - transformers - unsloth - qwen3 - trl - qlora - erp - business-analytics - finance - text-to-sql - structured-output - bengali - conversational --- # Insight-1-ERP-Analytics (4B LoRA Adapter) **Insight-1-ERP-Analytics** (`Softsasi/Insight-1-ERP-Analytics`) is an enterprise **4B-parameter AI Business Analytics & ERP Intelligence** LoRA adapter fine-tuned by **[Softsasi](https://huggingface.co/Softsasi)** on [`unsloth/Qwen3-4B-Instruct-2507-unsloth-bnb-4bit`](https://huggingface.co/unsloth/Qwen3-4B-Instruct-2507-unsloth-bnb-4bit). Operating in dedicated **non-thinking instruct mode** for fast ERP API responses, it produces executive KPI reports, financial anomaly forensics, Text-to-SQL queries, and strict JSON BI payloads in **English** and **Bangla (`bn`)**. > **Live ZeroGPU Demo:** [`Softsasi/Insight-1-ERP-Analytics-Demo`](https://huggingface.co/spaces/Softsasi/Insight-1-ERP-Analytics-Demo) > **GGUF (`Q4_K_M`, ~2.5 GB) for Ollama / llama.cpp:** [`Softsasi/Insight-1-ERP-Analytics-GGUF`](https://huggingface.co/Softsasi/Insight-1-ERP-Analytics-GGUF) > **Training Dataset (`840` rows):** [`Softsasi/Insight-1-ERP-Analytics-Dataset`](https://huggingface.co/datasets/Softsasi/Insight-1-ERP-Analytics-Dataset) --- ## Key Capabilities 1. **Executive Strategic Reports (English & Bangla)** — 5-part briefings (*Executive Summary, Critical Alerts, Strategic Opportunities, Risk Mitigation, 30-60-90 Day Plan*) covering Cash Runway, Payables Coverage, AR Aging/DSO, Cash Flow Jitter, Benford's Law Forensics, RFM Segments, Inventory Stockout Risk, and Employee Flight Risk. 2. **Interactive CFO / Analyst Q&A** — Quantitative working-capital diagnostics, 30-day AR collection modeling, and 14-day cash survival triage. 3. **ERP Text-to-SQL & Prisma Analytics** — Multi-tenant-safe MySQL (`created_by`) and PostgreSQL/Prisma analytical queries. 4. **Structured JSON BI Payloads** — Strict JSON health scorecards, smart expense categorization & round-sum audit flags, and RFM scoring. 5. **Unit Economics Math** — Cash Conversion Cycle (`DIO + DSO - DPO`), break-even analysis, `LTV:CAC`, Reorder Point / EOQ, and variance decomposition. --- ## Observed Performance & Training Telemetry | Metric / Parameter | Observed Value | | :--- | :--- | | **Base Model** | `unsloth/Qwen3-4B-Instruct-2507-unsloth-bnb-4bit` (`4.0B`) | | **Method** | QLoRA (`r=16`, `alpha=32`, `dropout=0.05`, `all-linear`) | | **Dataset** | `800` train + `40` held-out validation examples (`ChatML`, EN & BN) | | **Schedule** | `90` steps (`Epoch 2.14`, `1,420,705` tokens), `40m 17s` on Tesla T4 (`10.25 GiB` peak VRAM) | | **Training Loss** | `2.0226` (Step 1) → `0.3620` (Step 27) → `0.0328` (Step 71) → **`0.0199`** (Step 90) | | **Validation Loss** | `0.23164` (Step 30) → **`0.04627`** (Step 60) | | **GGUF Throughput** | **`59.8 tok/s`** (`Q4_K_M` live inference on Tesla T4 in Unsloth Studio) | ### Verified ZeroGPU Output (`Structured JSON BI`) ```json {"vendor": "Unknown Cash Vendor", "description": "Cash Misc Round Advance #99", "amount": 5000.0, "predicted_category": "Unclassified / Miscellaneous", "tax_deductible": false, "audit_status": "flagged", "audit_note": "Review: Round-sum cash advance without vendor/expense details"} ``` --- ## Quick Start (Python / Transformers + PEFT) ```python from transformers import AutoModelForCausalLM, AutoTokenizer from peft import PeftModel import torch base_id = "Qwen/Qwen3-4B-Instruct-2507" adapter_id = "Softsasi/Insight-1-ERP-Analytics" tokenizer = AutoTokenizer.from_pretrained(adapter_id) base_model = AutoModelForCausalLM.from_pretrained(base_id, dtype=torch.bfloat16, device_map="auto") model = PeftModel.from_pretrained(base_model, adapter_id) ``` --- ## Softsasi Enterprise Model Suite | Tier | Model Name | Size | Focus | Repositories | | :--- | :--- | :---: | :--- | :--- | | **Verify** | **Neural-1-Verify** | 1.5B | Fact-checking & claim verification | [`Softsasi/Neural-1-Verify`](https://huggingface.co/Softsasi/Neural-1-Verify) | | **Insight** | **Insight-1-ERP-Analytics** | 4B | ERP BI, Benford forensics & Text-to-SQL | [`LoRA`](https://huggingface.co/Softsasi/Insight-1-ERP-Analytics) · [`GGUF`](https://huggingface.co/Softsasi/Insight-1-ERP-Analytics-GGUF) · [`Demo`](https://huggingface.co/spaces/Softsasi/Insight-1-ERP-Analytics-Demo) | | **Commerce** | **Commerce-1-Order-AI** | 8B | Autonomous restaurant & e-commerce ordering | [`LoRA`](https://huggingface.co/Softsasi/Commerce-1-Order-AI) · [`GGUF`](https://huggingface.co/Softsasi/Commerce-1-Order-AI-GGUF) · [`Demo`](https://huggingface.co/spaces/Softsasi/Commerce-1-Order-AI-Demo) | - **Developed by:** [Softsasi](https://huggingface.co/Softsasi) · **License:** Apache-2.0