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.

llama.native.llamamodelquantizeparams.md 1.7 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. # LLamaModelQuantizeParams
  2. Namespace: LLama.Native
  3. Quantizer parameters used in the native API
  4. ```csharp
  5. public struct LLamaModelQuantizeParams
  6. ```
  7. Inheritance [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object) → [ValueType](https://docs.microsoft.com/en-us/dotnet/api/system.valuetype) → [LLamaModelQuantizeParams](./llama.native.llamamodelquantizeparams.md)
  8. **Remarks:**
  9. llama_model_quantize_params
  10. ## Fields
  11. ### **nthread**
  12. number of threads to use for quantizing, if <=0 will use std::thread::hardware_concurrency()
  13. ```csharp
  14. public int nthread;
  15. ```
  16. ### **ftype**
  17. quantize to this llama_ftype
  18. ```csharp
  19. public LLamaFtype ftype;
  20. ```
  21. ### **imatrix**
  22. pointer to importance matrix data
  23. ```csharp
  24. public IntPtr imatrix;
  25. ```
  26. ## Properties
  27. ### **allow_requantize**
  28. allow quantizing non-f32/f16 tensors
  29. ```csharp
  30. public bool allow_requantize { get; set; }
  31. ```
  32. #### Property Value
  33. [Boolean](https://docs.microsoft.com/en-us/dotnet/api/system.boolean)<br>
  34. ### **quantize_output_tensor**
  35. quantize output.weight
  36. ```csharp
  37. public bool quantize_output_tensor { get; set; }
  38. ```
  39. #### Property Value
  40. [Boolean](https://docs.microsoft.com/en-us/dotnet/api/system.boolean)<br>
  41. ### **only_copy**
  42. only copy tensors - ftype, allow_requantize and quantize_output_tensor are ignored
  43. ```csharp
  44. public bool only_copy { get; set; }
  45. ```
  46. #### Property Value
  47. [Boolean](https://docs.microsoft.com/en-us/dotnet/api/system.boolean)<br>
  48. ### **pure**
  49. disable k-quant mixtures and quantize all tensors to the same type
  50. ```csharp
  51. public bool pure { get; set; }
  52. ```
  53. #### Property Value
  54. [Boolean](https://docs.microsoft.com/en-us/dotnet/api/system.boolean)<br>