Port vmap over batched torch.dot products to Modal
Background
This workflow applies torch.vmap(torch.dot) to two (B, D) tensors to produce per-row dot products, and compares to the reference (a * b).sum(dim=1) on GPU. Inputs: B, D, seed.
See /app/workspace/solution.py for the reference implementation.
Your task
Port this workflow to Modal. The compute should run inside a remote container with a GPU accelerator available.
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.
Required output file
/app/solution/modal_app.py
Required interface
Define a module-level app and a module-level entrypoint named run_case.
The entrypoint returns the same result as run_workflow(case).