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

VRAM USAGE WHEN LOADING THE MODEL #4733

Closed
Fahmie23 opened this issue May 10, 2024 · 1 comment
Closed

VRAM USAGE WHEN LOADING THE MODEL #4733

Fahmie23 opened this issue May 10, 2024 · 1 comment
Labels

Comments

@Fahmie23
Copy link

Anything you want to discuss about vllm.

Hi guys, I have some question regarding. I have 256 GB VRAM of Tesla V100 32GB. I deploy model from TheBloke/Llama-2-70B-Chat-GPTQ. I set the dtype = float16. And then when i monitor the gpu usage, I can see that each of the layer take around 17GB per layer. My question is, it is supposed that when i load the model, it will take around 40GB total (model size) out of 256GB, but when I load it, the GPU usage is more than that. Why this is happened?

@Fahmie23 Fahmie23 added the misc label May 10, 2024
@robertgshaw2-neuralmagic
Copy link
Collaborator

We pre-allocate memory for the KV cache management.

So your model is using 40GB and all the rest of the memory is used to store KV caches

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

No branches or pull requests

2 participants