nvidia-ml-py corrupted #603
mranticodes
started this conversation in
General
Replies: 2 comments 7 replies
-
This has been discussed several times in issues and is not an error. Your actual error is missing HF_TOKEN, the answer to which is clearly mentioned in docs: hf.co/docs/autotrain |
Beta Was this translation helpful? Give feedback.
5 replies
-
You need to set an ENV variable it needs to be formated as the name = HF_TOKEN and your value = YOUR_TOKEN |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
autotrain app --port 8080 --host 127.0.0.1
Your installed package
nvidia-ml-py
is corrupted. Skip patch functionsnvmlDeviceGet{Compute,Graphics,MPSCompute}RunningProcesses
. You may get incorrect or incomplete results. Please consider reinstall packagenvidia-ml-py
viapip3 install --force-reinstall nvidia-ml-py nvitop
.Your installed package
nvidia-ml-py
is corrupted. Skip patch functionsnvmlDeviceGetMemoryInfo
. You may get incorrect or incomplete results. Please consider reinstall packagenvidia-ml-py
viapip3 install --force-reinstall nvidia-ml-py nvitop
.INFO | 2024-04-28 06:20:48 | autotrain.app::31 - Starting AutoTrain...
ERROR | 2024-04-28 06:20:48 | autotrain.app::40 - HF_TOKEN not set
Traceback (most recent call last):
File "/usr/local/bin/uvicorn", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/uvicorn/main.py", line 409, in main
run(
File "/usr/local/lib/python3.9/dist-packages/uvicorn/main.py", line 575, in run
server.run()
File "/usr/local/lib/python3.9/dist-packages/uvicorn/server.py", line 65, in run
return asyncio.run(self.serve(sockets=sockets))
File "/usr/lib/python3.9/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
return future.result()
File "/usr/local/lib/python3.9/dist-packages/uvicorn/server.py", line 69, in serve
await self._serve(sockets)
File "/usr/local/lib/python3.9/dist-packages/uvicorn/server.py", line 76, in _serve
config.load()
File "/usr/local/lib/python3.9/dist-packages/uvicorn/config.py", line 433, in load
self.loaded_app = import_from_string(self.app)
File "/usr/local/lib/python3.9/dist-packages/uvicorn/importer.py", line 19, in import_from_string
module = importlib.import_module(module_str)
File "/usr/lib/python3.9/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 790, in exec_module
File "", line 228, in _call_with_frames_removed
File "/usr/local/lib/python3.9/dist-packages/autotrain/app.py", line 41, in
raise ValueError("HF_TOKEN environment variable is not set")
ValueError: HF_TOKEN environment variable is not set
I got the following the message while trying to run the application.
Beta Was this translation helpful? Give feedback.
All reactions