Skip to content

Commit e35bd21

Browse files
committed
fix
1 parent 934ceb0 commit e35bd21

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/models/llama/export_llama_lib.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ def build_model(
122122

123123

124124
def _is_valid_torchao_qmode_type(value):
125+
if not isinstance(value, str):
126+
return False
127+
125128
if not value.startswith("torchao:"):
126129
return False
127130

0 commit comments

Comments
 (0)