How a trial / grid-point axis is realised at JAX codegen time. The choice trades peak memory against throughput: vmap batches in parallel (fast, n_trials × working-set memory), lax_map runs sequentially via jax.lax.map (memory bounded by one trial), pmap shards across devices, auto picks vmap when the estimated batched memory fits and lax_map otherwise.
How trial-axis parallelism is realised at codegen time
Identifier and Mapping Information
Schema Source
from schema: https://w3id.org/tvbo
LinkML Source
name: ParallelModedescription:'How a trial / grid-point axis is realised at JAX codegen time. The choice trades peak memory against throughput: vmap batches in parallel (fast, n_trials × working-set memory), lax_map runs sequentially via ``jax.lax.map`` (memory bounded by one trial), pmap shards across devices, auto picks vmap when the estimated batched memory fits and lax_map otherwise.'from_schema: https://w3id.org/tvborank:1000permissible_values:auto:text: autodescription: Pick vmap when memory permits, lax_map otherwise.vmap:text: vmapdescription: Parallel batched execution (jax.vmap). Fast; high peak memory.lax_map:text: lax_mapdescription: Sequential execution via jax.lax.map. Slower; bounded memory.pmap:text: pmapdescription: Cross-device parallel execution (jax.pmap). For multi-GPU/TPU.