We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f4f7ba7 commit 3095bf0Copy full SHA for 3095bf0
Runtime/LLM.cs
@@ -444,7 +444,7 @@ protected virtual string GetLlamaccpArguments()
444
if (embeddingsOnly) arguments += " --embedding";
445
if (numThreadsToUse > 0) arguments += $" -t {numThreadsToUse}";
446
arguments += loraArgument;
447
- arguments += $" -ngl {numGPULayers}";
+ if (numGPULayers > 0) arguments += $" -ngl {numGPULayers}";
448
if (LLMUnitySetup.FullLlamaLib && flashAttention) arguments += $" --flash-attn";
449
if (remote)
450
{
0 commit comments