Munaβs signature feature is allowing developers to choose where inference runs, per-request.Documentation Index
Fetch the complete documentation index at: https://docs.muna.ai/llms.txt
Use this file to discover all available pages before exploring further.
Running with Adaptive Placement
Muna can adaptively search for the best hardware to run models, depending on your cost, latency, and throughput requirements. Use themuna.predictions.create method, and specify your constraints in natural language:
Specifying Placement Constraints
We strongly recommend anchoring your placement constraints around these three canonical intents:| Intent | Examples |
|---|---|
| Cost | cheapest, lowest cost in the cloud, under $0.02 |
| Latency | fastest, minimize latency, lowest latency that runs locally |
| Throughput | highest throughput, at least 100 requests per second |
Running on Datacenter GPUs
Use themuna.predictions.create method, and specify a remote_* acceleration to run inference on a datacenter GPU:
Supported Datacenter GPUs
Below are the currently supported cloud GPUs:| Acceleration | Notes |
|---|---|
remote_auto | Run inference on the ideal datacenter hardware. |
remote_cpu | Run inference on AMD CPU servers. |
remote_a10 | Run inference on an Nvidia A10 GPU. |
remote_a100 | Run inference on an Nvidia A100 GPU. |
remote_h100 | Run inference on an Nvidia H100 GPU. |
remote_b200 | Run inference on an Nvidia B200 GPU. |
remote_mi350x | Run inference on an AMD MI350X GPU. Coming soon. |
remote_mi355x | Run inference on an AMD MI355X GPU. Coming soon. |
remote_qaic100 | Run inference on a Qualcomm Cloud AI 100 accelerator. Coming soon. |
Running Locally
Use themuna.predictions.create method to run inference locally:
Supported Local Processors
Below are the currently supported local processors:| Acceleration | Notes |
|---|---|
local_cpu | Use the CPU to accelerate predictions. This is always enabled. |
local_gpu | Use the GPU to accelerate predictions. |
local_npu | Use the neural processor to accelerate predictions. |
Muna currently does not support multi-GPU local acceleration. This is planned for the future.
Specifying the Local GPU
Some Muna clients allow you to specify the acceleration device used to make predictions. Our clients expose this field as an untyped integer or pointer. The underlying type depends on the current operating system:| OS | Device type | Notes |
|---|---|---|
| Android | - | Currently unsupported. |
| iOS | id<MTLDevice> | Metal device. |
| Linux | int* | Pointer to CUDA device ID. |
| macOS | id<MTLDevice> | Metal device. |
| visionOS | id<MTLDevice> | Metal device. |
| Web | GPUDevice | WebGPU device. |
| Windows | ID3D12Device* | DirectX 12 device. |
The prediction
device is merely a hint. Setting a device does not guarantee that all
or any operation in the prediction function will actually use that acceleration device.You should absolutely (absolutely) never ever do this unless you know what the hell youβre doing.