qmetrics.net

joblib

Python parallel execution and disk memoization utilities

joblib screenshot

A Python package for caching function results on disk and running embarrassingly parallel workloads with minimal code changes.

Overview

Joblib helps Python programs run faster by memoizing expensive function calls to disk and by parallelizing loops across processes or threads. It is designed so application logic and control flow stay familiar while caching and parallelism are added through provided APIs.

The Memory interface stores compressed pickles of return values and supports efficient serialization of NumPy arrays when NumPy is present, without requiring NumPy as a hard dependency. Parallel coordinates worker pools using a vendored loky backend and optional integrations such as Dask for distributed backends.

Optional extras include faster compression via python-lz4 and psutil to reduce memory leaks in worker processes. Documentation covers parallel backends, custom backends, serialization behavior, and connection pooling patterns for long-running jobs.

Install is via pip; the package supports current Python 3 releases noted in the project materials and is widely used as infrastructure beneath scientific and machine-learning stacks.

Key features

  • Disk-based function memoization
  • Embarrassingly parallel Parallel helper
  • NumPy-aware efficient serialization
  • Vendored loky process backend
  • Optional Dask distributed backend
  • Optional lz4 compression
  • Optional psutil memory safeguards
  • Minimal changes to existing code

Use cases

  • Cache heavy Python function outputs
  • Parallelize parameter sweeps
  • Speed up sklearn-style pipelines
  • Persist intermediate scientific results
  • Scale loops across CPU cores

Tags

Similar software

scikit-learn

Python toolkit for classical machine learning

scikit-learn provides algorithms and utilities for classification, regression, clustering, and model selection in Python. It builds on NumPy and SciPy.

  • Classification and regression estimators
  • Clustering and dimensionality reduction
  • Model selection and cross-validation
PythonDetails →
★ 68.5k⟳ todayBSD-3-Clause

whisper.cpp

Portable C/C++ inference for Whisper speech recognition

Whisper.cpp runs OpenAI Whisper ASR with a dependency-light C/C++ core and CLI tools. It targets CPUs and many GPU and NPU accelerators across common operating systems.

  • Plain C/C++ Whisper implementation
  • Integer quantization for smaller models
  • Metal, CUDA, Vulkan, and OpenVINO backends
C++DockerDetails →
★ 55.9k⟳ 3 days agoMIT

AirLLM

Layer-streaming inference for huge models on small GPUs

AirLLM loads one transformer layer at a time so very large language models can infer or fine-tune on GPUs with only a few gigabytes of VRAM.

  • Single-layer GPU residency
  • AutoModel for many HF architectures
  • Optional 4-bit or 8-bit compression
Jupyter NotebookDetails →
★ 43.9k⟳ todayApache-2.0

DeepSpeed

PyTorch distributed training and inference optimizations

DeepSpeed is a Python library that speeds large-model training and inference with ZeRO memory optimizations, parallelism modes, and MoE support. Install via pip with JIT-built CUDA ops.

  • ZeRO and ZeRO-Infinity memory sharding
  • 3D and tensor parallelism options
  • Mixture-of-experts training support
PythonWindowsDetails →
★ 43.4k⟳ yesterdayApache-2.0

Faiss

Library for dense vector similarity search and clustering

Indexes and searches large sets of embedding vectors with CPU or GPU backends. Python and C++ APIs support exact and approximate nearest-neighbor methods.

  • Dense vector indexes
  • L2 and inner product search
  • Approximate and exact methods
C++Details →
★ 42k⟳ todayMIT
Open Source Alternative to:Pinecone

Colossal-AI

Distributed deep learning parallelization toolkit

Colossal-AI is a PyTorch-oriented toolkit for training and inferencing large models with data, pipeline, and tensor parallelism. It targets cheaper, faster large-scale AI on clusters or single GPUs.

  • Data pipeline tensor parallelism
  • Heterogeneous memory manager
  • Config-file driven parallelism
PythonLinux, CLIDetails →
★ 41.4k⟳ 2 days agoApache-2.0