Skip to content

Commit

Permalink
Rebased + added tests
Browse files Browse the repository at this point in the history
Signed-off-by: Rahul Tuli <rahul@neuralmagic.com>
  • Loading branch information
rahul-tuli committed Nov 5, 2024
1 parent b03f4c7 commit a8e3894
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/llmcompressor/helpers.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# flake8: noqa


def valid_recipe_strings():
return [
"""
Expand Down Expand Up @@ -52,4 +55,14 @@ def valid_recipe_strings():
final_sparsity: 0.5
targets: __ALL_PRUNABLE__
""",
"""
test1_stage:
smoothquant_modifiers:
SmoothQuantModifier:
smoothing_strength: 0.5
mappings: [
[["re:.*q_proj", "re:.*k_proj", "re:.*v_proj"], "re:.*input_layernorm"],
[["re:.*gate_proj", "re:.*up_proj"], "re:.*post_attention_layernorm"]
]
""",
]

0 comments on commit a8e3894

Please sign in to comment.