Instructions to use Softsasi/Softsasi-ERP-Analytics with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Softsasi/Softsasi-ERP-Analytics with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/Qwen3-4B-Instruct-2507-unsloth-bnb-4bit") model = PeftModel.from_pretrained(base_model, "Softsasi/Softsasi-ERP-Analytics") - Transformers
How to use Softsasi/Softsasi-ERP-Analytics with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Softsasi/Softsasi-ERP-Analytics") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Softsasi/Softsasi-ERP-Analytics", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Softsasi/Softsasi-ERP-Analytics with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Softsasi/Softsasi-ERP-Analytics" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Softsasi/Softsasi-ERP-Analytics", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Softsasi/Softsasi-ERP-Analytics
- SGLang
How to use Softsasi/Softsasi-ERP-Analytics with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Softsasi/Softsasi-ERP-Analytics" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Softsasi/Softsasi-ERP-Analytics", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Softsasi/Softsasi-ERP-Analytics" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Softsasi/Softsasi-ERP-Analytics", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use Softsasi/Softsasi-ERP-Analytics with Docker Model Runner:
docker model run hf.co/Softsasi/Softsasi-ERP-Analytics
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
- 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.
- 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).
- 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.
- Structured JSON BI Outputs Produces strict JSON cards for dashboard health grading, smart expense categorization & audit flagging, and RFM churn intervention plans.
- 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 (
40held-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.
- Downloads last month
- -
Model tree for Softsasi/Softsasi-ERP-Analytics
Base model
Qwen/Qwen3-4B-Instruct-2507