add comments

This commit is contained in:
ngxson 2024-05-24 22:50:03 +02:00
parent c31c118d86
commit b30bea3257

View file

@ -13,9 +13,10 @@ struct callback_data {
int n_tokens = 0; int n_tokens = 0;
int n_embd = 0; int n_embd = 0;
bool is_eval_pos = true; bool is_eval_pos = true;
std::vector<float *> v_pos; // each element of the vector correspond to one layer
std::vector<float *> v_neg; std::vector<float *> v_pos; // vector of matrices of size [n_embd, n_tokens]
std::vector<float *> v_diff; std::vector<float *> v_neg; // vector of matrices of size [n_embd, n_tokens]
std::vector<float *> v_diff; // vector of matrices of size [n_embd, n_tokens]
}; };
static std::string ggml_ne_string(const ggml_tensor * t) { static std::string ggml_ne_string(const ggml_tensor * t) {