Skip to content

Commit

Permalink
fix recipe container
Browse files Browse the repository at this point in the history
Signed-off-by: Kyle Sayers <[email protected]>
  • Loading branch information
kylesayrs committed Mar 10, 2025
1 parent c2456f0 commit 87d528a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/llmcompressor/recipe/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def _check_compile_recipe(self):
:return: True if the recipes were compiled, False otherwise
"""
if self.compiled_recipe is None and self.recipes:
if self.recipes:
self.compiled_recipe = Recipe.simplify_combine_recipes(self.recipes)

def check_any_recipe_exists(self) -> bool:
Expand Down
4 changes: 4 additions & 0 deletions src/llmcompressor/transformers/finetune/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,10 @@ def run_sequential_stages(
"the stage name."
)

# skip stages which have already been applied
if stage_name in completed_stages:
continue

# setup checkpoint dir, TODO: this should be optional
self._output_dir = os.path.join(
self.parent_output_dir, "stage_" + stage_name
Expand Down

0 comments on commit 87d528a

Please sign in to comment.