Skip to content

Commit

Permalink
cleanup PR
Browse files Browse the repository at this point in the history
  • Loading branch information
winglian committed Dec 16, 2024
1 parent c466872 commit 5eb77f4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
13 changes: 0 additions & 13 deletions src/axolotl/utils/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,19 +380,6 @@ def apply_patches(self) -> None:
plugin_manager = PluginManager.get_instance()
plugin_manager.pre_model_load(self.cfg)

# if self.cfg.fsdp:
# from axolotl.monkeypatch.trainer_fsdp_optim import (
# patch_training_loop_for_fsdp,
# )
#
# patch_training_loop_for_fsdp()
# elif self.cfg.deepspeed and self.cfg.gradient_accumulation_steps > 1:
# from axolotl.monkeypatch.trainer_grad_accum import (
# patch_training_loop_for_deepspeed_0_16_x,
# )
#
# patch_training_loop_for_deepspeed_0_16_x()

if self.cfg.gradient_checkpointing == "unsloth":
transformers.modeling_utils.checkpoint = hf_grad_checkpoint_unsloth_wrapper

Expand Down
3 changes: 0 additions & 3 deletions tests/patched/test_llama_trainer_ga.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
""""Test module for checking whether the Hugging Face Transformers is working as expected."""
import unittest

import pytest

from axolotl.monkeypatch.trainer_grad_accum import (
check_forward_is_patchable,
check_training_step_is_patchable,
)


@pytest.mark.skip("should be fixed upstream")
class TestTrainerGAIntegration(unittest.TestCase):
"""llama monkeypatch integration tests."""

Expand Down

0 comments on commit 5eb77f4

Please sign in to comment.