-
Notifications
You must be signed in to change notification settings - Fork 103
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
ttnn.exp, exp2, expm1 and ldexp fail with low PCC on both GS and WH in larger value ranges [Bug Report][GS][WH] #6391
Comments
@tt-aho all above ops are not accurate for BF8 datatypes when the input range is
|
Is the issue only with bfp8 or with bfloat16 as well? For bfp8, increasing the range from 10 -> 100 will cause you have a much larger variation on the output, which will result in less accurate results due to the shared exponents. Some experiments you could try are to just take the pytorch output, convert to bfp8, then compare the output, or do the same and convert bfloat16 output to bfp8 and compare to see if it's just due to the limitations of the data format. |
@tt-aho I tried debugging the exp op for bfloat8_b and observed a few things.
This worked for bfloat16 and I printed one row at a time. c_in0 and c_out0 CB buffer data matched the TT input and TT output. for bf16, c_in0 tile slice h0 for bf8_b, c_in0 tile slice h0 Similar case while printing c_out0 tile slice h0 as well
|
The precision issue related to exp2 is being tracked here: #13002 |
@npetrovic-tenstorrent |
@npetrovic-tenstorrent Can we consider this ticket done ? If yes, can you please close this ? Thanks |
Still valid it seems, as PCC for the test is still around 0.92-0.93. I updated the command for running, as it reported the file not found problem when I first tried it.
|
Exponential-alike operations ttnn.exp, ttnn.exp2, ttnn.expm1 and ttnn.ldexp fail with low PCC when input value range is larger than [-10,10]. Therefore, working sweeps passing in range [-100,100] cannot be created.
To Reproduce
Steps to reproduce the behavior:
Checkout
main
branch (soon to be merged into main) and run unit testtest_exp.py , test_exp2.py, test.expm1.py or test_ldexp.py
(or others) using this command pattern:Expected behavior
There are few test cases presented in the unit test
tests/tt_eager/python_api_testing/non_working_unit_tests/grayskull/test_exp2.py
and they are expected to fail with low PCC error (PCC not so low, but still not passing):The same is expected for test_exp.py and others as well.
Getting Additional info for the operation under test and its behavior
To get additional information and results for different combinations of input shapes, types, layouts and memory configs for which this operation was tested you can also run locally sweep test:
To do this you should:
Getting Started
page to setup the repo, environment variables andpython-env
source build/python_env/bin/activate
python tests/tt_eager/python_api_testing/sweep_tests/run_pytorch_test.py -i tests/ttnn/python_api_testing/sweep_tests/test_configs/ci_sweep_tests_broken/grayskull/ttnn_eltwise_exp2_test.yaml -o ./result-sweeps
.csv
which holds all executed sweeps, among which you can also find the ones that failed and were recreated by the unit test, which you can get by searching uniquedata_seed
field.The text was updated successfully, but these errors were encountered: