/ Модель

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

Контекст
128 токенов
Параметры
1,1 млн
Лицензия
Apache 2.0
Архитектура
llama · dense
Библиотека
transformers
Опубликована
25 сен 2026

superfast-tiny-home-robotics-json-1m-v1

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

Компактная модель sraivante преобразует короткие команды домашней автоматизации на английском и хинди латиницей в JSON-действия для локального запуска.

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

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Superfast Tiny Home Robotics JSON 1M v1 — компактная языковая модель автора sraivante, обученная с нуля для преобразования коротких команд на английском и хинди, записанном латиницей, в JSON с полями activity, subject и action. Модель использует плотную архитектуру LlamaForCausalLM с тремя декодерными слоями, содержит около 1,1 млн параметров и имеет контекст длиной 128 токенов. Она предназначена для локального запуска на маломощных устройствах и разбора команд домашней автоматизации; в схеме предусмотрены действия ON, OFF и STATUS для вентилятора, света и водяного насоса.

На Raspberry Pi 5 в описанном тесте модель обрабатывала запросы примерно за 88–96 мс медианного времени, однако эти измерения не подтверждают надёжность управления устройствами. На диагностическом наборе поддерживаемых команд точность составила 48,6%, а отрицание может быть ошибочно преобразовано в команду включения. Модель не поддерживает хинди в письменности деванагари, историю диалога, восприятие, планирование движений и полноценное управление роботами. Выпущена под лицензией Apache-2.0.

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

  • Преобразование команды включения вентилятора в JSON
  • Разбор команды выключения света для домашней автоматизации
  • Определение статуса вентилятора, света или водяного насоса по короткой фразе
  • Локальный разбор англоязычных команд на Raspberry Pi
  • Разбор команд на хинди, записанном латиницей

Ограничения

В модели нет класса отказа или команды без действия: отрицательную фразу вроде просьбы не включать устройство она может преобразовать в ON. На диагностике поддерживаемых команд точность составила 48,6%; хинди письменностью деванагари не поддерживается.

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

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

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

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

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

Открыть на Hugging Face

Superfast Tiny Home Robotics JSON 1M v1

A 1,094,240-parameter model trained from scratch to turn short English and Romanized Hindi/Hinglish home commands into activity, subject, action JSON. It has 3 decoder layers and 4.38 MB of FP32 weights. It is an text-to-command parser for use as small local models and edge inference.

Observed limitation: it has no reject/no-op class and can turn Do not turn on the fan into an ON command. The examples below only return data; they execute no device actions. Native-script Hindi is not supported by the reported results.

ReleaseValue
Author / publishersraivante
Release date2026-09-25
Versionv1.0.2
Related datasethome-commands-json-v1
ArchitectureLlama-style causal decoder, randomly initialized; no pretrained base weights
Output space30 commands: 10 device types × ON / OFF / STATUS

Raspberry Pi 5 edge-device performance

Measured 2026-09-26 on a Raspberry Pi 5 Model B, 16 GB RAM, Debian 13.2/aarch64, Python 3.13.5. Measurement update: edge-rpi5-20260926.1; weights and training data are unchanged.

ThreadsMedian msp95 msp99 msSerial requests/sProcess RSS MiBCPU °C min–mean–maxTimed correct
187.9599.85100.8011.20398.8355.1–57.1–59.5500/500
496.34111.38128.2510.05399.1660.0–65.6–68.3500/500

Batch 1; 20 warmups and 500 timed calls per row, cycling over 10 frozen model-specific inputs. Each timed reading has a matching CPU-temperature sample, captured immediately afterward outside the latency timer; the table shows min–mean–max temperature. RSS includes Python/runtime overhead. Timings include local text-to-output inference and exclude loading, SSH/HTTP, speech recognition and actuation. Throughput is serial reciprocal mean. Runs used one and four CPU/BLAS threads sequentially. These synthetic workloads do not establish cross-model superiority or robot-control reliability.

On-device quality check: 72/284 on existing frozen stress/regression suite, constrained decoding only. See the report for per-category results and previously observed limitations.

Full Pi methodology, temperature plot and reproduction · Every latency/temperature reading · Raw measurements · Versioned evaluation data.

Edge-device use and measured speed

The small weights make this an edge-inference research candidate. The new Raspberry Pi measurements are recorded above. The following table preserves the earlier Intel desktop results. Power, sustained thermal behavior and end-to-end robot performance remain unmeasured.

Host: Intel Core i7-1360P, Windows 11, Python 3.13.14, CPU PyTorch 2.12.0, Transformers 4.56.2. Batch size 1, FP32, 20 warmups and 200 timed requests per run. Timing includes tokenization and constrained JSON generation, and excludes HTTP, speech recognition, sensors, ROS and actuation.

CPU threadsMedian latencyp95 latencyp99 latencySerial throughput
117.35 ms/command22.31 ms28.46 ms55.30 commands/s
419.80 ms/command24.70 ms26.90 ms49.72 commands/s

Weights occupy 4,380,048 bytes (4.38 MB / 4.18 MiB). The complete desktop Python/PyTorch process used approximately 440 MiB resident RAM, with roughly 442 MiB peak working set; this includes substantial runtime overhead. Weight size is not total deployment RAM. Libraries took 6.79 seconds to import; weight loading after import took 0.013 seconds with filesystem caches potentially warm. No core pinning or power-mode control was used.

Reproduce on 64-bit Raspberry Pi/ARM Linux from a downloaded repository:

python -m pip install -r requirements.txt psutil
python assessment/benchmark_device.py --model . --threads 1 --repeats 2000 --out pi-1thread.json
python assessment/benchmark_device.py --model . --threads 4 --repeats 2000 --out pi-4threads.json

Run these sequentially, then compare p95/p99, memory and sustained thermal behavior on the actual target. This release has no validated quantized or compiled edge-runtime export. Full desktop benchmark records and detailed assessment are included.

Quick start: JSON command output

Install PyTorch for your platform and the tested Transformers/tokenizer versions:

pip install "torch>=2.6,<3" "transformers==4.56.2" "tokenizers==0.22.1" "huggingface_hub>=0.35,<2"

Download the versioned repository and use the included inference helper:

import sys
from huggingface_hub import snapshot_download

folder = snapshot_download("sraivante/superfast-tiny-home-robotics-json-1m-v1", revision="v1.0.2")
sys.path.insert(0, folder)
from tiny_json_llm.infer import JsonCommandModel

model = JsonCommandModel(folder, device="cpu")
print(model.predict("Please turn on the fan"))
# {'action': 'ON', 'activity': 'air', 'subject': 'fan'}

print(model.predict("pankha band karo"))
# {'action': 'OFF', 'activity': 'air', 'subject': 'fan'}

print(model.predict("check the water pump status"))
# {'action': 'STATUS', 'activity': 'water', 'subject': 'motor'}

The helper uses a token trie of the 30 training-observed JSON commands. This ensures membership in the command set, not semantic correctness or permission to actuate. Empty/overlong input raises ValueError; unsupported short input can still return an unrelated command.

Command-line use after downloading the repository:

python -m tiny_json_llm.infer --model . --device cpu --input "turn on the light"

Standard Transformers usage: unconstrained generation

The release includes a chat template that exactly reproduces the training framing for one user message. It deliberately rejects conversation history and system prompts, which were not trained as supported tasks.

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

repo = "sraivante/superfast-tiny-home-robotics-json-1m-v1"
tokenizer = AutoTokenizer.from_pretrained(repo, revision="v1.0.2")
model = AutoModelForCausalLM.from_pretrained(repo, revision="v1.0.2").eval()
inputs = tokenizer.apply_chat_template(
    [{"role": "user", "content": "Please turn on the fan"}],
    add_generation_prompt=True, return_tensors="pt", return_dict=True,
)
with torch.inference_mode():
    result = model.generate(
        **inputs, max_new_tokens=32, do_sample=False,
        pad_token_id=tokenizer.pad_token_id,
        eos_token_id=tokenizer.eos_token_id,
    )
print(tokenizer.decode(result[0, inputs["input_ids"].shape[1]:], skip_special_tokens=True))

This second example is raw generation; JSON validity is not constrained. The context is 128 tokens including framing and output. Keep input short and validate both generated JSON and its intended meaning before downstream use.

Output schema and scope

{"action":"ON","activity":"air","subject":"fan"}

Actions: ON, OFF, STATUS.

SubjectActivity
fanair
lightlight
motorwater
speakermusic
geyserheating
coolercooling
washing_machinelaundry
tventertainment
accooling
sprinklergarden

motor means the dataset's water-pump motor, not an arbitrary robot motor. The schema has no speed, position, distance, duration, device instance, room, conditional execution, multi-action or reject field. No chat, reasoning, native-script Hindi, perception, motion planning or robotic-control capability is claimed.

Evaluation

All results below use the same weights identified in weights_sha256.json. The original test data is templated and overlaps the training distribution. The later stress test was frozen before inference and is a small manually authored diagnostic, not a representative sample or safety certification.

EvaluationCorrect / totalExact JSON accuracy
Original held-out test, constrained generation104,723 / 104,723100%
Original stratified raw-generation diagnostic1,816 / 1,816100%
Later supported-command challenges68 / 14048.6%
Challenges with no source-phrase overlap48 / 12040.0%
New paraphrase wording14 / 3046.7%
Hinglish variations8 / 3026.7%
Typos / ASR-style text perturbations6 / 3020.0%
Contrastive negation10 / 2050.0%

The later supported-command accuracies were identical with constrained and raw generation; both produced valid JSON for all 140 supported-command challenges. Native-script Hindi passed 0/10 diagnostic cases. Four empty/overlong input guards passed. Neither decoding mode produced an explicit reject/no-op response on 130 requests requiring abstention. Constrained mode emitted a known command for all 130, including 33 ON/OFF commands.

Concrete failures:

  • Do not turn on the fan. → fan ON.
  • Turn the fan on, not off. → fan OFF.
  • thank you → water-pump motor ON.

The 284 challenge cases, all 568 predictions across both modes, overlap audit, metrics and reproducible evaluation scripts are included. The challenge data is also versioned in the linked dataset's robotics_edge_v1 configuration. If these cases guide future training, reserve fresh tests for the next release.

Training and reproducibility

Source: user-supplied home-commands-3.4M.jsonl, 3,458,816 rows. Normalized-input deduplication removed 2,340,890 rows, leaving 1,117,926 examples. Phrase-family grouping reduced case/punctuation/politeness leakage; other paraphrase overlap can remain. The split is stratified by command class across 2,868 phrase families.

SplitExamplesPhrase families
Train910,1142,292
Validation103,089288
Test104,723288

Tokenizer: training-only byte-level BPE, vocabulary 1,024. Architecture: hidden width 160, intermediate width 432, 5 attention heads of dimension 32, 3 layers, RoPE, RMSNorm, SwiGLU, tied embeddings/output, context 128.

Training completed on NVIDIA A100-SXM4-80GB: one epoch, 1,778 updates and 22,655,302 nonpadding prediction tokens. Objective: full-sequence causal next-token loss. AdamW LR 0.001, betas (0.9, 0.95), weight decay 0.1, 5% warmup, cosine decay to 10% of peak LR, gradient clipping 1, microbatch 128, effective batch 512, BF16 computation and FP32 weights/optimizer. Seed: 20260925. Validation response NLL on a fixed 4,096-example subset selected the best model; best and final exports are identical at step 1,778.

The 20.70 training-tokens/parameter ratio is a Chinchilla-inspired sizing heuristic, not evidence of compute optimality. This small, highly templated corpus is outside the original experiments' scale and diversity.

The linked dataset includes the exact source, prepared train/validation/test JSONL, tokenizer/memmap training bundle and the manifest used in training. See training/ for source code, run summary and logs, and release_manifest.json for source, model, package and artifact hashes. No extra fine-tuning occurred.

License, provenance and attribution

Apache License 2.0 for this original release material; see LICENSE and NOTICE. Copyright (c) 2026 sraivante applies to original user contributions and original selection/arrangement. Third-party ownership and license terms remain unchanged. The source was supplied by the publisher; its upstream generation process and historical source revision were not provided or independently verified. The source SHA identifies the exact received file. No external corpus or pretrained base weights were added in this run.

Packaging adds a one-user chat template and corrects tokenizer context metadata to 128; token IDs, vocabulary and learned weights are unchanged. The historical assessment and training manifest are preserved. Their pre-publication packaging notes are superseded by this release's cards, license and authorization record.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
LlamaForCausalLM
Ревизия весов
cbbc433

0 моделей