gensbi#
GenSBI: A library for Simulation-Based Inference (SBI) using Optimal Transport Flow Matching and Diffusion models in JAX.
Provides tools for probabilistic modeling, simulation, and training of generative models, including:
Flow Matching techniques
Diffusion models (EDM, score matching)
Transformer-based models (Flux1, Simformer)
See the documentation for details and usage examples.
Submodules#
Attributes#
Functions#
Let grain read its worker-profiling absl flag in a non-absl process. |
Package Contents#
- gensbi._guard_grain_profiler_flag()#
Let grain read its worker-profiling absl flag in a non-absl process.
grain 0.2.18 (
grain/_src/core/profiler.py) reads--grain_enable_multiprocess_worker_profilinginsidemp_prefetchwheneverjaxlib_extension_version >= 448(jax >= 0.11). absl raisesUnparsedFlagAccessErroron that read in any process that never calledabsl.app.run()– scripts, notebooks, pytest – so the data pipeline indocs/basics/training.mddies on its first batch. Marking the single flag as present makes absl return its default without touching the global “parsed” state; it is the same trick grain uses for its own debug flags. grain’s main branch already guards the read; this is a no-op once that ships, and a no-op if the flag is absent or flags were really parsed.- Return type:
None