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

Ollama error after a few requests - ubatch must be set as the times of VS #12216

Open
mateHD opened this issue Oct 17, 2024 · 6 comments
Open
Assignees

Comments

@mateHD
Copy link

mateHD commented Oct 17, 2024

Hi,
My config: A770 + Ollama + OpenWebui + intelanalytics/ipex-llm-inference-cpp-xpu:latest docker

After 2-3 chat message I get this error:
ollama_llama_server: /home/runner/_work/llm.cpp/llm.cpp/llm.cpp/bigdl-core-xe/llama_backend/sdp_xmx_kernel.cpp:191: void sdp_causal_xmx_kernel(const void *, const void *, const void *, const void *, const void *, const void *, float *, const int64_t, const int64_t, const int64_t, const int64_t, const int64_t, const int64_t, const int64_t, const int64_t, const int64_t, const int64_t, const int64_t, const int64_t, const int64_t, const int64_t, const int64_t, const int64_t, const int64_t, const int64_t, const int64_t, const int, const int, const int, const int, const int, const float, sycl::queue &) [HD = 128, VS = 32, RepeatCount = 8, Depth = 16, ExecuteSize = 8]: Assertion `(context_length-seq_len)%VS==0 && "ubatch must be set as the times of VS\n"' failed.

If click the 'refresh'/'again' button in the OpenWebui chat Ollama reloads the model and it works, but again, after a few messages it fails.
Interesting thing is if I keep pressing the refresh button it works every time.
Screenshot From 2024-10-17 02-42-02
Screenshot From 2024-10-17 02-45-29

I've tried multiple models and the OpenWebui in the Intel docker + the official latest version.

Can someone point me to the right direction? Thank you

@mateHD mateHD changed the title Ollama error after a few request - ubatch must be set as the times of VS Ollama error after a few requests - ubatch must be set as the times of VS Oct 17, 2024
@leonardozcm leonardozcm self-assigned this Oct 17, 2024
@mateHD
Copy link
Author

mateHD commented Oct 17, 2024

"Interesting thing is if I keep pressing the refresh button it works every time."

I'd like to correct myself. I've tried this with smaller models and I can click refresh 10 times, it works every time, but now I tried it with Mistral-Small which is a larger model and it failed even with the refresh button, not just after a new message.

@mateHD
Copy link
Author

mateHD commented Oct 17, 2024

Screencast.From.2024-10-17.03-37-55.webm

You can see a first few fails first try, ollama reloads the model every time, but than by clicking only the refresh button it works perfectly.

@acane77
Copy link

acane77 commented Oct 17, 2024

"Interesting thing is if I keep pressing the refresh button it works every time."

I'd like to correct myself. I've tried this with smaller models and I can click refresh 10 times, it works every time, but now I tried it with Mistral-Small which is a larger model and it failed even with the refresh button, not just after a new message.

I encountered a similar problem "ubatch must be set as the times of GS".

@leonardozcm
Copy link
Contributor

Thank you for your feedback, you may try ipex-llm[cpp] latest (version number >= 10.17) tomorrow.

@mateHD
Copy link
Author

mateHD commented Oct 18, 2024

Thank you for your feedback, you may try ipex-llm[cpp] latest (version number >= 10.17) tomorrow.

The original issue is fixed, no errors and it doesn't reload, but after the first request the response it total nonsense, just random text. Same behavior with all models.

Screenshot From 2024-10-18 22-05-11

If you need any more information, please let me know. I really appreciate the help.

@leonardozcm
Copy link
Contributor

Hi everyone, we have done another attempt and it is working on test cases, pls try again tomorrow with latest ipex-llm[cpp]
image

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

No branches or pull requests

4 participants