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

glm-4v, A770, got error " RuntimeError: probability tensor contains either inf, nan or element < 0" #12857

Open
aixiwangintel opened this issue Feb 20, 2025 · 4 comments
Assignees

Comments

@aixiwangintel
Copy link

glm-4v, A770, got error " RuntimeError: probability tensor contains either inf, nan or element < 0"

Image

test sample image:

Image

@aixiwangintel
Copy link
Author

prompt: describe the image. sample image is from internet.

@qiuxin2012 qiuxin2012 self-assigned this Feb 20, 2025
@qiuxin2012
Copy link
Contributor

I try your prompt and image with https://github.com/intel/ipex-llm/tree/main/python/llm/example/GPU/HuggingFace/Multimodal/glm-4v, it works fine.

Image

Our glm-4v model is downloaded in Aug 6 2024. I will try the latest glm-4v later.

@qiuxin2012
Copy link
Contributor

@aixiwangintel I have tried the latest glm-4v-9b. It works fine too. Are you using https://github.com/intel/ipex-llm/blob/main/python/llm/example/GPU/HuggingFace/Multimodal/glm-4v/generate.py?

@aixiwangintel
Copy link
Author

New update:
-n-predict 128 works, but other configurations meet fails.

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

3 participants