Store-1-Publisher / README.md
Softsasi's picture
Update README.md
e19262c verified
|
Raw History Blame Contribute Delete
9.38 kB
metadata
base_model:
  - unsloth/Mistral-Small-24B-Instruct-2501-bnb-4bit
datasets:
  - Softsasi/Store-1-Publisher-Dataset
library_name: peft
pipeline_tag: text-generation
license: apache-2.0
language:
  - en
  - bn
tags:
  - text-generation-inference
  - transformers
  - unsloth
  - mistral
  - trl
  - qlora
  - fsdp2
  - aso
  - seo
  - copywriting
  - legal-compliance
  - privacy-policy
  - terms-of-service
  - softsasi
  - softsasi-store
  - bangla
  - banglish
  - bangladesh
  - open-weight
model-index:
  - name: Store-1-Publisher
    results:
      - task:
          type: text-generation
          name: ASO/SEO Listing & Legal Policy Generation
        dataset:
          type: Softsasi/Store-1-Publisher-Dataset
          name: Store-1-Publisher-Dataset
          split: validation
        metrics:
          - type: loss
            name: Validation Loss (Step 36)
            value: 3.1287
          - type: loss
            name: Training Loss (Step 36)
            value: 3.0921

Store-1-Publisher (24B LoRA Adapter)

Store-1-Publisher (Softsasi/Store-1-Publisher) is a 24B-parameter dense ASO/SEO listing writer and legal compliance generator fine-tuned by Softsasi on unsloth/Mistral-Small-24B-Instruct-2501-bnb-4bit via QLoRA (FSDP2 multi-GPU sharding across 2× Tesla T4).

Built directly for publisher workflows inside Softsasi Store (lib/data/services/openai_service.dart):

  1. ASO / SEO Listing Enhancement (enhanceDescription): Transforms raw developer notes—including English, Bangla, and Romanized Banglish—into SEO-optimized Markdown app descriptions across all 6 Store categories (Apps, Games, Websites, Assets, Themes, Plugins) and Android/Windows/Web builds, ending with targeted #Hashtags and zero conversational prefaces.
  2. Legal Compliance Document Generation (generateLegalPolicy): Generates ready-to-publish Privacy Policy, Terms & Conditions, and Cookie Policy Markdown tailored to app category, pricing, age rating (3+ through 18+), and optional existing draft notes—strictly enforcing zero unfilled template placeholders ([...], {...}).

Standalone 24B GGUF (Q4_K_M): Softsasi/Store-1-Publisher-GGUF (ollama run hf.co/Softsasi/Store-1-Publisher-GGUF)
Training Dataset (600 train / 60 validation): Softsasi/Store-1-Publisher-Dataset
Interactive Demo Workbench: Softsasi/Store-1-Publisher-Demo
Storefront Platform: Softsasi Store


Training Telemetry & Convergence (FSDP2 · 2× Tesla T4)

Metric / Parameter Observed Value
Base Model unsloth/Mistral-Small-24B-Instruct-2501-bnb-4bit (24B Dense)
Fine-Tuning Method QLoRA (4-bit NF4, r=16, lora_alpha=16, lora_dropout=0, q/k/v/o/gate/up/down_proj)
Parallelism & Hardware FSDP2 Sharded Data Parallel (dp=2, fsdp=1, NCCL) on 2× NVIDIA Tesla T4 (15 GiB VRAM each)
Memory Peak (Rank GPU / Host) GPU Allocated 11.00 GiB (11,813,542,400 B) · GPU Reserved 11.66 GiB · Host RSS 8.76 GiB
Schedule & Context 36 steps (Epoch 2.12, 1,343,000 packed tokens), max_seq_length=2560, packing true, train_on_completions=true, batch_size=1, grad_accum=8
Optimizer & LR adamw_8bit, Linear LR 1.0e-4 (4 warmup steps → 3.125e-6 at Step 36), weight decay 0.001
Training Duration 1h 57m 20s (7,040.32 s)

Loss & Evaluation Progression

  • Training Loss: 6.8557 (Step 1) → 4.7711 (Step 12) → 3.6360 (Step 24) → 2.9835 (Step 35 min) → 3.0921 (Step 36 final; -54.9% reduction)
  • Held-Out Validation Loss (60 unseen apps/studios): 4.5429 (Step 12) → 3.6283 (Step 24) → 3.1287 (Step 36 final; monotonic decrease with zero overfitting)
  • Gradient Norm: 2.5436 (Step 1) → 0.9290 (Step 12) → 1.2683 (Step 24) → 1.731 (Step 36)

Quick Start (Python / Transformers + PEFT)

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel

base_id = "unsloth/Mistral-Small-24B-Instruct-2501-bnb-4bit"
adapter_id = "Softsasi/Store-1-Publisher"

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

messages = [
    {
        "role": "system",
        "content": (
            "You are Softsasi Store AI Publisher, a senior ASO/SEO product copywriter and software "
            "compliance specialist for Softsasi Store (apps, games, websites, assets, themes, plugins). "
            "Follow formatting rules strictly: return ONLY the requested final Markdown text with zero "
            "meta-commentary, zero conversational prefaces, zero markdown code fences (```), and zero "
            "unfilled template placeholders like [...] or {...}."
        ),
    },
    {
        "role": "user",
        "content": (
            "Write an SEO-optimized Softsasi Store listing description for 'HisabKhata Offline POS' "
            "(Category: Apps -> Business, Platforms: Android, Windows, Pricing: Paid 299 BDT).\n\n"
            "Developer's rough notes:\nAmar dokaner hishab ar baki khata rakhar offline app, thermal printer diye receipt ar pdf bill banano jay."
        ),
    },
]

text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, return_tensors="pt").to(model.device)
with torch.no_grad():
    out = model.generate(**inputs, max_new_tokens=900, temperature=0.4, do_sample=True)
print(tokenizer.decode(out[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))

Softsasi Enterprise AI Suite

Tier Model Name Size Focus Repositories
Verify Neural-1-Verify 1.5B Fact-checking & claim verification Model · GGUF · Demo
Insight Insight-1-ERP-Analytics 4B ERP BI, Benford forensics & Text-to-SQL LoRA · GGUF · Demo
Commerce Commerce-1-Order-AI 8B Autonomous restaurant & e-commerce ordering LoRA · GGUF · Demo
Planner Kanban-1-Planner 14B Schema-strict Kanban board generation & JSON editing LoRA · GGUF · Demo
Publisher Store-1-Publisher 24B App store ASO copywriting & legal compliance generation LoRA · GGUF · Demo · Dataset
  • Developed by: Softsasi · License: Apache-2.0

Ecosystem & Related Links


Connect with Softsasi

Softsasi — Bangladesh's #1 Open-Weight LLM & Enterprise AI Development Company