-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathjax_train.sh
executable file
·49 lines (45 loc) · 1.64 KB
/
jax_train.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/sh
# Make-A-Video Latent Diffusion Models
# Copyright (C) 2023 Lopho <[email protected]>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#export WANDB_API_KEY="your_api_key"
export WANDB_ENTITY="tempofunk"
export WANDB_JOB_TYPE="train"
export WANDB_PROJECT="makeavid-sd-tpu"
python jax_train.py \
--dataset_path ../storage/dataset/tempofunk-s \
--model_path ../storage/trained_models/ep20 \
--from_pt False \
--convert2d False \
--only_temporal True \
--output_dir ../storage/output \
--batch_size 1 \
--num_frames 24 \
--epochs 20 \
--lr 0.00005 \
--warmup 0.1 \
--decay 0.0 \
--sample_size 64 64 \
--log_every_step 50 \
--save_every_epoch 1 \
--sample_every_epoch 1 \
--seed 2 \
--use_memory_efficient_attention True \
--dtype bfloat16 \
--param_dtype float32 \
--verbose True \
--dataset_cache_dir ../storage/cache/hf/datasets \
--wandb True
# sudo rm /tmp/libtpu_lockfile