PyRank
  • Search
  • PyPI
  • GitHub
  • Insights
  • Compare
  • Advisories
  • Ecosystem
  • About

Memory Optimization Python Packages

Python packages with the GitHub topic memory-optimization. Sorted by monthly downloads, with stars and forks.
szibis
mlx-flash

Run AI models too large for your Mac's memory — at near-full speed. Intelligent expert caching, speculative execution, and 15+ research techniques for MoE inference on Apple Silicon.

2K 13 0
IonDen
mlx-train-perf

Fused, logit-free linear-cross-entropy loss, RAM-fit planner, and benchmark harness for MLX fine-tuning on Apple Silicon

2K 5 1
hareramray
block-streamer

Stream PyTorch model blocks from NVMe or pinned CPU memory with a bounded GPU residency budget. LoRA-finetune models far larger than host RAM on one GPU - Qwen3-VL-32B and gpt-oss-120b train in under 6 GB of VRAM.

997 0 0
IonDen
mlx-dfloat

Run DFloat11 losslessly compressed BF16 checkpoints on Apple Silicon with MLX and a Metal decode kernel; today that runs FLUX.1 on a 32 GB Mac with weights about 30% smaller

603 1 0
arun-nemani
dfreduce

Automatically reduce the memory size of any pandas dataframe based on downcasting bit types efficiently

349 4 0
luiz826
diet-pandas

Automated memory optimization for Pandas DataFrames. Reduces memory by 50-80% and loads CSV 5-10x faster. Drop-in replacement that returns standard DataFrames - works with sklearn, matplotlib, and all your favorite libraries. Safe, fast, and zero refactoring required.

297 3 0
aviatorlf
foldpipe

Bounded-memory asynchronous streaming for native PyTorch/PyG molecular-data shards, with remote prefetch from Hugging Face and Google Drive.

260 0 0
wjddusrb03
langchain-turboquant

LangChain VectorStore with TurboQuant compression (ICLR 2026) - 6x memory reduction, training-free, no GPU required. The first LangChain integration for Google Research's TurboQuant algorithm.

226 1 2
ultralytics
ultralytics-autoimport

Lightweight Python lazy imports that defer module loading to reduce startup time and initial memory use.

185 74 4
AlphaWaveSystems
tqai

TurboQuant KV cache compression for local LLM inference — 80% memory savings, near-zero quality loss on 8B+ models. PyTorch + MLX (Apple Silicon). Based on arXiv:2504.19874 (Google Research, ICLR 2026).

174 0 0
AlcAI-Haven
fastflash-attention

Drop-in exact bf16 flash-attention for CUDA with a deterministic backward, tuned for Blackwell (sm_120 / RTX 5090).

133 2 0
btwael
superstring

A fast and memory-optimized string library for heavy-text manipulation in Python

76 251 12
arpitsinghgautam
sysplug

GPU-aware hyperparameter advisor: predict memory & throughput, then get an OOM-safe batch size, LR, precision & parallelism

60 1 0
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology