Softsasi-ERP-Analytics (LoRA Adapter)

Softsasi-ERP-Analytics is a domain-adapted 4B-parameter AI Business Analytics & ERP Intelligence LoRA adapter fine-tuned by Softsasi on top of unsloth/Qwen3-4B-Instruct-2507-unsloth-bnb-4bit.

Built specifically for modern ERP workflows (accounting, CRM, inventory, projects, and HR), it runs in non-thinking instruct mode for fast, deterministic, API-ready analytical reports, chat diagnostics, SQL generation, and structured JSON KPI payloads in English and Bangla.

Live Interactive Demo: Softsasi/Softsasi-ERP-Analytics-Demo
Ready-to-run GGUF (Ollama / llama.cpp): Softsasi/Softsasi-ERP-Analytics-GGUF
Training Dataset: Softsasi/Softsasi-ERP-Business-Analytics


Key Capabilities

  1. Executive Strategic Reports (English & Bangla) Generates 5-part executive briefings (Executive Summary, Critical Alerts, Strategic Opportunities, Risk Mitigation, 30-60-90 Day Plan) grounded in live ERP metrics: revenue, net profit, cash runway, payables coverage gaps, AR aging/DSO, cash-flow volatility (jitter), Benford's Law forensic anomalies, RFM customer segments, stockout forecasts, and talent retention risk.
  2. Interactive ERP Analyst Q&A Answers operational and financial follow-up questions with exact ratio breakdowns (liquidity traps, 30-day AR collection impact, RFM win-back prioritization, Benford audit checklists, and 14-day cash survival triage).
  3. ERP Text-to-SQL & ORM Queries Writes multi-tenant-safe MySQL analytics queries and PostgreSQL/Prisma queries for overdue invoices, aging buckets, Benford first-digit checks, multi-warehouse valuation, POS velocity, CRM deal conversion, project budget burn, and payroll/attendance summaries.
  4. Structured JSON BI Outputs Produces strict JSON cards for dashboard health grading, smart expense categorization & audit flagging, and RFM churn intervention plans.
  5. Financial & Inventory Unit Economics Computes Cash Conversion Cycle (DIO + DSO - DPO), break-even units/revenue, LTV:CAC & payback, Reorder Point (ROP) / EOQ, and price vs. volume revenue variance.

Training Details & Metrics

Parameter Value
Base Model unsloth/Qwen3-4B-Instruct-2507-unsloth-bnb-4bit
Method QLoRA (4-bit NF4, r=16, alpha=32, dropout=0.05, all-linear)
Dataset 800 curated multi-task ChatML examples + 40 held-out eval examples
Context / Packing 2,048 tokens, sequence packing enabled, assistant-completions-only loss
Schedule 90 steps (Epoch 2.14, 1,420,705 tokens), Effective Batch 8 (2 Γ— 4)
Optimizer / LR AdamW 8-bit, Cosine LR 2e-4, 10 warmup steps
Hardware NVIDIA Tesla T4 (15 GiB VRAM), trained via Unsloth

Observed Loss Progression

  • Training Loss: 2.0226 (Step 1) β†’ 0.3620 (Step 27) β†’ 0.0328 (Step 71) β†’ 0.0199 (Step 90)
  • Eval Loss (40 held-out examples): 0.23164 (Step 30) β†’ 0.04627 (Step 60)

Quick Start (Python / Unsloth / Transformers)

Using Unsloth

from unsloth import FastLanguageModel

model, tokenizer = FastLanguageModel.from_pretrained(
    model_name="Softsasi/Softsasi-ERP-Analytics",
    max_seq_length=2048,
    load_in_4bit=True,
)
FastLanguageModel.for_inference(model)

messages = [
    {
        "role": "system",
        "content": "You are Softsasi ERP AI Business Analyst. Analyze ERP telemetry accurately and deliver direct executive guidance.",
    },
    {
        "role": "user",
        "content": (
            "Total Revenue: $420,000 | Expenses: $360,000 | Net Profit: $60,000 | "
            "Receivables: $145,000 (Overdue: $92,000) | Payables: $88,000 | Bank: $54,000 | "
            "Benford's Law: High Risk (digit 5 at 28.4% vs 7.9%) | RFM At Risk: 6, Cant Lose: 2. "
            "Give a concise Executive Summary, Critical Alerts, and 30-day actions."
        ),
    },
]

inputs = tokenizer.apply_chat_template(
    messages, tokenize=True, add_generation_prompt=True, return_tensors="pt"
).to("cuda")
outputs = model.generate(input_ids=inputs, max_new_tokens=768, temperature=0.3)
print(tokenizer.decode(outputs[0][inputs.shape[-1]:], skip_special_tokens=True))

Using Transformers + PEFT

from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel

base_id = "unsloth/Qwen3-4B-Instruct-2507-unsloth-bnb-4bit"
adapter_id = "Softsasi/Softsasi-ERP-Analytics"

tokenizer = AutoTokenizer.from_pretrained(adapter_id)
base_model = AutoModelForCausalLM.from_pretrained(base_id, device_map="auto")
model = PeftModel.from_pretrained(base_model, adapter_id)

Limitations & Intended Use

  • Fine-tuned on 800 synthetic, ERP-schema-grounded business scenarios at 4B parameter scale; not a substitute for certified accounting or legal audit sign-off.
  • Always run generated SQL read-only or behind tenant-scoped parameterized queries (created_by) and validate numerical conclusions against source ledgers.

  • Developed by: Softsasi
  • License: Apache-2.0
  • Trained with: Unsloth & Hugging Face TRL
Downloads last month
-
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for Softsasi/Softsasi-ERP-Analytics

Adapter
(42)
this model
Quantizations
1 model

Dataset used to train Softsasi/Softsasi-ERP-Analytics

Space using Softsasi/Softsasi-ERP-Analytics 1

Collection including Softsasi/Softsasi-ERP-Analytics