Skip to content

Commit 62f81e5

Browse files
committed
pop lm_head in recipe dict
Signed-off-by: xinhe3 <[email protected]>
1 parent a78f99c commit 62f81e5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

auto_round/autoround.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3006,6 +3006,7 @@ def _generate_recipe(
30063006
recipe_layer_config.update(self.recipe_results)
30073007
self._dump_average_bits(layer_config=recipe_layer_config)
30083008
self.recipe_mode = False
3009+
recipe_layer_config.pop("lm_head") # lm_head is not included in the recipe
30093010
return recipe_layer_config
30103011

30113012
def _generate_block_recipe(self, block, input_ids, input_others):

0 commit comments

Comments
 (0)