You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hit this error when using omniperf on official rocm/vllm docker.
ERROR Please ensure that the 'en_US.UTF-8' locale is available on your system.
ERROR unsupported locale setting
Not sure how to resolve this issue properly. But was able to hack around it by modifying /opt/rocm/libexec/omniperf/utils/utils.py to skip the setlocale call entirely. Everything works afterwards.
Hi @BowenBao, thanks for reaching out! I think you might be missing the locale in your docker. Can you run the following command insider your rocm/vllm docker container
Hi @tcgu-amd thanks for advice. Yes running sudo apt update && sudo apt install locales && sudo locale-gen en_US.UTF-8 resolves the issue. Is it possible to relax this constraint though? It would be better UX imo if omniperf just works out of the box.
Hey @BowenBao, I think this is a rather an unusual case, since the locale would usually be available on the system (it is commonly a part of the system installation process). Relying on a specific locale is pretty common to allow applications to determine the date, time, display, and keyboard to use. Given that configuring the locales is a fairly common practice and most systems should have it configured, I think it is fair the way Omniperf currently works. If the locale happens to not be available, it is probably a good idea to install the correct one anyways :)
Describe your question
Hit this error when using omniperf on official rocm/vllm docker.
Not sure how to resolve this issue properly. But was able to hack around it by modifying
/opt/rocm/libexec/omniperf/utils/utils.py
to skip the setlocale call entirely. Everything works afterwards.I'm not sure if this function call should be strictly required for using omniperf..
Additional context
No response
The text was updated successfully, but these errors were encountered: