> ## 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에 대한 리소스 설정.

Source: [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 파드에 대해 별도의 requests와 limits를 지원합니다.
GPU는 별도의 최상위 필드입니다. GPU overcommit은 백엔드에서 지원되지 않기 때문입니다.

Shallow immutability: dict 필드는 해싱을 방지하지만 NetworkOptions와 Secret에서 사용하는 frozen dataclass 패턴을 유지합니다.

**속성**

* `requests` (`dict[str, str] | None`) : CPU/메모리 리소스 요청 (예: \{"cpu": "1", "memory": "256Mi"}).
* `limits` (`dict[str, str] | None`) : CPU/메모리 리소스 limits (예: \{"cpu": "8", "memory": "2Gi"}).
* `gpu` (`dict[str, Any] | None`) : GPU 설정 (예: \{"count": 1, "type": "A100"}).
