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

FileNotFoundError: [Errno 2] No such file or directory: 'ldconfig' for flash_attn.layers.rotary.apply_rotary_emb_qkv_(qkv, cos, sin) #1336

Open
albertotono opened this issue Nov 14, 2024 · 1 comment

Comments

@albertotono
Copy link

When I run flash_attn.layers.rotary.apply_rotary_emb_qkv_(qkv, cos, sin) in my env, I get FileNotFoundError: [Errno 2] No such file or directory: 'ldconfig'.

I tried following these possible Solution:

  • sudo apt-get install libc-bin,
  • sudo env "PATH=$PATH:/sbin" apt install libc-bin,
  • sudo env "PATH=$PATH" apt install libc-bin

sgl-project/sglang#319 export PATH=$PATH:/sbin
sgl-project/sglang#41 (comment)
#599 run ldconfig before triton

Any idea?

@albertotono
Copy link
Author

albertotono commented Nov 14, 2024

Initially the triton and flash are in another path .venv/lib/python3.10/site-packages/triton/common/build.py" and then they end up calling this /usr/local/lib/python3.10/

.venv/lib/python3.10/site-packages/triton/common/build.py", line 21, in libcuda_dirs
   libs = subprocess.check_output(["ldconfig", "-p"]).decode()
File "/usr/local/lib/python3.10/subprocess.py", line 421, in check_output
  return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/local/lib/python3.10/subprocess.py", line 503, in run
  with Popen(*popenargs, **kwargs) as process:
File "/usr/local/lib/python3.10/subprocess.py", line 971, in __init__
  self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/local/lib/python3.10/subprocess.py", line 1863, in _execute_child
  raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'ldconfig'

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

1 participant