ggml_rope_multi function

  1. @Native<Pointer<ggml_tensor> Function(Pointer<ggml_context>, Pointer<ggml_tensor>, Pointer<ggml_tensor>, Pointer<ggml_tensor>, Int, Pointer<Int>, Int, Int, Float, Float, Float, Float, Float, Float)>(ffi.Pointer<ggml_context>, ffi.Pointer<ggml_tensor>, ffi.Pointer<ggml_tensor>, ffi.Pointer<ggml_tensor>, ffi.Int, ffi.Pointer<ffi.Int>, ffi.Int, ffi.Int, ffi.Float, ffi.Float, ffi.Float, ffi.Float, ffi.Float, ffi.Float)>()
Pointer<ggml_tensor> ggml_rope_multi(
  1. Pointer<ggml_context> ctx,
  2. Pointer<ggml_tensor> a,
  3. Pointer<ggml_tensor> b,
  4. Pointer<ggml_tensor> c,
  5. int n_dims,
  6. Pointer<Int> sections,
  7. int mode,
  8. int n_ctx_orig,
  9. double freq_base,
  10. double freq_scale,
  11. double ext_factor,
  12. double attn_factor,
  13. double beta_fast,
  14. double beta_slow,
)

Implementation

@ffi.Native<
  ffi.Pointer<ggml_tensor> Function(
    ffi.Pointer<ggml_context>,
    ffi.Pointer<ggml_tensor>,
    ffi.Pointer<ggml_tensor>,
    ffi.Pointer<ggml_tensor>,
    ffi.Int,
    ffi.Pointer<ffi.Int>,
    ffi.Int,
    ffi.Int,
    ffi.Float,
    ffi.Float,
    ffi.Float,
    ffi.Float,
    ffi.Float,
    ffi.Float,
  )
>()
external ffi.Pointer<ggml_tensor> ggml_rope_multi(
  ffi.Pointer<ggml_context> ctx,
  ffi.Pointer<ggml_tensor> a,
  ffi.Pointer<ggml_tensor> b,
  ffi.Pointer<ggml_tensor> c,
  int n_dims,
  ffi.Pointer<ffi.Int> sections,
  int mode,
  int n_ctx_orig,
  double freq_base,
  double freq_scale,
  double ext_factor,
  double attn_factor,
  double beta_fast,
  double beta_slow,
);