hustvl / Vim

Vision Mamba: Efficient Visual Representation Learning with Bidirectional State Space Model
Apache License 2.0
2.55k stars 159 forks source link

Layernorm:No such file or directory: 'ldconfig' #76

Open ZXXaaaa opened 2 months ago

ZXXaaaa commented 2 months ago

When run hidden_states, residual = fused_add_norm_fn( hidden_states if residual is None else self.drop_path(hidden_states), self.norm.weight, self.norm.bias, residual=residual, prenorm=True, residual_in_fp32=self.residual_in_fp32, eps=self.norm.eps, ) then go into layernorm.py and run y, mean, rstd, residual_out = _layer_norm_fwd( x, weight, bias, eps, residual, residual_dtype=residual_dtype, is_rms_norm=is_rms_norm ) the function _layer_norm_fwd report the error: [Errno 2] No such file or directory: 'ldconfig' The full error message is as follows: [Errno 2] No such file or directory: 'ldconfig' File "/data2/ZYM/Net/networks/mamba/mamba_ssm/ops/triton/layernorm.py", line 155, in _layer_norm_fwd _layer_norm_fwd_1pass_kernel[(M,)]( File ""/data2/ZYM/Net/networks/networks/mamba/mamba_ssm/ops/triton/layernorm.py", line 411, in forward y, mean, rstd, residual_out = _layer_norm_fwd( File ""/data2/ZYM/Net/networks/networks/mamba/mamba_ssm/ops/triton/layernorm.py", line 478, in rms_norm_fn return LayerNormFn.apply(x, weight, bias, residual, eps, prenorm, residual_in_fp32, True) File ""/data2/ZYM/Net/networks/networks/VideoMamba.py", line 85, in forward hidden_states, residual = fused_add_norm_fn( File ""/data2/ZYM/Net/networks/networks/VideoMamba.py", line 346, in forward_features hidden_states, residual = layer( File ""/data2/ZYM/Net/networks/networks/VideoMamba.py", line 373, in forward x = self.forward_features(x, inference_params) File ""/data2/ZYM/Net/networks/train_with_videomamba.py", line 324, in frame_pred = videomamba_model(frame_input) FileNotFoundError: [Errno 2] No such file or directory: 'ldconfig' Has anyone encountered this error?

xinqi-fan commented 2 months ago

if you are using Debian, you can try export PATH=$PATH:/sbin

I got the solution here: https://github.com/vllm-project/vllm/issues/3098 the error happens for some GCP Debian images that do not have ldconfig in the path. Please run export PATH=$PATH:/sbin before running vLLM.

ZXXaaaa commented 2 months ago

Thanks for your reply, I have tried but it doesn't work for me😭