CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
huggingface

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: huggingface/notebooks
Path: blob/main/sagemaker/22_accelerate_sagemaker_examples/src/seq2seq/launch.sh
Views: 2555
1
accelerate launch --config_file accelerate_config.yaml run_seq2seq_no_trainer.py \
2
--dataset_name "smangrul/MuDoConv" \
3
--max_source_length 128 \
4
--source_prefix "chatbot: " \
5
--max_target_length 64 \
6
--val_max_target_length 64 \
7
--val_min_target_length 20 \
8
--n_val_batch_generations 5 \
9
--n_train 10000 \
10
--n_val 1000 \
11
--pad_to_max_length True\
12
--num_beams 10 \
13
--model_name_or_path "facebook/blenderbot-400M-distill" \
14
--per_device_train_batch_size 16 \
15
--per_device_eval_batch_size 16 \
16
--learning_rate 1e-6 \
17
--weight_decay 0.0 \
18
--num_train_epochs 1 \
19
--gradient_accumulation_steps 1 \
20
--num_warmup_steps 100 \
21
--output_dir "/opt/ml/model" \
22
--seed 25 \
23
--logging_steps 100 \
24
--report_name "blenderbot_400M_finetuning"
25