# Autotrain container seems to be broken

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fautotrain-container-seems-to-be-broken%2F91626%3E%5C
**Category:** Spaces\
**Created:** [June 11, 2024, 9:26pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fautotrain-container-seems-to-be-broken%2F91626 "2024-06-11T21:26:39Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![acoulson2000](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@acoulson2000](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Facoulson2000)%5C
**Post date:** [June 11, 2024, 9:26pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fautotrain-container-seems-to-be-broken%2F91626%2F1 "2024-06-11T21:26:39Z")

</div>

Starting a space, I got a runtime error:  
Successfully installed autotrain-advanced-0.7.119  
Your installed package `nvidia-ml-py` is corrupted. Skip patch functions `nvmlDeviceGet{Compute,Graphics,MPSCompute}RunningProcesses`. You may get incorrect or incomplete results. Please consider reinstall package `nvidia-ml-py` via `pip3 install --force-reinstall nvidia-ml-py nvitop`.  
Your installed package `nvidia-ml-py` is corrupted. Skip patch functions `nvmlDeviceGetMemoryInfo`. You may get incorrect or incomplete results. Please consider reinstall package `nvidia-ml-py` via `pip3 install --force-reinstall nvidia-ml-py nvitop`.

---

<div class="post-metadata">

**Author:** ![ozymandiasssssss](https://avatars.discourse-cdn.com/v4/letter/o/3ec8ea/32.png) [@ozymandiasssssss](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fozymandiasssssss)%5C
**Post date:** [October 12, 2024, 9:20am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fautotrain-container-seems-to-be-broken%2F91626%2F2 "2024-10-12T09:20:38Z")

</div>

same here did you manage to fix it?

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [October 12, 2024, 10:27am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fautotrain-container-seems-to-be-broken%2F91626%2F3 "2024-10-12T10:27:43Z")

</div>

Actually, it is a token error, he said. Can’t tell from the error message…

> **[nvidia-ml-py corrupted · huggingface/autotrain-advanced · Discussion #603](https://github.com/huggingface/autotrain-advanced/discussions/603)**
>
> autotrain app --port 8080 --host 127.0.0.1 Your installed package nvidia-ml-py is corrupted. Skip patch functions nvmlDeviceGet{Compute,Graphics,MPSCompute}RunningProcesses. You may get incorrect o...

---

<div class="post-metadata">

**Author:** ![acoulson2000](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@acoulson2000](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Facoulson2000)%5C
**Post date:** [October 14, 2024, 4:07pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fautotrain-container-seems-to-be-broken%2F91626%2F4 "2024-10-14T16:07:04Z")

</div>

I never did. Just gave up.

---

<div class="post-metadata">

**Author:** ![acoulson2000](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@acoulson2000](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Facoulson2000)%5C
**Post date:** [October 14, 2024, 4:10pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fautotrain-container-seems-to-be-broken%2F91626%2F5 "2024-10-14T16:10:30Z")

</div>

I was starting it using Spaces, so I don’t see how a token could be specified. Nothing in the referenced documentation states how to set an environment variable using Spaces.

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [October 14, 2024, 11:00pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fautotrain-container-seems-to-be-broken%2F91626%2F6 "2024-10-14T23:00:19Z")

</div>

Set HF\_TOKEN into your space’s Secret.

> [@Runtime error trying to create Autotrain space](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fruntime-error-trying-to-create-autotrain-space%2F61727)%3A
>
> I am following the instructions described here: [Updating AutoTrain Advanced to Latest Version](https://huggingface.co/docs/autotrain/v0.6.10/getting_started#updating-autotrain-advanced-to-latest-version) However as the space is built, it returns a runtime error with the following error: File “/app/src/autotrain/apps/utils.py”, line 94, in \_login\_user username = user\_info[“name”] KeyError: ‘name’ I am logged in and have a payment method on file, so at a bit of a loss on how to fix this. Any guidance is appreciated, thank you!

---

<div class="post-metadata">

**Author:** ![Xamli](https://avatars.discourse-cdn.com/v4/letter/x/6f9a4e/32.png) [@Xamli](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FXamli)%5C
**Post date:** [November 12, 2024, 6:26am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fautotrain-container-seems-to-be-broken%2F91626%2F7 "2024-11-12T06:26:23Z")

</div>

I am facing this issue since last update from @hugginfaces. I have tried factory rebuild, updating nltk which is already 3.9.1. Hoping to get this fixed or help sorted by @huggingface !

---

<div class="post-metadata">

**Author:** ![Xamli](https://avatars.discourse-cdn.com/v4/letter/x/6f9a4e/32.png) [@Xamli](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FXamli)%5C
**Post date:** [November 13, 2024, 12:19pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fautotrain-container-seems-to-be-broken%2F91626%2F8 "2024-11-13T12:19:38Z")

</div>

Apparently issues is due to warning in transformers 4.46.2 version with mismatch “Trainer.tokenizer is now deprecated. You should use Trainer.processing\_class instead.”, reverted to 4.43.2 seems to be working, will try 4.45.2 now.

issue not resolved but getting it work fine with older version, hopefully, 4.46.2 arguments will be updated or resolved soon. @huggingface

Thanks to : [Tokenizer deprecating in ORPO - #4 by John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftokenizer-deprecating-in-orpo%2F113928%2F4)
