$npx skillfedfor your agent

k-diffusion

Karras et al. (2022) diffusion models for PyTorch

With conditionsPyPI Artificial IntelligenceReleased Dec 2023120.1K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — k_diffusion-0.1.1.post1-py3-none-any.whl
v0.1.1.post1 · released 2023-12-07 · 17 runtime deps: accelerate, clean-fid, clip-anytorch, dctorch, einops, jsonmerge, kornia, Pillow

Yes, if you are actively researching diffusion models or need a flexible PyTorch-native training framework with advanced sampling algorithms. The aging maintenance status (no releases since 2023-12-07) and substantial dependency footprint make it less suitable for production systems or lightweight prototyping. No known security vulnerabilities. Best suited for GPU-equipped research environments.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires torch and torchvision; GPU strongly recommended for practical use.
  • Full training scripts require repository clone, not available via PyPI install alone.
  • Low install friction with a pure-Python wheel, but 17 runtime dependencies including torch, torchvision, and accelerate create a substantial environment footprint.

License · maintenance · safety

MIT (permissive) — MIT license is permissive, allowing commercial and private use with minimal restrictions beyond attribution.

last release 2023-12-07 (981 days) · last repo commit 2026-02-12 · 2,600 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 120,076 downloads/mo, #12,043 on PyPI

Verify before relying

pip install k-diffusion

import k_diffusion
# For full training/inference scripts, clone the repository and run: pip install -e .
  • Whether the package's transformer diffusion enhancements are production-ready or experimental
  • Current state of latent diffusion support (listed as 'To do' in the description)
  • Compatibility with recent PyTorch and torchvision versions given the aging maintenance status
Same gist for agents: .md · .json

What it is and what it does

k-diffusion is a research-oriented PyTorch library that implements the diffusion model design space from Karras et al. (2022). It provides training and sampling infrastructure for diffusion-based generative models, with particular emphasis on improved sampling algorithms like DPM-Solver and support for transformer-based architectures. The library includes wrappers to use models from other frameworks with its own samplers, plus features like CLIP-guided sampling, FID and KID evaluation during training, and log-likelihood calculation.

The package is designed primarily for research and experimentation rather than production deployment. Installation via PyPI gives you the library code for use as a dependency, while full training and inference scripts require cloning the repository. The 17 runtime dependencies—including torch, torchvision, accelerate, and various image and math libraries—mean this is a heavyweight addition to any environment, intended for GPU-based machine learning workflows.

Use it for

  • Train diffusion models on custom datasets with multi-GPU support via accelerate
  • Experiment with transformer-based diffusion architectures as an alternative to convolutional designs
  • Sample from diffusion models using DPM-Solver with adaptive step control for quality at low step counts
  • Perform CLIP-guided generation from unconditional diffusion models
  • Evaluate model quality during training using FID and KID metrics
  • Wrap and sample from models trained with other frameworks using k-diffusion's samplers

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you are actively researching diffusion models or need a flexible PyTorch-native training framework with advanced sampling algorithms.

The aging maintenance status (no releases since 2023-12-07) and substantial dependency footprint make it less suitable for production systems or lightweight prototyping. No known security vulnerabilities. Best suited for GPU-equipped research environments.

Install

k-diffusion on PyPI

Before you install

Low install friction with a pure-Python wheel, but 17 runtime dependencies including torch, torchvision, and accelerate create a substantial environment footprint. Maintenance status is aging—last release was 2023-12-07, though the repository remains unarchived.

Requires torch and torchvision; GPU strongly recommended for practical use. Full training scripts require repository clone, not available via PyPI install alone.

License in practice

MIT license is permissive, allowing commercial and private use with minimal restrictions beyond attribution.

Quickstart

pip install k-diffusion

import k_diffusion
# For full training/inference scripts, clone the repository and run: pip install -e .

Verify before relying

  • Whether the package's transformer diffusion enhancements are production-ready or experimental
  • Current state of latent diffusion support (listed as 'To do' in the description)
  • Compatibility with recent PyTorch and torchvision versions given the aging maintenance status

Package facts

LicenseMIT permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependencies
17 packages
accelerateclean-fidclip-anytorchdctorcheinopsjsonmergekorniaPillowsafetensorsscikit-imagescipytorchtorchdiffeqtorchsdetorchvisiontqdmwandb
MaintenanceAging 981 days since the last release
Last repo commit
First released
Downloads120,076 / month, #12,043 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14

Evidence: k_diffusion-0.1.1.post1-py3-none-any.whl

Tags

Capabilities
diffusion model pytorchgenerative model trainingkarras diffusion implementationdpm-solver samplingtransformer diffusion modelsclip guided samplingdiffusion model library
Topics
diffusion-modelsgenerative-airesearch

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “karras diffusion implementation”

  • k-diffusionk-diffusion is a PyTorch library implementing diffusion-based…
  • diffusersDiffusers provides pretrained diffusion models and pipelines for…
  • dipyDIPY is a Python library for analyzing diffusion MRI data, providing…

Give your agent the search over MCP, or paste the wish link into any chat.

More Artificial Intelligence packages

litellm With conditions
PyPI · Artificial Intelligence · released Aug 2026

LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.

Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.

MITcompiled wheel
682.8Mdownloads / mo
huggingface-hub Worth it
PyPI · Artificial Intelligence · released Aug 2026

Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.

Install it if you work with Hugging Face Hub models or datasets.

Apache-2.0pure Python · 3.10.0+
442.4Mdownloads / mo
langchain Worth it
PyPI · Python Modules · released Aug 2026

LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.

MITpure Python
315.4Mdownloads / mo
hf-xet With conditions
PyPI · Artificial Intelligence · released Aug 2026

hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.

Apache-2.0compiled wheel · 3.8+
258.4Mdownloads / mo
tokenizers Worth it
PyPI · Artificial Intelligence · released Apr 2026

Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.

Apache-2.0compiled wheel · 3.10+
222.9Mdownloads / mo
transformers Worth it
PyPI · Artificial Intelligence · released Aug 2026

Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.

Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.

permissive licensepure Python · 3.10.0+
186.6Mdownloads / mo

See also diffusers · tomesd · lycoris-lora · color-matcher · clean-fid · f5-tts · pytorchcv · torchsde · segmentation-models-pytorch · open-clip-torch