Skip to content

Metal:Bugfix: Fix bug for read float external bias error#4277

Merged
wangzhaode merged 1 commit intoalibaba:masterfrom
jxt1234:feature/bugfix
Mar 20, 2026
Merged

Metal:Bugfix: Fix bug for read float external bias error#4277
wangzhaode merged 1 commit intoalibaba:masterfrom
jxt1234:feature/bugfix

Conversation

@jxt1234
Copy link
Collaborator

@jxt1234 jxt1234 commented Mar 18, 2026

修正 metal 后端运行 float 的权重分离模型时出错的问题

@@ -29,7 +29,7 @@
if(static_cast<MetalBackend*>(backend)->getMemoryMode() == BackendConfig::Memory_Low) {
if (conv2D->quanParameter() && (conv2D->external() || conv2D->quanParameter()->buffer())) {
// quant type equal to 3 means fp16, fallback to float weight
if(conv2D->quanParameter()->type() != 3) {
if(conv2D->quanParameter()->type() != 3 && conv2D->quanParameter()->type() != 8) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个8 是什么情况呀

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个问题解决了嘛 @jxt1234 @bitxsw93

@wangzhaode wangzhaode merged commit 673e86b into alibaba:master Mar 20, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants