setGpuLayers

public final void setGpuLayers(int value)

Model layers to offload to GPU; 0 is pure CPU. The default value is 99, which offloads all available layers. Metal is built in on macOS; the CUDA backend is runtime-provisioned on Linux x64.

Parameters

value

The value to set for the GpuLayers property.