-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to retrain(fine-tuned) custom datasets #317
Comments
Hi, To train the model you need to use the script You can use a command such as: python train.py \
--assert_TPU_available \
--do_train --do_eval \
--config_name config/mini_glu --dtype bfloat16 \
--tokenizer_name boris/dalle-mini-tokenizer \
--dataset_repo_or_path PATH_TO_DATASET \
--blank_caption_prob 0.1 \
--output_dir output --overwrite_output_dir \
--per_device_train_batch_size 34 --gradient_accumulation_steps 3 \
--optim distributed_shampoo --block_size 1024 --beta1 0.9 --beta2 0.99 \
--learning_rate 0.0001 --warmup_steps 2000 \
--mp_devices 1 \
--logging_steps 100 --eval_steps 400 --save_steps 4000 --log_model This command should work well on a TPU v3-8. You'd need to adapt it slightly if you're on a GPU. If you use a trained model, replace I should probably add it in the README.md somewhere… |
which framework is used for training ? I didn't find any torch or tf import in train.py ? |
I am a Japanese university student studying Text-to-Image. I have read #307 and created a custom dataset, but I don't know what to do next. Can you give me some hints?
The text was updated successfully, but these errors were encountered: