Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

判断条件存疑,if (opt.use_fp16_storage && opt.use_int8_storage) #78

Open
QQHEZhangyubin opened this issue Mar 8, 2025 · 1 comment

Comments

@QQHEZhangyubin
Copy link

我注意到在c++层面的代码里面都有很多这样的判断逻辑。但是为什么这两个条件会同时存在呢?这不是两种存储格式吗?我是一个模型学习新手,请指教一下。😃
if (opt.use_fp16_storage && opt.use_int8_storage) {
// ...
} else {
// ...
}

@tumuyan
Copy link
Owner

tumuyan commented Mar 9, 2025

c++的代码移植自nihui的项目,实际上我也感到疑惑
并且有部分并没有从实际硬件配置读取而是写死的,之前还提过issue但是没得到回复

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

No branches or pull requests

2 participants