text-generation-webui icon indicating copy to clipboard operation
text-generation-webui copied to clipboard

How to set a number of cpu thereds to use?

Open HCBlackFox opened this issue 1 year ago • 1 comments

I am using cpu for LLm and how predictable it is slow, but also it uses only 15-20% of cpu power. Whats may be wrong?

HCBlackFox avatar Mar 19 '23 16:03 HCBlackFox

Transformers/Accelerate does this in CPU mode too? Ouch.

edit: Hey.. so a shot in the dark, did you try with https://github.com/zphang/transformers.git@68d640f7c368bcaaaecfc678f11908ebbd3d6176

That transformer would use multiple cores for me for GPTQ and RWKV loading.


pip uninstall transformers
pip install git+https://github.com/zphang/transformers.git@3884da12ce327667d4df5101aef3533cc32be61f 

To go back:


pip uninstall transformers
pip install git+https://github.com/huggingface/transformers

Ph0rk0z avatar Mar 19 '23 16:03 Ph0rk0z

Transformers/Accelerate does this in CPU mode too? Ouch.

edit: Hey.. so a shot in the dark, did you try with https://github.com/zphang/transformers.git@68d640f7c368bcaaaecfc678f11908ebbd3d6176

That transformer would use multiple cores for me for GPTQ and RWKV loading.


pip uninstall transformers
pip install git+https://github.com/zphang/transformers.git@3884da12ce327667d4df5101aef3533cc32be61f 

To go back:


pip uninstall transformers
pip install git+https://github.com/huggingface/transformers

Oh, thank u, i will try)

HCBlackFox avatar Mar 28 '23 13:03 HCBlackFox

This issue has been closed due to inactivity for 30 days. If you believe it is still relevant, please leave a comment below.

github-actions[bot] avatar Apr 27 '23 23:04 github-actions[bot]