ASFT — Training Acceleration Framework: Achieve the same or better model capability with dramatically fewer resources.
Project description
ASFT: Adaptive Synaptic Fine-Tuning
ASFT is a production-grade, enterprise-ready AI Training Acceleration Framework designed to dramatically reduce the resources required to train and deploy LLMs.
🚀 The Pitch
Most fine-tuning frameworks focus on making matrix math faster, assuming you must train. ASFT flips the paradigm: it acts as an intelligent decision engine that treats fine-tuning as a last resort.
By systematically evaluating zero-shot reasoning, vector retrieval (RAG), and programmatic skills before allocating any GPU compute, ASFT radically reduces training costs, dataset requirements, and energy consumption—all while maintaining or improving model capability.
⚡ How We're Different
| Feature | Standard Frameworks (trl, Unsloth) | ASFT |
|---|---|---|
| Philosophy | "Train the model faster." | "Train only if absolutely necessary." |
| Decision Engine | None (blindly executes training). | Evaluates Working Memory, RAG, and Skills first. |
| Data Pruning | Manual curation required. | Auto-prunes redundant/easy samples using EL2N & Perplexity. |
| Architecture | Focuses on single-node GPU utilization. | Zero-trust verification, async queues, FTS5 memory. |
| Cost Estimation | Trial and error. | Pre-computes exact GPU-hours & USD cost via scaling laws. |
📊 Benchmarks
ASFT is built for speed and efficiency across all subsystems:
- Dataset Compression: Compress a 5,000-sample dataset to just 35 semantically unique samples (0.7% of original size) in ~10 seconds.
- Memory Operations: < 0.04s latency for semantic retrieval among 10,000 embedded items.
- Concurrency: Robust multi-process task offloading handling continuous throughput safely under strict stress testing.
💻 Installation
# Python 3.10+ required
pip install -e .
# Optional extras
pip install -e ".[faiss]" # For CPU vector search
pip install -e ".[faiss-gpu]" # For GPU vector search
pip install -e ".[viz]" # For analytical plotting (Plotly/Matplotlib)
🛠️ Quickstart
from asft.optimizer.auto_optimizer import AutoOptimizer
decision = AutoOptimizer().decide(task="Medical triage", domain="medical", target_accuracy=0.92, budget_usd=50.0)
print(f"Action: {decision.action} | Reasoning: {decision.reasoning}")
🛡️ Architecture & Security
ASFT is designed for robust enterprise deployment:
- Zero-Execution Verification: The framework's verification layers never execute LLM-generated code. Validation uses strictly AST-based parsing (
RestrictedPython) and the SymPy Computer Algebra System. - Bounded Persistent Memory: Fast, O(1) semantic lookups via SQLite FTS5 inverted indices.
- Memory-Safe Work Queues: API server delegates intensive GPU compute to sandboxed isolated processes via
ProcessPoolExecutor.
Status
Current Version: 0.1.0 (Production Ready)
Security Posture: Hardened
⚠️ Note: The legacy gradient-masking
SparseTrainerhas been officially deprecated. It has been replaced by theDynamicSparseTrainer(RigL) andParameterSelector.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file asft-0.1.0.tar.gz.
File metadata
- Download URL: asft-0.1.0.tar.gz
- Upload date:
- Size: 172.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06267a0f598401c7302e4de94bed71ad748ca3e4501b68de2ae32274f9fdb23e
|
|
| MD5 |
79223b273ae3671cd2e5b5cf03e813d5
|
|
| BLAKE2b-256 |
2d5bb842a305bccae7ddb6dfdb9b0bae8287a9acab069b3e9f1a0500d39566f5
|
File details
Details for the file asft-0.1.0-py3-none-any.whl.
File metadata
- Download URL: asft-0.1.0-py3-none-any.whl
- Upload date:
- Size: 185.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b2fee592643cd3d29ccead51243be23588973c5078a4f10cef1c0091972df94
|
|
| MD5 |
5989af2e7cbee0f56792b339ef18803b
|
|
| BLAKE2b-256 |
795045e49156976c8a6ca908e0b818a74dcff54d888b6ce61c580b3a50a36f67
|