ai-toolkit icon indicating copy to clipboard operation
ai-toolkit copied to clipboard

Please update dgx_requirements.txt

Open knishika62 opened this issue 10 months ago • 15 comments

It will work simply by applying the differences from requirements.txt (torchcodec is not needed).

knishika62 avatar Jan 13 '26 20:01 knishika62

In the meantime, you need only modify dgx_requirements.txt to use the later diffusers package and it will update properly.

jgrasty avatar Jan 17 '26 17:01 jgrasty

I understand, but new (or near new) users won't understand. I think it would be better to fix it.

knishika62 avatar Jan 17 '26 17:01 knishika62

I agree completely.

jgrasty avatar Jan 17 '26 17:01 jgrasty

So to fix this error

ImportErrorImportError: : Diffusers is out of date. Update diffusers to the latest version by doing pip uninstall diffusers and then pip install -r requirements.txtDiffusers is out of date. Update diffusers to the latest version by doing pip uninstall diffusers and then pip install -r requirements.txt

Do the following: pico requirements.txt

remove torchcodec

pip3 install -r requirements.txt

it will run normally after that.

bergstar avatar Jan 18 '26 14:01 bergstar

Change the diffusers line in dgx_requirements.txt to the line from requirements.txt and run pip install -r dgx_requirements.txt and you should be good to go.

jgrasty avatar Jan 18 '26 15:01 jgrasty

none of this worked for me. Would it work if I did a fresh install or do I need to wait for ostris to correct this if I don't want to modify anything?

signalstop avatar Jan 18 '26 22:01 signalstop

same issue here. none of the fixes have worked for me.

virtamouse avatar Jan 19 '26 16:01 virtamouse

Same not working for me

feebacktv avatar Jan 19 '26 16:01 feebacktv

I The above does work. I figured it out and It may be obvious to some (but not to others like me) You have to run the venv commands before running the commands above. First copy this line in your requirements.txt file (git+https://github.com/huggingface/diffusers) There will be an @and other numbers after the /diffusers copy that entire line and paste it in the dgx_requirements.txt file in the exact same line. Paste over whats there.

Then run the following commands CMD inside your toolkit folder and then cd ai-toolkit python -m venv venv .\venv\Scripts\activate pip install -r requirements.txt

Hope this helps someone.

virtamouse avatar Jan 20 '26 00:01 virtamouse

This should be resolved in the latest version. If not, please let me know.

jaretburkett avatar Mar 29 '26 19:03 jaretburkett

Im getting this issue again after doing an update.

virtamouse avatar Apr 05 '26 02:04 virtamouse

@shyt47 Can you be more specific?

jaretburkett avatar Apr 05 '26 13:04 jaretburkett

File "C:\Ai\ai-toolkit_origin\ai-toolkit\extensions_built_in\diffusion_models\ltx2_init_.py", line 1, in File "C:\Ai\ai-toolkit_origin\ai-toolkit\extensions_built_in\diffusion_models\ltx2_init_.py", line 1, in from .ltx2 import LTX2Model, LTX23Modelfrom .ltx2 import LTX2Model, LTX23Model File "C:\Ai\ai-toolkit_origin\ai-toolkit\extensions_built_in\diffusion_models\ltx2\ltx2.py", line 54, in File "C:\Ai\ai-toolkit_origin\ai-toolkit\extensions_built_in\diffusion_models\ltx2\ltx2.py", line 54, in raise ImportError(raise ImportError( ImportErrorImportError: : Diffusers is out of date. Update diffusers to the latest version by doing pip uninstall diffusers and then pip install -r requirements.txtDiffusers is out of date. Update diffusers to the latest version by doing pip uninstall diffusers and then pip install -r requirements.txt

(venv) C:\Ai\ai-toolkit_origin\ai-toolkit>pip show diffusers Name: diffusers Version: 0.38.0.dev0 Summary: State-of-the-art diffusion in PyTorch and JAX. Home-page: https://github.com/huggingface/diffusers Author: The Hugging Face team (past and future) with the help of all our contributors (https://github.com/huggingface/diffusers/graphs/contributors) Author-email: [email protected] License: Apache 2.0 License Location: C:\Ai\ai-toolkit\venv\Lib\site-packages Requires: filelock, httpx, huggingface-hub, importlib_metadata, numpy, Pillow, regex, requests, safetensors Required-by: lycoris_lora

(venv) C:\Ai\ai-toolkit_origin\ai-toolkit>pip show torch Name: torch Version: 2.7.0+cu128 Summary: Tensors and Dynamic neural networks in Python with strong GPU acceleration Home-page: https://pytorch.org/ Author: PyTorch Team Author-email: [email protected] License: BSD-3-Clause Location: C:\Ai\ai-toolkit\venv\Lib\site-packages Requires: filelock, fsspec, jinja2, networkx, sympy, typing-extensions Required-by: accelerate, bitsandbytes, clean-fid, clip-anytorch, controlnet_aux, dctorch, easy_dwpose, invisible-watermark, k-diffusion, kornia, lpips, lycoris_lora, open_clip_torch, optimum-quanto, peft, pytorch-fid, pytorch-wavelets, timm, torchaudio, torchdiffeq, torchsde, torchvision

protector131090 avatar Apr 10 '26 08:04 protector131090

so the fix is - you need to install venv with python 3.12 . other versions dont work

protector131090 avatar Apr 11 '26 12:04 protector131090

The torchcodec still can't install on the DGX machine.

Ian-Work-AI avatar Apr 14 '26 00:04 Ian-Work-AI