> ## Documentation Index
> Fetch the complete documentation index at: https://docs.coreweave.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ResourceOptions

> サンドボックスの CPU、メモリ、GPU のリソース設定。

ソース: [src/cwsandbox/\_types.py:1151](https://github.com/coreweave/cwsandbox-client/blob/v1.14.2/src/cwsandbox/_types.py#L1151)

```python theme={"system"}
class ResourceOptions(*, requests: dict[str, str] | None = None, limits: dict[str, str] | None = None, gpu: dict[str, Any] | None = None)
```

サンドボックスの CPU、メモリ、GPU のリソース設定です。

Burstable QoS の Pod に対して、リクエストと制限の個別設定をサポートします。
GPU のオーバーコミットはバックエンドで
サポートされないため、GPU は独立した最上位フィールドです。

浅い不変性: dict フィールドはハッシュ化を妨げますが、
NetworkOptions と Secret で使用される凍結 dataclass パターンを維持します。

**属性**

* `requests` (`dict[str, str] | None`) : CPU/メモリのリソースリクエスト (例: \{"cpu": "1", "memory": "256Mi"}) 。
* `limits` (`dict[str, str] | None`) : CPU/メモリのリソース制限 (例: \{"cpu": "8", "memory": "2Gi"}) 。
* `gpu` (`dict[str, Any] | None`) : GPU の設定 (例: \{"count": 1, "type": "A100"}) 。
