SASRec-1B-Books-neg512.sh 589 Bytes
Newer Older
chenzk's avatar
v1.0  
chenzk committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
# Copyright (c) 2024 Bytedance Ltd. and/or its affiliate

# batch_size = 16GPUs * 8 = 128
# flash attn need bf16
cd code && python3 main.py \
--config_file IDNet/llama_id.yaml overall/ID_deepspeed.yaml \
--optim_args.learning_rate 1e-3 \
--loss nce \
--train_batch_size 8 \
--MAX_ITEM_LIST_LENGTH 50 \
--epochs 201 \
--dataset amazon_books \
--num_negatives 512 \
--item_embed_dim 512 \
--show_progress True \
--update_interval 100 \
--fix_temp True \
--optim_args.weight_decay 0.1 \
--user_pretrain_dir user_pretrain_dir \
--checkpoint_dir checkpoint_dir \
--stopping_step 10