TensorSuggestLite
Declarative ML ✦ Edge-Ready TFLite ✦ Zero-TensorFlow Inference
Transform configuration files into trained text classification models with instant edge deployment.
About ✦ Features ✦ Installation ✦ Usage ✦ Architecture ✦ Contributing
About
TensorSuggestLite turns structured configuration files (JSON, YAML, TOML) into trained TensorFlow/Keras text classification models with automated TFLite export for embedded and edge environments.
Machine learning prototypes often suffer from repetitive boilerplate code for tokenization, label encoding, training loops, and quantization. TensorSuggestLite treats configuration directly as training data: declare categories and examples in standard structured formats, and the engine trains, profiles, evaluates, and converts the model into an optimized artifact ready for production.
The pipeline produces both a full Keras model for server workloads and a quantized TFLite binary that runs with sub-2ms latency on edge runtimes.
Philosophy
"Configuration as training data."
Part of the Core Red Project realm within the Sxnnyside Project ecosystem.
Features
- Declarative Multi-Format Input: Direct parsing of JSON, YAML, and TOML datasets.
- Dataset Profiling & Diagnostics: Automated detection of class imbalance, duplicate sentences, and contradictory labeling prior to training.
- Complete Artifact Bundle: Exports
tokenizer.json,text_classifier.keras,label_encoder.json,text_classifier.tflite, and richmodel_metadata.json. - Confusion Matrix & Metrics: Transparent training telemetry reporting F1-Score, Precision, Recall, Confusion Matrix, and tensor shapes.
- Live Inference Playground: Real-time cross-validation in GUI and CLI (
--compare) verifying prediction parity between Keras and TFLite. - Zero-TensorFlow Lightweight Runtime: Standalone inference engine (
lite_runtime.py) executing predictions with ~5 MB dependencies and ~1 ms latency. - Dual Packaging: Headless CLI for servers/containers alongside a native desktop GUI with dark/light themes.
Installation & Distribution
TensorSuggestLite is distributed through three official channels:
1. PyPI Package (pip install)
Install via standard Python package managers:
# Lightweight CLI & LiteRT edge inference engine (~15 MB, zero TensorFlow)
pip install tensorsuggestlite
# With model training & TFLite conversion support (TensorFlow + Scikit-Learn)
pip install "tensorsuggestlite[train]"
# With native Desktop GUI support (DearPyGui)
pip install "tensorsuggestlite[gui]"
# Complete suite (CLI + Training + GUI)
pip install "tensorsuggestlite[full]"
2. Standalone CLI Binary (GitHub Releases)
Single-file self-contained executables with embedded runtime—no Python or system dependencies required:
| Architecture / Platform | Target Triple | Download Archive |
|---|---|---|
| Debian ARM64 (Raspberry Pi OS 64-bit) | aarch64-unknown-linux-gnu |
tensorsuggestlite-cli-*-aarch64-unknown-linux-gnu.tar.gz |
| Linux x86_64 (Ubuntu / Debian / RHEL) | x86_64-unknown-linux-gnu |
tensorsuggestlite-cli-*-x86_64-unknown-linux-gnu.tar.gz |
| macOS Apple Silicon (M1/M2/M3/M4) | aarch64-apple-darwin |
tensorsuggestlite-cli-*-aarch64-apple-darwin.tar.gz |
| Windows x64 | x86_64-pc-windows-msvc |
tensorsuggestlite-cli-*-x86_64-pc-windows-msvc.zip |
Download the archive for your architecture from GitHub Releases, extract, and copy tensorsuggestlite-cli to your PATH (e.g. /usr/local/bin).
3. Desktop GUI Application (GitHub Releases)
Standalone native desktop application:
- macOS: Drag-and-drop installer disk image (
tensorsuggestlite-gui-*-aarch64-apple-darwin.dmg). - Windows: Self-contained ZIP archive (
tensorsuggestlite-gui-*-x86_64-pc-windows-msvc.zip). - Linux: Compressed application tarball (
tensorsuggestlite-gui-*-x86_64-unknown-linux-gnu.tar.gz).
4. Build From Source
git clone https://github.com/core-red-project/tensorsuggestlite.git
cd tensorsuggestlite
# Install dependencies and sync virtual environment
just install
# Run automated test suite
just test
Usage
Headless CLI
# Inspect and profile dataset integrity
uv run tensorsuggestlite inspect examples/example.json
# Train model headlessly with custom hyperparameters
uv run tensorsuggestlite train examples/example.json --output-dir generated/json --epochs 12 --learning-rate 0.001
# Convert Keras model to quantized TFLite
uv run tensorsuggestlite convert generated/json
# Run real-time prediction
uv run tensorsuggestlite predict generated/json "This product is fantastic!"
# Cross-validate Keras vs TFLite parity side-by-side
uv run tensorsuggestlite predict generated/json "Outstanding experience!" --compare
# Audit model registry and historical runs
uv run tensorsuggestlite history generated/json
Desktop GUI Application
# Launch GUI in development mode
just dev
- Import: Click Import JSON/YAML/TOML or drag & drop configuration files into the window.
- Profile: Review dataset balance and sample counts in the console.
- Train: Adjust hyperparameters (
Epochs,Learning Rate,Dropout) and click Train Model. - Convert & Export: Click Generate TFLite and save the binary artifact.
- Playground: Test sentences in real-time or click Compare Keras vs TFLite to verify quantization consistency.
Standalone Zero-TensorFlow Inference
For edge deployment or resource-constrained microservices without full TensorFlow:
tensorsuggestlite predict generated/json "Can you help me solve this?" --tflite
Architecture
tensorsuggestlite/
├── src/tensorsuggestlite/
│ ├── core/ # Domain entities, protocols, profiler & exceptions (MIT)
│ ├── cli/ # CLI commands, POSIX streams, manpage & suggestions (MIT)
│ ├── ml/ # Model training, TFLite export & zero-TF inference (MIT)
│ ├── parsers/ # Format parsers (JSON, YAML, TOML) & skeleton mapping (MIT)
│ ├── use_cases/ # Application workflows (Train, Export, Predict) (MIT)
│ └── ui/ # DearPyGui desktop graphical interface (MPL-2.0)
├── docs/ # Visual branding and ecosystem documentation assets
├── examples/ # Verified multi-format training fixtures (JSON, YAML, TOML)
├── tests/ # Automated test suite mirroring src/ (66 tests)
└── Justfile # Canonical engineering task runner
Note on Drag & Drop: Native OS drag-and-drop onto the application window is Experimental (verified on macOS via Cocoa/Metal; unsupported on Windows/Linux).
Contributing
Contributions are accepted. See CONTRIBUTING.md for guidelines.
Before contributing, read the Code of Conduct.
License
This project is licensed under a split open-source model:
- Core Engine & CLI (
core/,cli/,ml/,parsers/,use_cases/,main.py): MIT License — see LICENSE-MIT. - Desktop Graphical Interface (
ui/): Mozilla Public License Version 2.0 (MPL-2.0) — see LICENSE-MPL-2.0.
See the master LICENSE file for complete terms and the Artifact Ownership Notice.
External Listings
TensorSuggestLite — A Core Red Project
© 2026 Sxnnyside Project
Metadata
Release files for tensorsuggestlite 2.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tensorsuggestlite-2.1.0.tar.gz | 180.3 kB | Without provenance | Details for tensorsuggestlite-2.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tensorsuggestlite-2.1.0-py3-none-any.whl | Python 3 | none | any | Details for tensorsuggestlite-2.1.0-py3-none-any.whl |
Total release size: 257.3 kB
Release files / tensorsuggestlite-2.1.0.tar.gz
| Download URL | tensorsuggestlite-2.1.0.tar.gz |
|---|---|
| Size | 180.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9bc962a2cda9a5fd9133eb8569b85dd7670303223151eb2bf1f67f74948e4701
|
|
BLAKE2b-256 checksum How to use checksums |
23593930d098a221a2dcd34258ab8ce79479c9d2e99d8f114e8bb88215ff26dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / tensorsuggestlite-2.1.0-py3-none-any.whl
| Download URL | tensorsuggestlite-2.1.0-py3-none-any.whl |
|---|---|
| Size | 77.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
78f0fc9ac122e6dcc6f43c50865c00e47647f634d3b31cbc65b8aafd0195068e
|
|
BLAKE2b-256 checksum How to use checksums |
11c5078e133a57a8673fffe2e1aa54dda28e2eb719e2a34b9388db6378fc2bc8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for tensorsuggestlite 2.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.