BitBLAS: Bitnet is giving NaN for perplexity
torch==2.3.0+cu121
torchaudio==2.3.0+cu121
torchvision==0.18.0+cu121
nvidia-cuda-cupti-cu12==12.1.105
nvidia-cuda-nvrtc-cu12==12.1.105
nvidia-cuda-runtime-cu12==12.1.105
bitblas==0.0.1.dev2
File eval_utils.py is missing added from bitnet_b1_58-3B.
also changed this is forward pass, self.sw is not set
sw = 1 / self.weight.abs().mean().clamp(min=1e-5)
This this was painful on runpod, with defaulting installation it cant find libnvrtc.so.12.0 and and when I install it through source in conda env flash attn wont install 😠, I wish there was simple to setup this.
Anyways I am getting NaN in loss while calculating perplexity. Can someone help out here (I will raiser pr if I find any fix)
cc: @LeiWang1999
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 21 (11 by maintainers)
time to fix a skill issues I’ll gonna try it thanks again
hi @joey00072 , I refactored some codes for bitnet, the output of
eval_ppl.pyis not NaN under my env:Looks like you should upgrade your cmake version?
CMake 3.18 or higher is required. You are running version 3.16.3you should do post_process before bitblas_matmul I guess.
Hi @joey00072 Yeah. We currently provide pre-built .whl files only for CUDA 12.0.
The requirement for flash atten originates from BitNet, not this repository. Maybe we should add a note about this in the README under the BitNet folder.
It’s surprising that eval_ppl failed. Our tests on the BitNet-BitBLAS integration were conducted only using eval_correctness.py. I will investigate this issue lately.