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

How can I remove the limitation that the CPU only calls half of the cores? #270

Open
Aizizhu opened this issue Oct 13, 2024 · 5 comments
Open

Comments

@Aizizhu
Copy link

Aizizhu commented Oct 13, 2024

How can I remove the limitation that the CPU only calls half of the cores?

@rupeshs
Copy link
Owner

rupeshs commented Oct 14, 2024

You can change it by setting an environment variable GGUF_THREADS=10

GGUF_THREADS = environ.get("GGUF_THREADS", cpus)

@Aizizhu
Copy link
Author

Aizizhu commented Oct 14, 2024

You can change it by setting an environment variable GGUF_THREADS=10

GGUF_THREADS = environ.get("GGUF_THREADS", cpus)

Thank you, I have found this in the previous issues. I would like to ask how to modify openvino and lcm.

@maolei133
Copy link

You can change it by setting an environment variable GGUF_THREADS=10

GGUF_THREADS = environ.get("GGUF_THREADS", cpus)

image
Thank you, My server's CPU has 96 cores, and by default, it should be using 48 cores. However, in practice, only 24 cores are being utilized. Setting the "GGUF_THREADS" environment variable also doesn't seem to have any effect.

@rupeshs
Copy link
Owner

rupeshs commented Oct 15, 2024

You can change it by setting an environment variable GGUF_THREADS=10

GGUF_THREADS = environ.get("GGUF_THREADS", cpus)

image Thank you, My server's CPU has 96 cores, and by default, it should be using 48 cores. However, in practice, only 24 cores are being utilized. Setting the "GGUF_THREADS" environment variable also doesn't seem to have any effect.

which mode are you using? is it LCM-OpenVINO?

@maolei133
Copy link

You can change it by setting an environment variable GGUF_THREADS=10

GGUF_THREADS = environ.get("GGUF_THREADS", cpus)

image Thank you, My server's CPU has 96 cores, and by default, it should be using 48 cores. However, in practice, only 24 cores are being utilized. Setting the "GGUF_THREADS" environment variable also doesn't seem to have any effect.

which mode are you using? is it LCM-OpenVINO?

Yes LCM-OpenVINO, the model uses rupeshs/FLUX.1-schnell-openvino-int4

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

No branches or pull requests

3 participants