@@ -5323,12 +5323,12 @@ static std::vector<std::unique_ptr<test_case>> make_test_cases_eval() {
53235323 for (bool fw : {true , false }) { // fw == forward
53245324 bool all = true ;
53255325
5326- for (float v : { 0 , 1 }) {
5327- for (float fs : { 1 .0f , 1 . 4245f }) {
5328- for (float ef : { 0 .0f , 0 . 7465f }) {
5329- for (float af : { 1 . 0f , 1 . 4245f }) {
5330- for (ggml_type type : {GGML_TYPE_F32, GGML_TYPE_F16 }) {
5331- for (bool ff : {false , true }) { // freq_factors
5326+ for (float fs : { 1 . 0f , 1 . 4245f }) {
5327+ for (float ef : { 0 .0f , 0 . 7465f }) {
5328+ for (float af : { 1 .0f , 1 . 4245f }) {
5329+ for (ggml_type type : {GGML_TYPE_F32, GGML_TYPE_F16 }) {
5330+ for (bool ff : {false , true }) { // freq_factors
5331+ for (float v : { 0 , 1 }) {
53325332 test_cases.emplace_back (new test_rope (type, {128 , 32 , 2 , 1 }, 128 , 0 , 512 , fs, ef, af, ff, v, fw)); // llama 7B
53335333
53345334 if (all) {
@@ -5341,8 +5341,14 @@ static std::vector<std::unique_ptr<test_case>> make_test_cases_eval() {
53415341 test_cases.emplace_back (new test_rope (type, { 64 , 1 , 2 , 1 }, 64 , 2 , 512 , fs, ef, af, ff, v, fw)); // neox (falcon 7B)
53425342 test_cases.emplace_back (new test_rope (type, { 64 , 71 , 2 , 1 }, 64 , 2 , 512 , fs, ef, af, ff, v, fw)); // neox (falcon 7B)
53435343 test_cases.emplace_back (new test_rope (type, { 64 , 8 , 2 , 1 }, 64 , 2 , 512 , fs, ef, af, ff, v, fw)); // neox (falcon 40B)
5344+
5345+ test_cases.emplace_back (new test_rope (type, { 80 , 32 , 2 , 1 }, 20 , 0 , 512 , fs, ef, af, ff, v, fw)); // neox (stablelm)
5346+ test_cases.emplace_back (new test_rope (type, { 80 , 32 , 2 , 1 }, 32 , 0 , 512 , fs, ef, af, ff, v, fw)); // neox (phi-2)
5347+ test_cases.emplace_back (new test_rope (type, { 80 , 32 , 4 , 1 }, 32 , 0 , 512 , fs, ef, af, ff, v, fw)); // neox (phi-2)
5348+
53445349 test_cases.emplace_back (new test_rope (type, { 80 , 32 , 2 , 1 }, 20 , 2 , 512 , fs, ef, af, ff, v, fw)); // neox (stablelm)
53455350 test_cases.emplace_back (new test_rope (type, { 80 , 32 , 2 , 1 }, 32 , 2 , 512 , fs, ef, af, ff, v, fw)); // neox (phi-2)
5351+ test_cases.emplace_back (new test_rope (type, { 80 , 32 , 4 , 1 }, 32 , 2 , 512 , fs, ef, af, ff, v, fw)); // neox (phi-2)
53465352 }
53475353
53485354 if (all) {
0 commit comments