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.
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.
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
Clone
https://github.com/martenlienen/torchode.Change into the
torchodedirectory.Run the command below.
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.
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

