Skip to content

Commit cdf12f3

Browse files
authored
Merge pull request vllm-project#7 from vllm-project/fix_reference
fix reference code
2 parents 376fba3 + 5ded17e commit cdf12f3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

support_materials/1-inference/generate.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,9 @@ def main(
122122
print("load model")
123123
load_model(
124124
model,
125-
os.path.join(ckpt_path, f"model{rank}-mp{world_size}.safetensors"))
125+
os.path.join(ckpt_path, f"model{rank}-mp{world_size}.safetensors"),
126+
# use strict=False to fix the lm head dtype mismatch
127+
strict=False)
126128
print("I'm DeepSeek 👋")
127129

128130
if interactive:

0 commit comments

Comments
 (0)