You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

ModelLoadType.cs 954 B

123456789101112131415161718192021222324252627282930
  1. namespace LLama.Web.Common
  2. {
  3. /// <summary>
  4. /// The type of model load caching to use
  5. /// </summary>
  6. public enum ModelLoadType
  7. {
  8. /// <summary>
  9. /// Only one model will be loaded into memory at a time, any other models will be unloaded before the new one is loaded
  10. /// </summary>
  11. Single = 0,
  12. /// <summary>
  13. /// Multiple models will be loaded into memory, ensure you use the ModelConfigs to split the hardware resources
  14. /// </summary>
  15. Multiple = 1,
  16. /// <summary>
  17. /// The first model in the appsettings.json list will be preloaded into memory at app startup
  18. /// </summary>
  19. PreloadSingle = 2,
  20. /// <summary>
  21. /// 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
  22. /// </summary>
  23. PreloadMultiple = 3,
  24. }
  25. }