Skip to main content

Precision optimizer for PyTorch - 1,000,000x more accurate than FP32

Reason this release was yanked:

leak

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

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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

quarterbit-0.1.7-cp312-cp312-manylinux_2_17_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

quarterbit-0.1.7-cp311-cp311-win_amd64.whl (735.2 kB view details)

Uploaded CPython 3.11Windows x86-64

File details

Details for the file quarterbit-0.1.7-cp312-cp312-manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for quarterbit-0.1.7-cp312-cp312-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 ed42c05abb10aa4cdc745a6c817978e89353e9d44d4a926e8beb5236d9d31fed
MD5 fc5673ac86b35fbe199ec392a216a331
BLAKE2b-256 99b1fe4fb90cb6a4844b63c1e57809bd02562694ef2b95bc5339c966f8e82687

See more details on using hashes here.

File details

Details for the file quarterbit-0.1.7-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: quarterbit-0.1.7-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 735.2 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for quarterbit-0.1.7-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 102257e32dbf48ff308b623445aed6acee005dafe71b07d0220525661f589b18
MD5 baa0fd113dc823399bb7036c032bbf30
BLAKE2b-256 ea9370c945b6bccf04fc22164f6c89fca9d419d4074e70c569ff1b4d9a90a8d2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page