use float32 for rand buffer in test_beam_search and test in metal (#3831)

This commit is contained in:
chenyu
2024-03-19 23:22:58 -04:00
committed by GitHub
parent d17900bc45
commit 47b9cc2dfe
2 changed files with 3 additions and 2 deletions

View File

@@ -310,6 +310,8 @@ jobs:
run: METAL=1 DEBUG=3 python test/test_ops.py TestOps.test_big_gemm
- name: Test LLaMA compile speed
run: PYTHONPATH="." METAL=1 python test/external/external_test_speed_llama.py
- name: Test Beam Search
run: PYTHONPATH="." METAL=1 IGNORE_BEAM_CACHE=1 python3 -m pytest extra/optimization/test_beam_search.py
- name: Fuzz Test linearizer
run: PYTHONPATH="." METAL=1 CACHELEVEL=0 FUZZ_BEAM=1 DEPTH=2 FUZZ_N=48 FUZZ_MAX_SIZE=10000000 python test/external/fuzz_linearizer.py