$npx skillfedfor your agent

torchcde

Differentiable controlled differential equation solvers for PyTorch with GPU support and memory-efficient adjoint backpropagation.

With conditionsPyPI Artificial IntelligenceReleased Oct 202184.4K downloads / moApache-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — torchcde-0.2.5-py3-none-any.whl
v0.2.5 · released 2021-10-17 · Python ~=3.6 · 3 runtime deps: torch, torchdiffeq, torchsde

Yes, if you are working on irregular time-series modeling and want a principled continuous-time approach. The library is well-designed and permissively licensed. However, proceed with caution: the project is aging (last release October 2021, no recent commits), so compatibility with the latest PyTorch versions and long-term maintenance are uncertain. Verify that it works with your current environment before committing to production use.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires PyTorch >=1.7; Python ~=3.6 or later.
  • Low friction installation as a pure Python wheel.
  • Maintenance is aging—last release was October 2021 and the repository shows no recent commits, though it remains unarchived with 487 stars.

License · maintenance · safety

Apache-2.0 (permissive) — Licensed under Apache-2.0 (permissive), allowing commercial and private use with minimal restrictions. You may use, modify, and distribute the code provided you include a copy of the license and state significant changes.

last release 2021-10-17 (1762 days) · last repo commit 2025-09-04 · 487 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 84,351 downloads/mo, #14,004 on PyPI

Verify before relying

pip install torchcde

import torch
import torchcde

# Interpolate discrete time series data
coeffs = torchcde.hermite_cubic_coefficients_with_backward_differences(x)
X = torchcde.CubicSpline(coeffs)

# Define CDE dynamics and integrate
z = torchcde.cdeint(X=X, func=func, z0=z0, t=X.interval)
  • Whether the aging maintenance status (last release October 2021, no recent commits) affects compatibility with current PyTorch versions or introduces unpatched issues.
  • Performance characteristics and memory overhead compared to alternative time-series models for specific use cases.
Same gist for agents: .md · .json

What it is and what it does

torchcde is a PyTorch library that implements solvers for controlled differential equations (CDEs), a mathematical framework for modeling systems where the evolution of state depends on an external control signal. It is designed specifically for neural network applications, enabling the construction of Neural Controlled Differential Equation models—continuous-time recurrent architectures that excel at handling irregular, variable-length time series with missing data.

The library provides two main components: integrators (the `cdeint` function) that solve the CDE system by computing how state evolves under a control signal, and interpolation schemes that construct smooth continuous controls from discrete, irregularly-sampled data. It supports both standard backpropagation through the solver and memory-efficient adjoint-method backpropagation, with configurable backends (torchdiffeq or torchsde) to leverage different solver implementations. GPU acceleration is built in through PyTorch.

Use it for

  • Build time-series classifiers that handle irregular sampling, variable lengths, and missing values without preprocessing.
  • Model financial or sensor data where observations arrive at non-uniform time intervals.
  • Implement continuous-time recurrent models as an alternative to LSTMs or Transformers for sequential prediction.
  • Train state-space models where the dynamics are controlled by external signals or learned functions.
  • Perform adjoint-based training on large time-series datasets where memory efficiency is critical.

Worth the install?

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

With conditions

Yes, if you are working on irregular time-series modeling and want a principled continuous-time approach.

The library is well-designed and permissively licensed. However, proceed with caution: the project is aging (last release October 2021, no recent commits), so compatibility with the latest PyTorch versions and long-term maintenance are uncertain. Verify that it works with your current environment before committing to production use.

Install

torchcde on PyPI

Before you install

Low friction installation as a pure Python wheel. Maintenance is aging—last release was October 2021 and the repository shows no recent commits, though it remains unarchived with 487 stars. Depends on torch, torchdiffeq, and torchsde, all of which are established libraries.

Requires PyTorch >=1.7; Python ~=3.6 or later.

License in practice

Licensed under Apache-2.0 (permissive), allowing commercial and private use with minimal restrictions. You may use, modify, and distribute the code provided you include a copy of the license and state significant changes.

Quickstart

pip install torchcde

import torch
import torchcde

# Interpolate discrete time series data
coeffs = torchcde.hermite_cubic_coefficients_with_backward_differences(x)
X = torchcde.CubicSpline(coeffs)

# Define CDE dynamics and integrate
z = torchcde.cdeint(X=X, func=func, z0=z0, t=X.interval)

Verify before relying

  • Whether the aging maintenance status (last release October 2021, no recent commits) affects compatibility with current PyTorch versions or introduces unpatched issues.
  • Performance characteristics and memory overhead compared to alternative time-series models for specific use cases.

Package facts

LicenseApache-2.0 permissive
Python supportSupports the current Python release ~=3.6
Install frictionLow. Pure-Python wheel
Runtime dependencies
3 packages
torchtorchdiffeqtorchsde
MaintenanceAging 1,762 days since the last release
Last repo commit
First released
Downloads84,351 / month, #14,004 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaIntended Audience :: DevelopersIntended Audience :: Financial and Insurance IndustryIntended Audience :: Information TechnologyIntended Audience :: Science/ResearchLicense :: OSI Approved :: Apache Software LicenseNatural Language :: EnglishOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: UnixProgramming Language :: Python :: 3Programming Language :: Python :: Implementation :: CPythonTopic :: Scientific/Engineering :: Artificial IntelligenceTopic :: Scientific/Engineering :: Information AnalysisTopic :: Scientific/Engineering :: Mathematics

Evidence: torchcde-0.2.5-py3-none-any.whl

Tags

Capabilities
neural controlled differential equationsCDE solvers PyTorchirregular time series modelscontinuous time RNNdifferentiable ODE solvers GPUtime series with missing dataadjoint backpropagation neural networks
Topics
time-series-modelingdifferential-equationsgpu-accelerated

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 › “CDE solvers PyTorch”

  • torchcdeProvides differentiable GPU-capable solvers for controlled…
  • diffraxDiffrax provides numerical solvers for ordinary, stochastic, and…
  • nvidia-cusolver-cu12Provides CUDA solver native runtime libraries for GPU-accelerated…

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 diffrax · torchdiffeq · torchsde · torch · findiff · nvidia-cusolver · nvidia-cusparse · nvidia-cusolver-cu12 · time-aware-imputer · nvidia-cusparse-cu12

Further reading