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.

NativeApi.Quantize.cs 655 B

123456789101112131415161718
  1. using System.Runtime.InteropServices;
  2. namespace LLama.Native
  3. {
  4. public partial class NativeApi
  5. {
  6. /// <summary>
  7. /// Returns 0 on success
  8. /// </summary>
  9. /// <param name="fname_inp"></param>
  10. /// <param name="fname_out"></param>
  11. /// <param name="param"></param>
  12. /// <remarks>not great API - very likely to change</remarks>
  13. /// <returns>Returns 0 on success</returns>
  14. [DllImport(libraryName, CallingConvention = CallingConvention.Cdecl)]
  15. public static extern unsafe int llama_model_quantize(string fname_inp, string fname_out, LLamaModelQuantizeParams* param);
  16. }
  17. }