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

Autovec Unit Test for Int-4 #2437

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
23 changes: 23 additions & 0 deletions fbgemm_gpu/docs/src/fbgemm_gpu-development/TestInstructions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,26 @@ To run the benchmarks:
cd bench

python split_table_batched_embeddings_benchmark.py uvm

Testing the forward pass functionality
--------------------------------------

To test the basic forwarding operation, there are two separate files: one to test the default or reference version, and one to test the autovectorized version, if available.
These unit tests verify the correctness of the operations against a reference and can be easily extended to test for new autovectorized implementations.

To run the tests:

.. code:: sh

# !! Run inside the Conda environment !!

# From the /fbgemm_gpu/ directory
cd test

# Test reference version
python -m tbe.inference.nbit_forward_test

# Test autovectorized version
python -m tbe.inference.nbit_forward_autovec_test

# The corresponding pytest command may also be used, as detailed in previous sections
Loading
Loading