/ Модель

Характеристики

Лицензия
Своя лицензия
Библиотека
transformers
Опубликована
18 ноя 2026

supermart-slm

Генерация текстаТекст → текст3 профессии

Компактная модель Qwen3, обученная с нуля для ответов на вопросы об аналитике данных супермаркета.

459скачиваний за 30 дней0лайковвеса обновлены26 ноя 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

SuperMart SLM — компактная языковая модель для вопросов об аналитике розничной торговли, созданная командой проекта AIML-C Design Thinking. Это decoder-only трансформер с архитектурой Qwen3: 340 млн параметров, 12 слоёв, grouped-query attention и ChatML-шаблон. Модель обучена с нуля, без предобученных весов, на текстовом представлении данных о покупках в супермаркете и материалах о розничной торговле, затем дообучена на 452 вопросах и ответах о наборе из 2,6 млн строк транзакций.

Модель предназначена для ответов на вопросы о продажах и покупательских корзинах, например о времени покупок и показателях отделов. Доступны веса Safetensors для Transformers и версия GGUF Q8_0 для Ollama и llama.cpp. Карточка сообщает о поддержке английского языка. Лицензия указана как other; конкретные условия в предоставленных данных не раскрыты.

Модель хорошо воспроизводит факты из обучающих примеров, но плохо отвечает на вопросы с не встречавшимися в них фактами и может уверенно выдумывать неверные ответы. В оценке она воспроизвела 95,3% чисел для вопросов из обучения и 4,8% для отложенных вопросов. Авторы не рекомендуют использовать её для реальных деловых или финансовых решений.

Сценарии применения

  • ответы на вопросы о продажах супермаркета
  • поиск пикового времени покупок
  • анализ показателей отделов магазина
  • ответы по данным о покупательских корзинах

Ограничения

Модель плохо воспроизводит факты для отложенных вопросов и может уверенно давать неверные ответы вне обучающих примеров. Авторы не рекомендуют использовать её для реальных деловых или финансовых решений.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

SuperMart SLM

A 340M-parameter Qwen3-architecture language model trained from scratch (no pretrained weights) on supermarket transaction data and retail research papers. It answers retail-analytics questions about a 2.6M-line supermarket transaction dataset. Built for the AIML-C Design Thinking project.

Repository layout

The repository has two folders:

FolderContents
model/everything needed to use the model
notebook/the Jupyter notebooks that build the model

README.md (this card), LICENSE and .gitattributes stay at the top level because Hugging Face requires them there.

model/

FileUse
model.safetensors, config.json, generation_config.json🤗 transformers (Qwen3ForCausalLM, float32)
tokenizer.json, tokenizer_config.json, chat_template.jinjaQwen3 BPE tokenizer + ChatML chat template
supermart-slm-q8_0.ggufOllama / llama.cpp (Q8_0, 367 MB)
ModelfileOllama import: ChatML template, system prompt, stop tokens

notebook/

FileWhat it is
6_supermart_slm_end_to_end.ipynbmain notebook — the complete pipeline with all code inline: data cleaning, dataset build, statistics, train/val/test files, tokenizer, model, 3-stage training, evaluation, export, GGUF, Ollama, question test, browser chat
6_supermart_slm_end_to_end_training_run_2026-11-18.ipynbthe executed training run (18 Nov 2026, RTX 4050 Laptop, ~4.6 h) with every live training log line
5_slm_from_scratch_qwen.ipynbfirst experiment: Qwen3 SLM on TinyStories
requirements.txtPython packages needed to run the notebooks

Architecture

Typedecoder-only transformer, Qwen3 layout
Layers / hidden / FFN12 / 768 / 3072 (SwiGLU)
Attentiongrouped-query, 12 query heads / 6 KV heads, head dim 64, QK-RMSNorm, RoPE θ = 10,000
VocabularyQwen3 BPE, 151,936
Context512 tokens
Parameters339.6M (untied embedding and LM head)

Training (mainly supermarket data, single RTX 4050 Laptop GPU, 6 GB)

StageDataStepsFinal train lossFinal val loss
A — pre-training from scratch262,659 supermarket baskets written as text (90M-token corpus; 4,000 steps ≈ 33M tokens seen)4,0000.4550.529
B — domain pre-training11 cleaned retail research papers + glossary + data insights8001.3176.635 (best 5.766)
C — chat fine-tuning (ChatML, loss on answers only)452 Q&A conversations, 223 facts, mostly computed from the data8000.0112.871 (best 1.927)

AdamW 8-bit (β 0.9/0.95, wd 0.1), linear warm-up + cosine decay, bf16 autocast with fp32 master weights, gradient checkpointing. About 4.6 hours in total. The final checkpoint of stage C is published.

Evaluation

MetricValue
Stage A validation perplexity (13,825 held-out baskets)1.7
Numeric fact recall, questions seen in training (sample of 50)95.3 %
Numeric fact recall, questions held out of chat fine-tuning (67 conversations)4.8 %

Numeric fact recall = share of the numbers in the reference answer that the model reproduces (greedy decoding). The model memorises its training facts almost perfectly but does not answer the held-out questions. The answers to 57 of the 67 held-out questions also appear in the stage B domain corpus (about 38 of them in its training part), because that corpus was built before the Q&A split. So these questions were not seen as chat examples, but many of their facts were seen as text.

Use with Ollama

hf download nandangowda/supermart-slm model/supermart-slm-q8_0.gguf model/Modelfile --local-dir supermart-slm
cd supermart-slm/model
ollama create supermart-slm -f Modelfile
ollama run supermart-slm "Which departments generate the most sales?"

Use with transformers

from transformers import AutoTokenizer, AutoModelForCausalLM
tok = AutoTokenizer.from_pretrained("nandangowda/supermart-slm", subfolder="model")
model = AutoModelForCausalLM.from_pretrained("nandangowda/supermart-slm", subfolder="model")
system = "You are SuperMart SLM, a small language model trained from scratch to answer questions about supermarket retail analytics: sales, products, departments, discounts, baskets, customer demographics, gross margin, pricing, payment methods and tax. Answer concisely and use the numbers from the SuperMart transaction dataset when relevant."
msgs = [{"role": "system", "content": system},
        {"role": "user", "content": "What is the average basket size?"}]
ids = tok.apply_chat_template(msgs, add_generation_prompt=True, return_tensors="pt", return_dict=True)["input_ids"]
out = model.generate(ids, max_new_tokens=128, do_sample=False)
print(tok.decode(out[0][ids.shape[1]:], skip_special_tokens=True))

Example

Q: What time of day do customers shop the most? A: Sales peak at 17:00-18:00 (10.3% of daily sales). The morning (6-12) brings 16.1%, afternoon (12-17) brings 40.7%, evening (17-22) brings 38.1% of sales.

Limitations

A small model trained from scratch on a narrow domain. It reproduces the facts it was fine-tuned on exactly, but invents confident wrong answers for questions outside them (held-out validation facts are not recalled). Not for real business or financial decisions.

Known issues

  • Leak between stages: The answers to 57 of the 67 held-out questions also appear in the stage B domain corpus (about 38 of them in its training part), because that corpus was built before the Q&A split. So these questions were not seen as chat examples, but many of their facts were seen as text.
  • Wrong identity answer: asked "How were you trained?", the model says it was pre-trained on general English text. That is false (it was pre-trained on supermarket baskets) and comes from an outdated training answer.

Use of AI

An AI assistant (Claude, Anthropic) wrote most of the code, the glossary definitions, the question templates and the figures, and drafted the documentation. The team supplied the data and the starting notebook, directed the work, ran the training on their own laptop (18 Nov 2026) and published the results.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Можно запустить

Подбираем GPU…

Ревизия весов
53f58e4

0 моделей