Skip to content
DocsTry Aspire
DocsTry

OllamaResource.withGPUSupport

Method
📦 CommunityToolkit.Aspire.Hosting.Ollama v13.4.0
interface OllamaResource {
// ... omitted for brevity
withGPUSupport(vendor?: OllamaGpuVendor): OllamaResource;
}

Signature

methodwithGPUSupportbuilder
Adds GPU support to the Ollama container.
withGPUSupport(vendor?: OllamaGpuVendor): OllamaResource
vendorOllamaGpuVendoroptional= Nvidia
OllamaResource

Defined on

This method is defined on the following type: