getGpuLayers

public final int getGpuLayers()

Model layers to offload to GPU; 0 is pure CPU. The default value is 99, which offloads all available layers. The GPU is used through Metal on macOS, Direct3D 12 on Windows, and Vulkan on Linux, or CUDA on Linux x64 with an NVIDIA GPU.

Return

The value of the GpuLayers property.