QuarterBit v2 - 55% memory savings, 6000x precision optimizer
Project description
QuarterBit
The Pareto-Optimal Optimizer for PyTorch
Better precision. Less memory. Faster training. No tradeoffs.
The Problem
Standard FP32 training loses precision over long runs. Tiny gradient updates get rounded away, causing:
- Stalled convergence in late training
- Wasted GPU hours
- Suboptimal final models
The Solution
QuarterBit's CompactEFTAdam combines compressed storage with EFT (Error-Free Transformation) arithmetic to achieve:
| Metric | PyTorch Adam | CompactEFTAdam | Improvement |
|---|---|---|---|
| Precision | Loses 100% of tiny updates | Loses 0% | 1,000,000x |
| Memory | 16 B/param | 9.25-13.25 B/param | 17-42% savings |
| Convergence | 41 steps to target | 27 steps | 34% faster |
Installation
pip install quarterbit
Quick Start
from quarterbit.torch import CompactEFTAdam
# Drop-in replacement for torch.optim.Adam
optimizer = CompactEFTAdam(model.parameters(), lr=1e-3)
# Train as usual
for batch in dataloader:
loss = model(batch)
loss.backward()
optimizer.step()
optimizer.zero_grad()
Why QuarterBit?
1. Precision That Matters
After 500K training steps, standard FP32 loses 100% of tiny gradient updates. QuarterBit's EFT arithmetic preserves every bit.
2. Memory Efficiency
Train larger models on the same GPU. CompactEFTAdam uses compressed FP16+FP4 storage, saving 17-42% memory.
3. Faster Convergence
Better precision = faster convergence. Reach your target loss in 34% fewer steps.
4. Drop-In Replacement
No code changes needed. Just swap your optimizer.
Benchmarks
See our Kaggle notebook for full benchmarks on GPT-2.
Requirements
- Python 3.8+
- PyTorch 2.0+
- NVIDIA GPU with CUDA support
Pricing
| Tier | Price | Use Case |
|---|---|---|
| Free | $0 | Personal, research, evaluation (<10 GPU-hrs/mo) |
| Pro | $299/mo | Commercial use, up to 10 GPUs |
| Team | $2,499/mo | Up to 100 GPUs, priority support |
| Enterprise | Custom | Unlimited GPUs, custom SLA |
See quarterbit.dev/pricing for details.
License
Proprietary - see LICENSE for details. Free tier available for non-commercial use.
Links
- Website: quarterbit.dev
- GitHub: github.com/DigitalMax321/quarterbit
- Email: info@quarterbit.dev
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 Distributions
Built Distributions
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 quarterbit-2.0.1-py3-none-any.whl.
File metadata
- Download URL: quarterbit-2.0.1-py3-none-any.whl
- Upload date:
- Size: 1.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
683c1821ca4493990deea5b333d2800d8238b040e6b744329b8ea5d312f71f58
|
|
| MD5 |
8be13e3f39d6575e19ecabf742ccacb8
|
|
| BLAKE2b-256 |
cb01a9f46eabd38341b030f0eac663f6634e57a8ced21dbd4ef90dea8080ea4f
|
File details
Details for the file quarterbit-2.0.1-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: quarterbit-2.0.1-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4707df5bd29bf84388d09a1e64b924ca68d135e69a0959a8fea9a92ef55a1d9e
|
|
| MD5 |
aec03caba104dd2e06494b63e48ba4c8
|
|
| BLAKE2b-256 |
803ce8ecd71949233c19d5b017e355aa0ac299220bbd3bcf1edd4f4742310ce6
|