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

Invalid bitcast %222 = bitcast <8 x i32> %221 to <8 x half> #40

Closed
mgagvani opened this issue May 2, 2023 · 4 comments
Closed

Invalid bitcast %222 = bitcast <8 x i32> %221 to <8 x half> #40

mgagvani opened this issue May 2, 2023 · 4 comments
Labels
trouble shooting Asking for diagnosis

Comments

@mgagvani
Copy link

mgagvani commented May 2, 2023

Output from running mlc_chat_cli:

WARNING: lavapipe is not a conformant vulkan implementation, testing use only.
Use lib /cluster/2024mgagvani/dist/lib/vicuna-v1-7b_vulkan_float16.so
Initializing the chat module...
Finish loading
You can use the following special commands:
  /help    print the special commands
  /exit    quit the cli
  /stats   print out the latest stats (token/sec)
  /reset   restart a fresh chat

USER: what is 1 + 1
ASSISTANT: Invalid bitcast
  %222 = bitcast <8 x i32> %221 to <8 x half>
LLVM ERROR: Broken function
Aborted (core dumped)

Debug info:

(mlc-chat) 2024mgagvani@snowy:~$ uname -r
5.15.0-67-generic

System Specs: AMD Threadripper 1950X CPU and Nvidia GeForce 2080 GPU.

@junrushao
Copy link
Member

WARNING: lavapipe is not a conformant vulkan implementation, testing use only.

Seems that the Vulkan driver is not properly installed, because lavapipe is a CPU simulation of Vulkan

@junrushao junrushao added the trouble shooting Asking for diagnosis label May 2, 2023
@zwm88
Copy link

zwm88 commented May 5, 2023

I have the same issue.
My driver is :nvidia-driver-530 (530.41.03-0ubuntu0.20.04.2).
5.15.0-71-generic

The demo video also shows "WARNING: lavapipe is not a conformant vulkan implementation, testing use only.", so it might not be the issue.

@jlmouton
Copy link

jlmouton commented May 5, 2023

If you already have your NVIDIA driver installed, make sure your system is picking it up by setting the Vulkan ICD environment variable:
export VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/nvidia_icd.json

If that's not solving your issue (it did for me), you probably already know that on some Linux distribution (Debian for instance), there is no support for NVIDIA GPUs, so you have to go through the setup. See here: https://phoenixnap.com/kb/nvidia-drivers-debian

I hope this helps. Once the Vulkan driver started to use my NVIDIA Tesla T4 on my VM, all went running fine.

@junrushao
Copy link
Member

The demo video also shows "WARNING: lavapipe is not a conformant vulkan implementation, testing use only.", so it might not be the issue.

That's correct. lavapipe is a CPU-simulated Vulkan implementation. If this message pops out, it probably means you might want to install a proper version of Vulkan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
trouble shooting Asking for diagnosis
Projects
None yet
Development

No branches or pull requests

4 participants