Text Generation
PEFT
Safetensors
Transformers
English
Bengali
text-generation-inference
unsloth
qwen3
trl
qlora
tool-calling
function-calling
ecommerce
restaurant
food-delivery
order-automation
bangla
banglish
conversational
Instructions to use Softsasi/Commerce-1-Order-AI with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Softsasi/Commerce-1-Order-AI with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/Qwen3-8B-unsloth-bnb-4bit") model = PeftModel.from_pretrained(base_model, "Softsasi/Commerce-1-Order-AI") - Transformers
How to use Softsasi/Commerce-1-Order-AI with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Softsasi/Commerce-1-Order-AI") 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/Commerce-1-Order-AI", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Softsasi/Commerce-1-Order-AI with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Softsasi/Commerce-1-Order-AI" # 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/Commerce-1-Order-AI", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Softsasi/Commerce-1-Order-AI
- SGLang
How to use Softsasi/Commerce-1-Order-AI 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/Commerce-1-Order-AI" \ --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/Commerce-1-Order-AI", "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/Commerce-1-Order-AI" \ --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/Commerce-1-Order-AI", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use Softsasi/Commerce-1-Order-AI with Docker Model Runner:
docker model run hf.co/Softsasi/Commerce-1-Order-AI
|
Download README.md from Softsasi/Commerce-1-Order-AI: direct link, hf CLI and curl.
- Browser
- Download file 6.02 kB
-
https://huggingface.co/Softsasi/Commerce-1-Order-AI/resolve/main/README.md
- Command line
-
hf download hf://Softsasi/Commerce-1-Order-AI/README.md
-
curl -L -o README.md https://huggingface.co/Softsasi/Commerce-1-Order-AI/resolve/main/README.md
6.02 kB
| base_model: | |
| - unsloth/Qwen3-8B-unsloth-bnb-4bit | |
| datasets: | |
| - Softsasi/Commerce-1-Order-AI-Dataset | |
| library_name: peft | |
| pipeline_tag: text-generation | |
| license: apache-2.0 | |
| language: | |
| - en | |
| - bn | |
| tags: | |
| - text-generation-inference | |
| - transformers | |
| - unsloth | |
| - qwen3 | |
| - trl | |
| - qlora | |
| - tool-calling | |
| - function-calling | |
| - ecommerce | |
| - restaurant | |
| - food-delivery | |
| - order-automation | |
| - bangla | |
| - banglish | |
| - conversational | |
| # Commerce-1-Order-AI (8B LoRA Adapter) | |
| **Commerce-1-Order-AI** (`Softsasi/Commerce-1-Order-AI`) is an enterprise-grade **8B-parameter autonomous ordering, customer support, and reservation AI agent** fine-tuned by **[Softsasi](https://huggingface.co/Softsasi)** on [`unsloth/Qwen3-8B-unsloth-bnb-4bit`](https://huggingface.co/unsloth/Qwen3-8B-unsloth-bnb-4bit). | |
| Built for restaurant delivery chains (grounded in `101` real menu dishes and policies) and multi-vendor e-commerce storefronts, it emits deterministic `<tool_call>` JSON actions, computes exact BDT subtotals/coupons/delivery charges, enforces kitchen & stock guardrails, and operates seamlessly across **English (`en`)**, **Bangla (`bn`)**, and **Banglish**. | |
| > **Live ZeroGPU Demo:** [`Softsasi/Commerce-1-Order-AI-Demo`](https://huggingface.co/spaces/Softsasi/Commerce-1-Order-AI-Demo) | |
| > **GGUF (`Q4_K_M`, 5.03 GB) for Ollama / llama.cpp:** [`Softsasi/Commerce-1-Order-AI-GGUF`](https://huggingface.co/Softsasi/Commerce-1-Order-AI-GGUF) | |
| > **Training Dataset (`1,900` Conv):** [`Softsasi/Commerce-1-Order-AI-Dataset`](https://huggingface.co/datasets/Softsasi/Commerce-1-Order-AI-Dataset) | |
| --- | |
| ## Key Capabilities | |
| 1. **Autonomous Multi-Turn Ordering & Cart Management** — Resolves dishes/SKUs, emits `<tool_call>` JSON for `add_to_cart`, `update_cart`, `remove_from_cart`, `apply_coupon`, and `place_order`, verifies exact itemized totals + delivery fees, and confirms address, phone, and payment (`COD`, `bKash`, `Nagad`, `Rocket`, `Upay`, `Visa/Mastercard`, `Wallet`). | |
| 2. **Trilingual Support (`English` / `Bangla` / `Banglish`)** — Understands native Bengali script and Romanized Banglish ordering chats while keeping structured JSON schema strict. | |
| 3. **Order Tracking & 5-Minute Cancellation Guardrails** — Supports `track_order` via Order ID or phone number, enforces pre-kitchen cancellation windows (`cancel_order` ≤ 5 mins), and escalates post-preparation requests or duplicate payment debits via `escalate_to_human`. | |
| 4. **Stock & Operating-Hours Safety** — Blocks out-of-stock SKUs (`search_products`) with closest alternatives, enforces `11:00 AM–11:00 PM` dining hours (`book_table`), and flags severe food allergy queries for immediate chef/human review. | |
| 5. **Structured NLU Webhook Router** — Extracts `intent`, `language`, `items`, `delivery_info`, `payment_method`, and `tool_suggestion` as strict JSON. | |
| --- | |
| ## Training Telemetry & Performance Summary | |
| | Metric / Parameter | Observed Value | | |
| | :--- | :--- | | |
| | **Base Model** | `unsloth/Qwen3-8B-unsloth-bnb-4bit` (`8.2B` / `8.4B` Qwen3, `36` layers, `4096` hidden) | | |
| | **Fine-Tuning Method** | QLoRA (4-bit NF4, `r=16`, `lora_alpha=32`, `lora_dropout=0.05`, all 7 linear layers) | | |
| | **Training Run Dataset** | `1,600` train + `80` eval conversations (`3,386` validated `<tool_call>` JSONs, avg `7.0` turns/conv) | | |
| | **Public Hub Dataset (`v1.1`)** | [`Softsasi/Commerce-1-Order-AI-Dataset`](https://huggingface.co/datasets/Softsasi/Commerce-1-Order-AI-Dataset) (`1,800` train + `100` eval, `3,826` validated tool calls + `update_cart`/`remove_from_cart`) | | |
| | **Schedule / Context** | `45` steps, Context `1,536`, Effective Batch `8` (`1 × 8`), Cosine LR `2e-4` (`6` warmup) | | |
| | **Hardware** | NVIDIA Tesla T4 (`15 GiB` VRAM, peak `11.43 GiB`) via [Unsloth](https://github.com/unslothai/unsloth) | | |
| ### Observed Loss Progression | |
| - **Training Loss**: `1.9767` (Step 1) → `1.6048` (Step 2) → **`0.0538`** (Step 33) · `Grad Norm: 2.355 → 0.203` | |
| - **Validation Loss** (`80` held-out conversations): `0.42558` (Step 15) → **`0.1258`** (Step 30) | |
| ### Verified Live ZeroGPU Output (`Structured NLU Order Router`) | |
| **Input (Banglish):** | |
| > `2ta Cheese Volcano Pizza pathan Court Para te, COD, 01711223344.` | |
| **Output:** | |
| ```json | |
| {"intent": "place_order", "language": "banglish", "items": [{"product_id": 13, "slug": "cheese-volcano-pizza", "name": "Cheese Volcano Pizza", "quantity": 2}], "delivery_info": {"area": "Court Para", "phone": "01711223344"}, "payment_method": "cash_on_delivery", "order_ref": null, "requires_confirmation": true, "requires_human": false, "tool_suggestion": "add_to_cart"} | |
| ``` | |
| --- | |
| ## Quick Start (Python / Transformers + PEFT) | |
| ```python | |
| from transformers import AutoModelForCausalLM, AutoTokenizer | |
| from peft import PeftModel | |
| import torch | |
| base_id = "Qwen/Qwen3-8B" | |
| adapter_id = "Softsasi/Commerce-1-Order-AI" | |
| 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 |