Open jianyicheng opened 2 months ago
We are now transforming the test to a justfile
based one; simply run just test-hw
would trigger the hardware tests.
The idea is to fix commonly used modules first, and leave the ones that are barely used as dev
mode.
We are testing sutff in https://github.com/DeepWok/mase/pull/203 and https://github.com/DeepWok/mase/pull/211
src/mase_components/activation_layers/test/fixed_gelu_tb.py
src/mase_components/activation_layers/test/fixed_leaky_relu_tb.py
src/mase_components/activation_layers/test/fixed_relu_tb.py
src/mase_components/activation_layers/test/fixed_selu_tb.py
src/mase_components/activation_layers/test/fixed_sigmoid_tb.py
src/mase_components/activation_layers/test/fixed_softmax_1d_tb.py
@firemountain154B src/mase_components/activation_layers/test/fixed_softermax_tb.py
@firemountain154B src/mase_components/activation_layers/test/fixed_softmax_tb.py
@firemountain154B src/mase_components/activation_layers/test/fixed_softplus_tb.py
src/mase_components/activation_layers/test/fixed_softsign_tb.py
src/mase_components/activation_layers/test/fixed_tanh_tb.py
src/mase_components/activation_layers/test/softermax_global_norm_tb.py
@firemountain154B src/mase_components/activation_layers/test/softermax_local_window_tb.py
@firemountain154B src/mase_components/activation_layers/test/softermax_lpw_pow2_tb.py
@firemountain154B src/mase_components/activation_layers/test/softermax_lpw_reciprocal_tb.py
@firemountain154B src/mase_components/activation_layers/test/test_lint_activations.py
@pgimenes src/mase_components/activation_layers/test/test_synth_activations.py
@pgimenes Dev mode (no plan to fix until we need to make use of them)
src/mase_components/activation_layers/test/fixed_elu_tb.py
src/mase_components/activation_layers/test/fixed_hardshrink_tb.py
src/mase_components/activation_layers/test/fixed_hardswish_tb.py
src/mase_components/activation_layers/test/fixed_silu_tb.py
src/mase_components/activation_layers/test/fixed_logsigmoid_tb.py
src/mase_components/activation_layers/test/fixed_softshrink_tb.py
src/mase_components/cast/test/fixed_cast_tb.py
src/mase_components/cast/test/fixed_rounding_tb.py
src/mase_components/cast/test/fixed_signed_cast_tb.py
src/mase_components/cast/test/fixed_unsigned_cast_tb.py
src/mase_components/common/test/comparator_accumulator_tb.py
src/mase_components/common/test/cut_data_tb.py
src/mase_components/common/test/lut_tb.py
src/mase_components/common/test/wrap_data_tb.py
src/mase_components/common/test/register_slice_tb.py
src/mase_components/common/test/test_lint_common.py
src/mase_components/convolution_layers/test/convolution_tb.py
src/mase_components/interface/axi/test/test_lint_axi.py
src/mase_components/language_models/llmint8/test/find_max_tb.py
src/mase_components/language_models/llmint8/test/fixed_comparator_tree_layer_tb.py
src/mase_components/language_models/llmint8/test/fixed_comparator_tree_tb.py
src/mase_components/language_models/llmint8/test/quantized_matmul_tb.py
src/mase_components/language_models/llmint8/test/quantizer_top_tb.py
src/mase_components/language_models/llmint8/test/scatter_tb.py
Dev
src/mase_components/language_models/llmint8/test/llm_int8_top_tb.py
src/mase_components/linear_layers/fixed_linear_layer/test/fixed_linear_tb.py
(without bias)src/mase_components/linear_layers/fixed_operators/test/fixed_accumulator_tb.py
src/mase_components/linear_layers/fixed_operators/test/fixed_adder_tree_tb.py
src/mase_components/linear_layers/fixed_operators/test/fixed_adder_tree_layer_tb.py
src/mase_components/linear_layers/fixed_operators/test/fixed_dot_product_tb.py
src/mase_components/linear_layers/fixed_operators/test/fixed_lut_index_tb.py
src/mase_components/linear_layers/fixed_operators/test/fixed_matmul_core_tb.py
src/mase_components/linear_layers/fixed_operators/test/fixed_mult_tb.py
src/mase_components/linear_layers/fixed_operators/test/fixed_range_augmentation_tb.py
src/mase_components/linear_layers/fixed_operators/test/fixed_range_reduction_tb.py
src/mase_components/linear_layers/matmul/test/chain_matmul_tb.py
src/mase_components/linear_layers/matmul/test/fixed_mamul_tb.py
src/mase_components/linear_layers/matmul/test/matmul_tb.py
src/mase_components/linear_layers/matmul/test/matrix_stream_transpose_tb.py
src/mase_components/linear_layers/matmul/test/transpose_tb.py
Dev
src/mase_components/linear_layers/fixed_linear_layer/test/fixed_linear_tb.py
(with bias, fails with queue draining error from the tb side)src/mase_components/linear_layers/fixed_linear_layer/test/binary_activation_binary_linear_tb.py
src/mase_components/linear_layers/fixed_linear_layer/test/fixed_activation_binary_linear_tb.py
src/mase_components/linear_layers/binarized_operators/test/binary_activation_binary_adder_tree_tb.py
src/mase_components/linear_layers/binarized_operators/test/binary_activation_binary_dot_product_tb.py
src/mase_components/linear_layers/binarized_operators/test/binary_activation_binary_matmul_core_tb.py
src/mase_components/linear_layers/binarized_operators/test/binary_activation_binary_mult_tb.py
src/mase_components/linear_layers/binarized_operators/test/binary_activation_binary_vector_mult_tb.py
src/mase_components/linear_layers/binarized_operators/test/fixed_activation_binary_dot_product_tb.py
src/mase_components/linear_layers/binarized_operators/test/fixed_activation_binary_mult_tb.py
src/mase_components/linear_layers/binarized_operators/test/fixed_activation_binary_vector_mult_tb.py
src/mase_components/linear_layers/binarized_operators/test/test_lint_binary_arith.py
src/mase_components/memory/test/fifo_tb.py
src/mase_components/memory/test/input_buffer_tb.py
src/mase_components/memory/test/skid_buffer_tb.py
src/mase_components/memory/test/unpacked_fifo_tb.py
src/mase_components/memory/test/repeat_circular_buffer_tb.py
src/mase_components/memory/test/test_lint_memory.py
src/mase_components/normalization_layers/test/batch_norm_2d_tb.py
src/mase_components/normalization_layers/test/group_norm_2d_tb.py
src/mase_components/normalization_layers/test/channel_selection_tb.py
src/mase_components/normalization_layers/test/rms_norm_2d_tb.py
src/mase_components/normalization_layers/test/test_lint_norm.py
src/mase_components/scalar_operators/fixed/test/fixed_isqrt_tb.py
src/mase_components/scalar_operators/fixed/test/isqrt_sw.py
src/mase_components/scalar_operators/float/test/test_lint_float_arithmetic.py
src/mase_components/scalar_operators/fixed/test/fixed_nr_stage_tb.py
python3 src/mase_components/scalar_operators/fixed/test/test_lint_fixed_math.py
src/mase_components/systolic_arrays/test/test_lint_systolic_arrays.py
src/mase_components/transformer_layers/test/fixed_self_attention_head_tb.py
src/mase_components/transformer_layers/test/fixed_gqa_head_tb.py
src/mase_components/transformer_layers/test/fixed_self_attention_tb.py
src/mase_components/transformer_layers/test/test_lint_attention.py
We are refactoring the regression tests under the fix/tests branch. On the hardware side, we observed the following errors. Due to the large number of failed test cases, it is too challenging for us to fix them in a single PR. Here we listed the observed errors below and plan progressive fixes in the future:
ERRORS:
Failed Tests:
These test cases are considered WIP and skipped in the CI at moment. We may assign group members to fix a group of these test cases and also hope users who need them can help fixing these tests and add them back to the CI (by marking it as normal). We will soon add a doc about these test categories under the
test
folder.