The file softmax_ops.py implements a numerically stable softmax over a list of logits using NumPy.
In LLM inference and training, softmax runs millions of times per step, and GPU parallelism
dramatically speeds it up even for small vectors.
Your Task
Port this to Modal so that run_case invokes a remote function that accepts a case dict with
key logits (a list of floats) and returns a list of probabilities computed by softmax.
The remote function should request GPU resources and perform the computation using a GPU-capable
math library.
Capability contract
Expose the workflow as a single Modal remote function: define run_case as an @app.function so the harness can invoke it with run_case.remote(case).
The solution must also use:
GPU.
Output file
Write your solution to /app/solution/modal_app.py. Define a module-level app and a run_case
remote function.