Compute the 1F1B pipeline bubble fraction for given PP degree and microbatch count.
The reference implementation lives in your workspace. Inspect it to understand the
deterministic original behavior.
Required output
Create /app/solution/modal_app.py defining a module-level app and a module-level
run_case orchestrator. Given a case payload, it should return the same semantic
result as the reference workflow.
Capability contract
Implement run_case as a local orchestrator: a plain Python function (not itself a Modal Function) that the harness calls directly and that dispatches work to one or more Modal Functions via .remote(...), .map(...), or .starmap(...).