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.

LlamaSharpConfig.cs 1.2 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace LLamaSharp.KernelMemory
  7. {
  8. /// <summary>
  9. /// Represents the configuration for LLamaSharp.
  10. /// </summary>
  11. public class LLamaSharpConfig
  12. {
  13. /// <summary>
  14. /// Initializes a new instance of the <see cref="LLamaSharpConfig"/> class.
  15. /// </summary>
  16. /// <param name="modelPath">The path to the model file.</param>
  17. public LLamaSharpConfig(string modelPath)
  18. {
  19. ModelPath = modelPath;
  20. }
  21. /// <summary>
  22. /// Gets or sets the path to the model file.
  23. /// </summary>
  24. public string ModelPath { get; set; }
  25. /// <summary>
  26. /// Gets or sets the size of the context.
  27. /// </summary>
  28. public uint? ContextSize { get; set; }
  29. /// <summary>
  30. /// Gets or sets the seed value.
  31. /// </summary>
  32. public uint? Seed { get; set; }
  33. /// <summary>
  34. /// Gets or sets the number of GPU layers.
  35. /// </summary>
  36. public int? GpuLayerCount { get; set; }
  37. }
  38. }