Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Sara Adkins committed Oct 27, 2023
1 parent a56cf7f commit ac68408
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/sparseml/core/lifecycle/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class SparsificationLifecycle:

def reset(self):
for mod in self.modifiers:
if not mod.initialized_ or mod.finalized:
if not mod.initialized or mod.finalized:
continue

try:
Expand Down
4 changes: 2 additions & 2 deletions test_trainer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from sparseml.transformers.finetune.text_generation import main

def run():
from sparseml.transformers.finetune.text_generation import main

model = "./obcq_deployment"
dataset_name = "wikitext"
dataset_config_name = "wikitext-2-raw-v1"
Expand Down

0 comments on commit ac68408

Please sign in to comment.