Autodesk/XLB
XLB: Accelerated Lattice Boltzmann (XLB) for Physics-based ML
What it solves
XLB provides a way to perform high-performance fluid dynamics simulations that are fully differentiable. This allows researchers to integrate physics-based simulations directly into machine learning workflows, enabling tasks like gradient-based optimization and deep learning-driven simulation improvements.
How it works
It uses the Lattice Boltzmann Method (LBM), a mathematical approach for simulating fluid flow. XLB is built in Python and supports three backends—JAX, NVIDIA Warp, and Neon—to handle computations across different hardware, including CPUs, single GPUs, multi-GPU systems, and TPUs. Because it is differentiable, the library can calculate how changes in simulation parameters affect the final fluid behavior, which is essential for training machine learning models on physical data.
Who it’s for
XLB is designed for researchers and engineers working at the intersection of computational fluid dynamics (CFD) and machine learning. It is particularly useful for those who need to scale large simulations across distributed GPU clusters or who want to use differentiable physics to optimize designs and fluid behaviors.
Highlights
- Multi-Backend Support: Runs on JAX, NVIDIA Warp, and Neon, allowing for flexible scaling from single-GPU setups to large-scale distributed systems.
- Differentiable Kernels: Enables the use of LBM simulations within deep learning pipelines for gradient-based optimization.
- Grid Refinement: Supports multi-resolution simulations using nested grids to focus computational power where it is needed most.
- JAX Ecosystem Integration: Works seamlessly with standard machine learning libraries like Flax, Haiku, and Optax.
- Hardware Versatility: Executes on CPUs, GPUs, and TPUs, with support for in-situ GPU rendering to visualize results without needing to save large files to disk.
Related
- Project
- Project
- Project
- Project
- Project