Skip to content

Commit cff6171

Browse files
committed
Style
Signed-off-by: Rahul Tuli <[email protected]>
1 parent e2bbee5 commit cff6171

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/llmcompressor/recipe/recipe.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,11 +533,12 @@ def model_dump(self, *args, **kwargs) -> Dict[str, Any]:
533533
expected by the validation logic, ensuring round-trip compatibility with
534534
model_validate.
535535
536-
:return: A dictionary representation of the recipe compatible with model_validate
536+
:return: A dictionary representation of the recipe compatible with
537+
model_validate
537538
"""
538539
# Get the base dictionary from parent class
539540
base_dict = super().model_dump(*args, **kwargs)
540-
541+
541542
# Transform stages into the expected format
542543
if "stages" in base_dict:
543544
stages_dict = {}

tests/recipe/test_recipe.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from src.llmcompressor.recipe import Recipe
22

3+
34
def test_recipe_model_dump():
45
"""Test that model_dump produces a format compatible with model_validate."""
56
# Create a recipe with multiple stages and modifiers

0 commit comments

Comments
 (0)