Overhaul the examples structure
- main -> examples - utils -> examples (renamed to "common") - quantize -> examples - separate tools for "perplexity" and "embedding" Hope I didn't break something !
This commit is contained in:
parent
ecbe466a36
commit
a316a425d0
21 changed files with 361 additions and 161 deletions
26
ggml.c
26
ggml.c
|
@ -5741,8 +5741,8 @@ static bool ggml_compute_forward_mul_mat_use_blas(
|
|||
const struct ggml_tensor * src0,
|
||||
const struct ggml_tensor * src1,
|
||||
struct ggml_tensor * dst) {
|
||||
const int ne00 = src0->ne[0];
|
||||
const int ne01 = src0->ne[1];
|
||||
//const int ne00 = src0->ne[0];
|
||||
//const int ne01 = src0->ne[1];
|
||||
|
||||
const int ne10 = src1->ne[0];
|
||||
|
||||
|
@ -5776,16 +5776,16 @@ static void ggml_compute_forward_mul_mat_f32(
|
|||
|
||||
const int ne10 = src1->ne[0];
|
||||
const int ne11 = src1->ne[1];
|
||||
const int ne12 = src1->ne[2];
|
||||
const int ne13 = src1->ne[3];
|
||||
//const int ne12 = src1->ne[2];
|
||||
//const int ne13 = src1->ne[3];
|
||||
|
||||
const int ne0 = dst->ne[0];
|
||||
const int ne1 = dst->ne[1];
|
||||
const int ne2 = dst->ne[2];
|
||||
const int ne3 = dst->ne[3];
|
||||
const int ne = ne0*ne1*ne2*ne3;
|
||||
//const int ne0 = dst->ne[0];
|
||||
//const int ne1 = dst->ne[1];
|
||||
//const int ne2 = dst->ne[2];
|
||||
//const int ne3 = dst->ne[3];
|
||||
//const int ne = ne0*ne1*ne2*ne3;
|
||||
|
||||
const int nb00 = src0->nb[0];
|
||||
//const int nb00 = src0->nb[0];
|
||||
const int nb01 = src0->nb[1];
|
||||
const int nb02 = src0->nb[2];
|
||||
const int nb03 = src0->nb[3];
|
||||
|
@ -5947,7 +5947,7 @@ static void ggml_compute_forward_mul_mat_f16_f32(
|
|||
const int ne1 = dst->ne[1];
|
||||
const int ne2 = dst->ne[2];
|
||||
const int ne3 = dst->ne[3];
|
||||
const int ne = ne0*ne1*ne2*ne3;
|
||||
//const int ne = ne0*ne1*ne2*ne3;
|
||||
|
||||
const int nb00 = src0->nb[0];
|
||||
const int nb01 = src0->nb[1];
|
||||
|
@ -6137,7 +6137,7 @@ static void ggml_compute_forward_mul_mat_q4_0_f32(
|
|||
const int ne1 = dst->ne[1];
|
||||
const int ne2 = dst->ne[2];
|
||||
const int ne3 = dst->ne[3];
|
||||
const int ne = ne0*ne1*ne2*ne3;
|
||||
//const int ne = ne0*ne1*ne2*ne3;
|
||||
|
||||
const int nb00 = src0->nb[0];
|
||||
const int nb01 = src0->nb[1];
|
||||
|
@ -6322,7 +6322,7 @@ static void ggml_compute_forward_mul_mat_q4_1_f32(
|
|||
const int ne1 = dst->ne[1];
|
||||
const int ne2 = dst->ne[2];
|
||||
const int ne3 = dst->ne[3];
|
||||
const int ne = ne0*ne1*ne2*ne3;
|
||||
//const int ne = ne0*ne1*ne2*ne3;
|
||||
|
||||
const int nb00 = src0->nb[0];
|
||||
const int nb01 = src0->nb[1];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue