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.

LLamaFtype.cs 1.3 kB

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace LLama.Native
  5. {
  6. public enum LLamaFtype
  7. {
  8. LLAMA_FTYPE_ALL_F32 = 0,
  9. LLAMA_FTYPE_MOSTLY_F16 = 1, // except 1d tensors
  10. LLAMA_FTYPE_MOSTLY_Q4_0 = 2, // except 1d tensors
  11. LLAMA_FTYPE_MOSTLY_Q4_1 = 3, // except 1d tensors
  12. LLAMA_FTYPE_MOSTLY_Q4_1_SOME_F16 = 4, // tok_embeddings.weight and output.weight are F16
  13. // LLAMA_FTYPE_MOSTLY_Q4_2 = 5, // support has been removed
  14. // LLAMA_FTYPE_MOSTLY_Q4_3 (6) support has been removed
  15. LLAMA_FTYPE_MOSTLY_Q8_0 = 7, // except 1d tensors
  16. LLAMA_FTYPE_MOSTLY_Q5_0 = 8, // except 1d tensors
  17. LLAMA_FTYPE_MOSTLY_Q5_1 = 9, // except 1d tensors
  18. LLAMA_FTYPE_MOSTLY_Q2_K = 10,// except 1d tensors
  19. LLAMA_FTYPE_MOSTLY_Q3_K_S = 11,// except 1d tensors
  20. LLAMA_FTYPE_MOSTLY_Q3_K_M = 12,// except 1d tensors
  21. LLAMA_FTYPE_MOSTLY_Q3_K_L = 13,// except 1d tensors
  22. LLAMA_FTYPE_MOSTLY_Q4_K_S = 14,// except 1d tensors
  23. LLAMA_FTYPE_MOSTLY_Q4_K_M = 15,// except 1d tensors
  24. LLAMA_FTYPE_MOSTLY_Q5_K_S = 16,// except 1d tensors
  25. LLAMA_FTYPE_MOSTLY_Q5_K_M = 17,// except 1d tensors
  26. LLAMA_FTYPE_MOSTLY_Q6_K = 18,// except 1d tensors
  27. }
  28. }