Skip to content

Commit

Permalink
Update modelwriter.h for mha scale param
Browse files Browse the repository at this point in the history
  • Loading branch information
nihui authored Jul 18, 2024
1 parent f825d3a commit e820158
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/modelwriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -2007,6 +2007,7 @@ int ModelWriter::save(const char* parampath, const char* binpath)
fprintf_param_value(" 3=%d", kdim)
fprintf_param_value(" 4=%d", vdim)
fprintf_param_value(" 5=%d", attn_mask)
fprintf_param_value(" 6=%e", scale)

fwrite_weight_tag_data(op->q_weight_data, bp);
fwrite_weight_data(op->q_bias_data, bp);
Expand Down

0 comments on commit e820158

Please sign in to comment.