This repository has been archived by the owner on Jan 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
139 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,27 @@ | ||
namespace LLamaStack.Core.Common | ||
| ||
namespace LLamaStack.Core.Common | ||
{ | ||
/// <summary> | ||
/// LLamaSharp executor type | ||
/// </summary> | ||
public enum ExecutorType | ||
{ | ||
|
||
/// <summary> | ||
/// The interactive executor, for more personal type chatbot interaction | ||
/// </summary> | ||
Interactive = 0, | ||
|
||
|
||
/// <summary> | ||
/// The instruct executor, good for instruction/response type interaction | ||
/// </summary> | ||
Instruct = 1, | ||
|
||
|
||
/// <summary> | ||
/// The stateless executor, holds no state or context during interaction | ||
/// </summary> | ||
Stateless = 2 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,30 @@ | ||
namespace LLamaStack.Core.Common | ||
{ | ||
/// <summary> | ||
/// The type of model load caching to use | ||
/// </summary> | ||
public enum ModelLoadType | ||
{ | ||
|
||
/// <summary> | ||
/// Only one model will be loaded into memory at a time, any other models will be unloaded before the new one is loaded | ||
/// </summary> | ||
Single = 0, | ||
|
||
/// <summary> | ||
/// Multiple models will be loaded into memory, ensure you use the ModelConfigs to split the hardware resources | ||
/// </summary> | ||
Multiple = 1, | ||
|
||
/// <summary> | ||
/// The first model in the appsettings.json list will be preloaded into memory at app startup | ||
/// </summary> | ||
PreloadSingle = 2, | ||
|
||
|
||
/// <summary> | ||
/// All models in the appsettings.json list will be preloaded into memory at app startup, ensure you use the ModelConfigs to split the hardware resources | ||
/// </summary> | ||
PreloadMultiple = 3, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters