# `HfHub.InferenceEndpoints.ComputeConfig`
[🔗](https://github.com/North-Shore-AI/hf_hub_ex/blob/v0.3.1/lib/hf_hub/inference_endpoints/compute_config.ex#L1)

Compute configuration for an inference endpoint.

# `accelerator`

```elixir
@type accelerator() :: :cpu | :gpu
```

# `t`

```elixir
@type t() :: %HfHub.InferenceEndpoints.ComputeConfig{
  accelerator: accelerator() | nil,
  instance_size: String.t() | nil,
  instance_type: String.t() | nil,
  scaling: HfHub.InferenceEndpoints.ScalingConfig.t() | nil
}
```

# `from_response`

```elixir
@spec from_response(map()) :: t()
```

Creates a ComputeConfig struct from an API response.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
