Class: LlamaCpp::LlamaPerfContextData

Inherits:
Object
  • Object
show all
Defined in:
ext/llama_cpp/llama_cpp.c,
ext/llama_cpp/llama_cpp.c
more...

Overview

“struct llama_perf_context_data” wrapper class

Instance Method Summary collapse

Instance Method Details

#n_evalInteger

Returns:

  • (Integer)
[View source]

3647
3648
3649
3650
# File 'ext/llama_cpp/llama_cpp.c', line 3647

static VALUE llama_perf_context_data_get_n_eval(VALUE self) {
  struct llama_perf_context_data* data = get_llama_perf_context_data(self);
  return INT2NUM(data->n_eval);
}

#n_p_evalInteger

Returns:

  • (Integer)
[View source]

3642
3643
3644
3645
# File 'ext/llama_cpp/llama_cpp.c', line 3642

static VALUE llama_perf_context_data_get_n_p_eval(VALUE self) {
  struct llama_perf_context_data* data = get_llama_perf_context_data(self);
  return INT2NUM(data->n_p_eval);
}

#t_eval_msFloat

Returns:

  • (Float)
[View source]

3637
3638
3639
3640
# File 'ext/llama_cpp/llama_cpp.c', line 3637

static VALUE llama_perf_context_data_get_t_eval_ms(VALUE self) {
  struct llama_perf_context_data* data = get_llama_perf_context_data(self);
  return DBL2NUM(data->t_eval_ms);
}

#t_load_msFloat

Returns:

  • (Float)
[View source]

3627
3628
3629
3630
# File 'ext/llama_cpp/llama_cpp.c', line 3627

static VALUE llama_perf_context_data_get_t_load_ms(VALUE self) {
  struct llama_perf_context_data* data = get_llama_perf_context_data(self);
  return DBL2NUM(data->t_load_ms);
}

#t_p_eval_msFloat

Returns:

  • (Float)
[View source]

3632
3633
3634
3635
# File 'ext/llama_cpp/llama_cpp.c', line 3632

static VALUE llama_perf_context_data_get_t_p_eval_ms(VALUE self) {
  struct llama_perf_context_data* data = get_llama_perf_context_data(self);
  return DBL2NUM(data->t_p_eval_ms);
}

#t_start_msFloat

Returns:

  • (Float)
[View source]

3622
3623
3624
3625
# File 'ext/llama_cpp/llama_cpp.c', line 3622

static VALUE llama_perf_context_data_get_t_start_ms(VALUE self) {
  struct llama_perf_context_data* data = get_llama_perf_context_data(self);
  return DBL2NUM(data->t_start_ms);
}