Skip to content

Conversation

@harshbhatt7585
Copy link

@harshbhatt7585 harshbhatt7585 commented Jun 13, 2024

sentencepiece package is missing, because of this giving this error while running the train_dreambooth_sd3.py. this PR just add this package into requirements_sd3.txt

The Error:

Traceback (most recent call last):
File "/home/harshb/workspace/ml-dev/sd3/diffusers/examples/dreambooth/train_dreambooth_sd3.py", line 1760, in
main(args)
File "/home/harshb/workspace/ml-dev/sd3/diffusers/examples/dreambooth/train_dreambooth_sd3.py", line 1058, in main
tokenizer_three = T5TokenizerFast.from_pretrained(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/harshb/miniconda3/envs/sd3/lib/python3.11/site-packages/transformers/tokenization_utils_base.py", line 2110, in from_pretrained
return cls._from_pretrained(
^^^^^^^^^^^^^^^^^^^^^
File "/home/harshb/miniconda3/envs/sd3/lib/python3.11/site-packages/transformers/tokenization_utils_base.py", line 2336, in _from_pretrained
tokenizer = cls(*init_inputs, **init_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/harshb/miniconda3/envs/sd3/lib/python3.11/site-packages/transformers/models/t5/tokenization_t5_fast.py", line 120, in init
super().init(
File "/home/harshb/miniconda3/envs/sd3/lib/python3.11/site-packages/transformers/tokenization_utils_fast.py", line 105, in init
raise ValueError(
ValueError: Cannot instantiate this tokenizer from a slow version. If it's based on sentencepiece, make sure you have sentencepiece installed.
Traceback (most recent call last):
File "/home/harshb/miniconda3/envs/sd3/bin/accelerate", line 8, in
sys.exit(main())
^^^^^^
File "/home/harshb/miniconda3/envs/sd3/lib/python3.11/site-packages/accelerate/commands/accelerate_cli.py", line 48, in main
args.func(args)
File "/home/harshb/miniconda3/envs/sd3/lib/python3.11/site-packages/accelerate/commands/launch.py", line 1097, in launch_command
simple_launcher(args)
File "/home/harshb/miniconda3/envs/sd3/lib/python3.11/site-packages/accelerate/commands/launch.py", line 703, in simple_launcher
raise subprocess.CalledProcessError(returncode=process.returncode, cmd=cmd)

@sayakpaul @yiyixuxu

@sayakpaul
Copy link
Member

Should be fixed by #8538.

@sayakpaul
Copy link
Member

So, closing your PR. Apologies.

@sayakpaul sayakpaul closed this Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants