The file original_workflow.py in your workspace contains a Python function run(case) implementing a scipy/numpy reference workflow on CPU.
Given seed, n_points, n_queries, d, builds an RBF interpolator from random scattered points via scipy.interpolate.RBFInterpolator and evaluates at random query points. Returns mean, std, and max-abs of evaluated values.
Your task
Port this workflow to Modal. Write your solution to /app/solution/modal_app.py. The file must:
Define a module-level app object.
Define run_case as a callable that accepts a single case dict and returns the same semantic result as the original run(case).
Install the necessary tensor/numerical dependencies in the remote environment.
Capability contracts
Accelerator resource: The workload runs as a tiny tensor computation that benefits from an accelerator. Your Modal port must request a GPU resource on the function (or class) that executes the numerical core. The original scipy reference is CPU-only; your solution should execute the equivalent computation on a GPU device while matching the reference output within the verifier's numerical tolerance.
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).