roundup_power2_divisions not needed with newer pytorch versions (#3540)
* roundup_power2_divisions not needed with newer pytorch versions * remove typo * update qwen3.5 moe 35b-a3b yaml for 5090 * more bug fixes * fix tests to match updated trainer * don't use fa2 for hooks test * reset plugins on the instance * retry download * fix references to renamed axolotl_cfg property on trainer * Fix ref to trainer cfg
This commit is contained in:
@@ -1176,7 +1176,7 @@ class TestSwanLabProfiling:
|
||||
|
||||
# Mock trainer with SwanLab enabled
|
||||
mock_trainer = MagicMock()
|
||||
mock_trainer.cfg = MagicMock(use_swanlab=True)
|
||||
mock_trainer.axolotl_cfg = MagicMock(use_swanlab=True)
|
||||
mock_trainer.__class__.__name__ = "TestTrainer"
|
||||
|
||||
with patch("swanlab.get_run") as mock_get_run, patch("swanlab.log") as mock_log:
|
||||
@@ -1199,7 +1199,7 @@ class TestSwanLabProfiling:
|
||||
from axolotl.integrations.swanlab.profiling import swanlab_profiling_context
|
||||
|
||||
mock_trainer = MagicMock()
|
||||
mock_trainer.cfg = MagicMock(use_swanlab=False) # Disabled
|
||||
mock_trainer.axolotl_cfg = MagicMock(use_swanlab=False) # Disabled
|
||||
|
||||
with patch("swanlab.log") as mock_log:
|
||||
with swanlab_profiling_context(mock_trainer, "test_function"):
|
||||
@@ -1213,7 +1213,7 @@ class TestSwanLabProfiling:
|
||||
from axolotl.integrations.swanlab.profiling import swanlab_profiling_context
|
||||
|
||||
mock_trainer = MagicMock()
|
||||
mock_trainer.cfg = MagicMock(use_swanlab=True)
|
||||
mock_trainer.axolotl_cfg = MagicMock(use_swanlab=True)
|
||||
|
||||
with (
|
||||
patch("swanlab.get_run", return_value=None),
|
||||
@@ -1294,7 +1294,7 @@ class TestSwanLabProfiling:
|
||||
)
|
||||
|
||||
mock_trainer = MagicMock()
|
||||
mock_trainer.cfg = MagicMock(use_swanlab=True)
|
||||
mock_trainer.axolotl_cfg = MagicMock(use_swanlab=True)
|
||||
mock_trainer.__class__.__name__ = "TestTrainer"
|
||||
|
||||
# Config that filters out very fast operations
|
||||
@@ -1320,7 +1320,7 @@ class TestSwanLabProfiling:
|
||||
from axolotl.integrations.swanlab.profiling import swanlab_profiling_context
|
||||
|
||||
mock_trainer = MagicMock()
|
||||
mock_trainer.cfg = MagicMock(use_swanlab=True)
|
||||
mock_trainer.axolotl_cfg = MagicMock(use_swanlab=True)
|
||||
mock_trainer.__class__.__name__ = "TestTrainer"
|
||||
|
||||
with patch("swanlab.get_run") as mock_get_run, patch("swanlab.log") as mock_log:
|
||||
|
||||
Reference in New Issue
Block a user