Watch Aspire live streamsDocsTry Aspire

OllamaResource.withGPUSupport

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

Signature

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

Defined on

This method is defined on the following type: