Skip to content

Commit d5a4f37

Browse files
authored
Disable torch compile for L0 test (#25)
* disable torch compile for l0 test Signed-off-by: Hao Wu <[email protected]>
1 parent e40fce8 commit d5a4f37

File tree

3 files changed

+31
-12
lines changed

3 files changed

+31
-12
lines changed

tests/ci/L0_Tests_CPU.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14+
export TORCH_COMPILE_DISABLE=1
1415
set -o pipefail
1516
torchrun --nproc_per_node=8 --no-python coverage run -p tests/test_distributed_muon_utils_cpu.py
1617
torchrun --nproc_per_node=4 --no-python coverage run -p tests/test_distributed_muon_utils_cpu.py

tests/ci/L0_Tests_GPU.sh

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,13 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14+
export TORCH_COMPILE_DISABLE=1
15+
export CUDA_VISIBLE_DEVICES=0
1416
set -o pipefail
15-
CUDA_VISIBLE_DEVICES="0" coverage run -p --source=emerging_optimizers tests/test_muon_utils.py
16-
CUDA_VISIBLE_DEVICES="0" coverage run -p --source=emerging_optimizers tests/test_orthogonalized_optimizer.py
17-
CUDA_VISIBLE_DEVICES="0" coverage run -p --source=emerging_optimizers tests/test_soap_functions.py
18-
CUDA_VISIBLE_DEVICES="0" coverage run -p --source=emerging_optimizers tests/test_soap_utils.py
19-
CUDA_VISIBLE_DEVICES="0" coverage run -p --source=emerging_optimizers tests/soap_smoke_test.py
20-
CUDA_VISIBLE_DEVICES="0" coverage run -p --source=emerging_optimizers tests/soap_mnist_test.py
21-
CUDA_VISIBLE_DEVICES="0" coverage run -p --source=emerging_optimizers tests/test_scalar_optimizers.py
22-
23-
24-
25-
26-
17+
coverage run -p --source=emerging_optimizers tests/test_muon_utils.py
18+
coverage run -p --source=emerging_optimizers tests/test_orthogonalized_optimizer.py
19+
coverage run -p --source=emerging_optimizers tests/test_soap_functions.py
20+
coverage run -p --source=emerging_optimizers tests/test_soap_utils.py
21+
coverage run -p --source=emerging_optimizers tests/soap_smoke_test.py
22+
coverage run -p --source=emerging_optimizers tests/soap_mnist_test.py
23+
coverage run -p --source=emerging_optimizers tests/test_scalar_optimizers.py

tests/ci/L1_Tests_GPU.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
export CUDA_VISIBLE_DEVICES=0
15+
set -o pipefail
16+
python tests/test_muon_utils.py
17+
python tests/test_orthogonalized_optimizer.py
18+
python tests/test_soap_functions.py
19+
python tests/test_soap_utils.py
20+
python tests/soap_smoke_test.py
21+
python tests/test_scalar_optimizers.py

0 commit comments

Comments
 (0)