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]

3781
3782
3783
3784
# File 'ext/llama_cpp/llama_cpp.c', line 3781

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]

3776
3777
3778
3779
# File 'ext/llama_cpp/llama_cpp.c', line 3776

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]

3771
3772
3773
3774
# File 'ext/llama_cpp/llama_cpp.c', line 3771

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]

3761
3762
3763
3764
# File 'ext/llama_cpp/llama_cpp.c', line 3761

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]

3766
3767
3768
3769
# File 'ext/llama_cpp/llama_cpp.c', line 3766

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]

3756
3757
3758
3759
# File 'ext/llama_cpp/llama_cpp.c', line 3756

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);
}