Skip to main content

TAIT — Termux AI Training

A lightweight, NumPy-first local AI training toolkit for Termux, Android, and constrained Linux devices.
Made in Sudan 🇸🇩

English · العربية · 简体中文

TAIT started as a single-file MiniGPT trainer and is now an open-source modular package. It stays deliberately lightweight: no PyTorch, no TensorFlow, and no large runtime stack.

✨ Features

  • NumPy-only MiniGPT training and inference
  • Byte-level BPE tokenizer
  • Compact reasoning / CoT training format
  • Response-only loss and validation loss
  • Early stopping and best checkpoints
  • Safe Ctrl+C checkpoint preservation
  • JSONL datasets with reasoning aliases
  • Arabic, English, and mixed sample datasets
  • Optional Hugging Face dataset adapter
  • TOML configuration with CLI overrides
  • Termux-aware setup, doctor, and benchmark
  • Terminal chat and local browser chat

🚀 Installation

pip install tait

From source:

git clone https://github.com/muzammilsoft/tait.git
cd tait
pip install -e .

⚡ Quick Start

From the repository:

tait data inspect examples/datasets/mixed.jsonl
tait train --config configs/reasoning.toml
tait chat --model artifacts/reasoning.npz

Browser chat:

tait chat --web --model artifacts/reasoning.npz

Show the generated compact reasoning trace:

tait chat --model artifacts/reasoning.npz --show-reasoning

📦 Dataset format

{"prompt":"شنو عاصمة السودان؟","reasoning":"السؤال عن عاصمة السودان، والمدينة المعروفة بأنها العاصمة هي الخرطوم.","response":"عاصمة السودان هي الخرطوم."}

The default dataset is examples/datasets/mixed.jsonl. Arabic and English datasets are included separately. See Datasets for detailed generation rules.

🧠 Training

tait train --config configs/default.toml

CLI options override TOML settings. Validation, early stopping, response-only loss, and compact reasoning are enabled by default in the standard configuration.

See Training.

📚 Documentation

🗺️ Roadmap

v2.1 focuses on better instruction learning and compact reasoning. A future v2.x can add teacher/student distillation workflows. v3 can add an Agent layer with function calling, tools, planning, and execution.

License

MIT — see LICENSE.

Metadata

Release files for tait 2.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tait 2.2.0
File Size Uploaded Provenance Actions
tait-2.2.0.tar.gz 27.5 kB Without provenance Details for tait-2.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tait 2.2.0
File Interpreter ABI Platform Actions
tait-2.2.0-py3-none-any.whl Python 3 none any Details for tait-2.2.0-py3-none-any.whl

Total release size: 56.0 kB

Release files / tait-2.2.0.tar.gz

Download URL tait-2.2.0.tar.gz
Size 27.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5c6100b6d2793692ed310e636cbb490c59ceef48274b4a8895a5e80e285d632a
BLAKE2b-256 checksum
How to use checksums
e36badd3796cc8167bb9cd7d1faf7ab4bd17a201751fd60c6bc9bdb5841f82a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / tait-2.2.0-py3-none-any.whl

Download URL tait-2.2.0-py3-none-any.whl
Size 28.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0f35e072b4d45b8a510984c6e1791b51b1cfe31433792bc53a58d6a79761915f
BLAKE2b-256 checksum
How to use checksums
309acee31dd27761b72abe8eba40abbe3fc4a2726f44c0980a2d46460ba74f0a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for tait 2.2.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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page