OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Developer Tools & SDKs

Torchode

torchode is a Python library of single-step ordinary differential equation solvers for PyTorch, designed to solve batches with per-sample adaptive step sizes and to work with torch.compile.

Independent OpenViST project profile, based on linked sources.

Torchode — Batched ODE problems where a single shared step schedule would be a poor fit
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use torchode when an ODE-solving component is needed inside a PyTorch workflow, particularly when batch members have different trajectory difficulty or step-size needs.

Who it is for

  • PyTorch developers building neural ODE models or other differentiable initial-value problem workflows.
  • Researchers and engineers solving batches of trajectories with different numerical step requirements.

Documented uses

  • Solve an initial-value problem using methods such as Dopri5 or Tsit5.
  • Let samples in one batch use different adaptive step sizes.
  • Use the demonstrated AutoDiffAdjoint solver in a differentiable workflow.
  • Compile the solver's solve method with torch.compile.
Before you choose

Requirements & limits

The repository is public and MIT-licensed. The README gives a PyPI installation command and an editable-install route from a Git checkout.

  • Its batch-parallel approach allows individual samples to take different step sizes.
  • The README documents compatibility with torch.compile and demonstrates compiling solver.solve.
  • The usage example uses AutoDiffAdjoint, Dopri5 and IntegralController for a differentiable initial-value problem.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Set up an editable development checkout

Install the repository in editable mode to work with a development version of torchode.

Before you start

  • Git and pip.

Steps

  1. Clone https://github.com/martenlienen/torchode.

  2. Change into the torchode directory.

  3. Run the command below.

    Documented command
    pip install -e .

Expected outcome

The cloned repository is installed in editable mode.

Guide limitations

  • The instructions cover installation, not running tests or validating a solver workflow.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
21 November 2026
Original website title
martenlienen/torchode · Official homepage title · retained in its source language