Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Runtime/LLM.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public class LLM : MonoBehaviour

/// <summary>Number of prompts that can be processed in parallel (-1 = auto-detect from clients)</summary>
[Tooltip("Number of prompts that can be processed in parallel (-1 = auto-detect from clients)")]
[LLM, SerializeField] private int _parallelPrompts = -1;
[LLM, SerializeField] private int _parallelPrompts = 1;

/// <summary>Size of the prompt context in tokens (0 = use model's default context size)</summary>
[Tooltip("Size of the prompt context in tokens (0 = use model's default context size)")]
Expand Down
5 changes: 4 additions & 1 deletion Samples~/ChatBot/Scene.unity
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ MonoBehaviour:
_SSLKey:
_numThreads: -1
_numGPULayers: 0
_parallelPrompts: -1
_parallelPrompts: 1
_contextSize: 8192
_batchSize: 512
_model:
Expand Down Expand Up @@ -1152,6 +1152,9 @@ MonoBehaviour:
ignoreEos: 0
save:
debugPrompt: 0
overflowStrategy: 1
overflowTargetRatio: 0.5
overflowSummarizePrompt:
_slot: -1
_systemPrompt: A chat between a curious human and an artificial intelligence assistant.
The assistant gives helpful, detailed, and polite answers to the human's questions.
Expand Down
5 changes: 4 additions & 1 deletion Samples~/FunctionCalling/Scene.unity
Original file line number Diff line number Diff line change
Expand Up @@ -738,6 +738,9 @@ MonoBehaviour:
ignoreEos: 0
save:
debugPrompt: 0
overflowStrategy: 1
overflowTargetRatio: 0.5
overflowSummarizePrompt:
_slot: -1
_systemPrompt: You are an AI assistant and your task is to answer multiple choice
questions
Expand Down Expand Up @@ -1455,7 +1458,7 @@ MonoBehaviour:
_SSLKey:
_numThreads: -1
_numGPULayers: 0
_parallelPrompts: -1
_parallelPrompts: 1
_contextSize: 8192
_batchSize: 512
_model:
Expand Down
7 changes: 5 additions & 2 deletions Samples~/KnowledgeBaseGame/Scene.unity
Original file line number Diff line number Diff line change
Expand Up @@ -2125,7 +2125,7 @@ MonoBehaviour:
_SSLKey:
_numThreads: -1
_numGPULayers: 0
_parallelPrompts: -1
_parallelPrompts: 1
_contextSize: 8192
_batchSize: 512
_model:
Expand Down Expand Up @@ -4377,6 +4377,9 @@ MonoBehaviour:
ignoreEos: 0
save:
debugPrompt: 0
overflowStrategy: 1
overflowTargetRatio: 0.5
overflowSummarizePrompt:
_slot: -1
_systemPrompt: A chat between a curious human and an artificial intelligence assistant.
The assistant gives helpful, detailed, and polite answers to the human's questions.
Expand Down Expand Up @@ -7556,7 +7559,7 @@ MonoBehaviour:
_SSLKey:
_numThreads: -1
_numGPULayers: 0
_parallelPrompts: -1
_parallelPrompts: 1
_contextSize: 8192
_batchSize: 512
_model:
Expand Down
5 changes: 4 additions & 1 deletion Samples~/MobileDemo/Scene.unity
Original file line number Diff line number Diff line change
Expand Up @@ -924,6 +924,9 @@ MonoBehaviour:
ignoreEos: 0
save:
debugPrompt: 0
overflowStrategy: 1
overflowTargetRatio: 0.5
overflowSummarizePrompt:
_slot: -1
_systemPrompt: A chat between a curious human and an artificial intelligence assistant.
The assistant gives helpful, detailed, and polite answers to the human's questions.
Expand Down Expand Up @@ -1599,7 +1602,7 @@ MonoBehaviour:
_SSLKey:
_numThreads: -1
_numGPULayers: 0
_parallelPrompts: -1
_parallelPrompts: 1
_contextSize: 8192
_batchSize: 512
_model:
Expand Down
8 changes: 7 additions & 1 deletion Samples~/MultipleCharacters/Scene.unity
Original file line number Diff line number Diff line change
Expand Up @@ -1003,6 +1003,9 @@ MonoBehaviour:
ignoreEos: 0
save:
debugPrompt: 0
overflowStrategy: 1
overflowTargetRatio: 0.5
overflowSummarizePrompt:
_slot: -1
_systemPrompt: A chat between a curious human and an artificial intelligence assistant
named Eve. The assistant gives helpful, detailed, and polite answers to the human's
Expand Down Expand Up @@ -1814,7 +1817,7 @@ MonoBehaviour:
_SSLKey:
_numThreads: -1
_numGPULayers: 0
_parallelPrompts: -1
_parallelPrompts: 2
_contextSize: 8192
_batchSize: 512
_model:
Expand Down Expand Up @@ -2542,6 +2545,9 @@ MonoBehaviour:
ignoreEos: 0
save:
debugPrompt: 0
overflowStrategy: 1
overflowTargetRatio: 0.5
overflowSummarizePrompt:
_slot: -1
_systemPrompt: A chat between a curious human and an artificial intelligence assistant
named Adam. The assistant gives helpful, detailed, and polite answers to the
Expand Down
5 changes: 4 additions & 1 deletion Samples~/RAG/RAGAndLLM_Scene.unity
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,9 @@ MonoBehaviour:
ignoreEos: 0
save:
debugPrompt: 0
overflowStrategy: 1
overflowTargetRatio: 0.5
overflowSummarizePrompt:
_slot: -1
_systemPrompt: 'You are an assistant that answers with phrases from Hamlet.

Expand Down Expand Up @@ -1313,7 +1316,7 @@ MonoBehaviour:
_SSLKey:
_numThreads: -1
_numGPULayers: 0
_parallelPrompts: -1
_parallelPrompts: 1
_contextSize: 8192
_batchSize: 512
_model:
Expand Down
5 changes: 4 additions & 1 deletion Samples~/SimpleInteraction/Scene.unity
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,9 @@ MonoBehaviour:
ignoreEos: 0
save:
debugPrompt: 0
overflowStrategy: 1
overflowTargetRatio: 0.5
overflowSummarizePrompt:
_slot: -1
_systemPrompt: A chat between a curious human and an artificial intelligence assistant.
The assistant gives helpful, detailed, and polite answers to the human's questions.
Expand Down Expand Up @@ -952,7 +955,7 @@ MonoBehaviour:
_SSLKey:
_numThreads: -1
_numGPULayers: 0
_parallelPrompts: -1
_parallelPrompts: 1
_contextSize: 8192
_batchSize: 512
_model:
Expand Down