Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sample test failed on arm64 #1736

Closed
lindeer opened this issue Jun 7, 2023 · 1 comment
Closed

Sample test failed on arm64 #1736

lindeer opened this issue Jun 7, 2023 · 1 comment

Comments

@lindeer
Copy link
Contributor

lindeer commented Jun 7, 2023

checkout master@4b7e245, this is the first commit causing the error.

$ make test
Running tests...
Test project /home/wesley/Work/projects/chatgpt/llama.cpp/build
    Start 1: test-quantize-fns
1/4 Test #1: test-quantize-fns ................   Passed    0.01 sec
    Start 2: test-quantize-perf
2/4 Test #2: test-quantize-perf ...............   Passed    0.01 sec
    Start 3: test-sampling
3/4 Test #3: test-sampling ....................Child aborted***Exception:   0.05 sec
    Start 4: test-tokenizer-0
4/4 Test #4: test-tokenizer-0 .................   Passed    0.03 sec

75% tests passed, 1 tests failed out of 4

Total Test time (real) =   0.10 sec

The following tests FAILED:
	  3 - test-sampling (Child aborted)
Errors while running CTest

assert(candidates_p.size == expected_probs.size()); assertion failed, expect 1 but candidates_p.size is 5.

@lindeer
Copy link
Contributor Author

lindeer commented Jun 12, 2023

just run the first test case of test_tfs:

int main(void) {
    ggml_time_init();
    test_tfs({0.1, 0.15, 0.2, 0.25, 0.3}, {0.3}, 0.25);
    printf("OK\n");
}

in test_tfs:

    DUMP(&candidates_p);
    llama_sample_tail_free(nullptr, &candidates_p, z, 1);
    DUMP(&candidates_p);

output is:

/home/wesley/Work/projects/chatgpt/llama.cpp/tests/test-sampling.cpp:85 (test_tfs)
0: 0.000000 (-2.302585)
1: 0.000000 (-1.897120)
2: 0.000000 (-1.609438)
3: 0.000000 (-1.386294)
4: 0.000000 (-1.203973)
-
/home/wesley/Work/projects/chatgpt/llama.cpp/tests/test-sampling.cpp:87 (test_tfs)
4: 0.300000 (-1.203973)
3: 0.250000 (-1.386294)
2: 0.200000 (-1.609438)
1: 0.150000 (-1.897120)
0: 0.100000 (-2.302585)
-

@lindeer lindeer closed this as completed Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant