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

getting error during inference "Unsupported head size: 32" #86

Open
2 of 4 tasks
abhijithnair1 opened this issue Nov 30, 2023 · 2 comments
Open
2 of 4 tasks

getting error during inference "Unsupported head size: 32" #86

abhijithnair1 opened this issue Nov 30, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@abhijithnair1
Copy link

abhijithnair1 commented Nov 30, 2023

Information

  • Docker
  • The CLI directly

Tasks

  • An officially supported command
  • My own modifications

Reproduction

I tried lora finetuning a smaller variant of mistral architecture but I am getting this error below,

GenerationError: Request failed during generation: Server error: Unsupported head size: 32

I used rank: 16, alpha: 32

https://huggingface.co/Locutusque/TinyMistral-248M-Instruct

Expected behavior

It should have worked since it's following the mistral architecture. (TinyLlama was working fine)

@tgaddair
Copy link
Contributor

Looks like the issue is coming from Paged Attention (vLLM): vllm-project/vllm#1455

There's a solution proposed in that thread which is pretty straightforward, but will require us to fork vllm and add a case for 32 here:

https://github.com/vllm-project/vllm/blob/1f24755bf802a2061bd46f3dd1191b7898f13f45/csrc/attention/attention_kernels.cu#L610

Happy to make this change if this model is important for you!

@tgaddair tgaddair added the bug Something isn't working label Nov 30, 2023
@abhijithnair1
Copy link
Author

abhijithnair1 commented Nov 30, 2023

@tgaddair It's not that important for us right now. I was just trying it out as an alternative to GPT2 adapters (i.e., not working). I'll keep an eye out on this thread for any updates about this ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants