Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/test_pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -553,8 +553,11 @@ jobs:
config:
- granite_4_1_8b_spyre.yaml
- granite_3_3_8b_instruct_spyre.yaml
- Meta-Llama-3.1-8B-Instruct_spyre.yaml
- Ministral-3-14B-Instruct-2512.yaml
- Mistral-Small-3.2-24B-Instruct-2506.yaml
- Qwen2.5-7B-Instruct_spyre.yaml
- gpt_oss_20b_spyre.yaml

steps:
- name: Checkout composite actions
Expand Down
442 changes: 442 additions & 0 deletions tests/configs/module_tests/Meta-Llama-3.1-8B-Instruct_spyre.yaml

Large diffs are not rendered by default.

192 changes: 131 additions & 61 deletions tests/configs/module_tests/Ministral-3-14B-Instruct-2512.yaml

Large diffs are not rendered by default.

276 changes: 155 additions & 121 deletions tests/configs/module_tests/Mistral-Small-3.2-24B-Instruct-2506.yaml

Large diffs are not rendered by default.

438 changes: 438 additions & 0 deletions tests/configs/module_tests/Qwen2.5-7B-Instruct_spyre.yaml

Large diffs are not rendered by default.

761 changes: 761 additions & 0 deletions tests/configs/module_tests/gpt_oss_20b_spyre.yaml

Large diffs are not rendered by default.

144 changes: 112 additions & 32 deletions tests/configs/module_tests/granite_3_3_8b_instruct_spyre.yaml

Large diffs are not rendered by default.

214 changes: 126 additions & 88 deletions tests/configs/module_tests/granite_4_1_8b_spyre.yaml

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions tests/test_modules_custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,13 @@ def test_eager_vs_compile(self, device, dtype, module_info, training):
3. Runs module in compile mode on Spyre
4. Compares outputs between eager CPU, eager Spyre, and compile Spyre
"""

cls_name = module_info.module_cls.__name__
if cls_name.endswith("DecoderLayer"):
self.skipTest(
f"{cls_name}: skip the whole decoder layer due to time-consuming module"
)

module_inputs = module_info.module_inputs_func(
module_info, device=device, dtype=dtype, requires_grad=False, training=False
)
Expand Down Expand Up @@ -581,6 +588,13 @@ def test_with_cpu(self, device, dtype, module_info, training):
"""
run_compile = os.getenv("TEST_COMPILE_WITH_CPU", "1") == "1"
run_eager = os.getenv("TEST_EAGER_WITH_CPU", "0") == "1"

cls_name = module_info.module_cls.__name__
if cls_name.endswith("DecoderLayer"):
self.skipTest(
f"{cls_name}: skip the whole decoder layer due to time-consuming module"
)

module_inputs = module_info.module_inputs_func(
module_info,
device=device,
Expand Down
350 changes: 346 additions & 4 deletions utils/module_discovery/auto_generate_module_config.py

Large diffs are not rendered by default.