Enum: ParallelMode

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.

URI: tvbo:enum/ParallelMode

Permissible Values

Value Meaning Description
auto None Pick vmap when memory permits, lax_map otherwise
vmap None Parallel batched execution (jax
lax_map None Sequential execution via jax
pmap None Cross-device parallel execution (jax

Slots

Name Description
parallel_mode How trial-axis parallelism is realised at codegen time

Identifier and Mapping Information

Schema Source

  • from schema: https://w3id.org/tvbo

LinkML Source

name: ParallelMode
description: '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/tvbo
rank: 1000
permissible_values:
  auto:
    text: auto
    description: Pick vmap when memory permits, lax_map otherwise.
  vmap:
    text: vmap
    description: Parallel batched execution (jax.vmap). Fast; high peak memory.
  lax_map:
    text: lax_map
    description: Sequential execution via jax.lax.map. Slower; bounded memory.
  pmap:
    text: pmap
    description: Cross-device parallel execution (jax.pmap). For multi-GPU/TPU.