Spaces:
Runtime error
Runtime error
export PYTHONPATH="${PYTHONPATH}:/workspace/code" | |
export PYTHONPATH="${PYTHONPATH}:/workspace/code/examples/big_ae" | |
# export TRAIN_FILE=../data/datasets/wikitext-2/train.txt | |
# export TEST_FILE=../data/datasets/wikitext-2/valid.txt | |
# export GPU_ID=0,1 | |
# CUDA_VISIBLE_DEVICES=$GPU_ID python examples/big_ae/run_encoding_generation.py \ | |
# --checkpoint_dir=../output/philly_clm_wiki2_0.0 \ | |
# --output_dir=../output/philly_clm_wiki2_0.0 \ | |
# --encoder_model_type=bert \ | |
# --encoder_model_name_or_path=bert-base-uncased \ | |
# --decoder_model_type=gpt2 \ | |
# --decoder_model_name_or_path=gpt2 \ | |
# --eval_data_file=$TEST_FILE \ | |
# --per_gpu_eval_batch_size=1 | |
# export TRAIN_FILE=../data/datasets/debug_data/train.txt | |
# export TEST_FILE=../data/datasets/debug_data/test.txt | |
# export GPU_ID=0,1 | |
# CUDA_VISIBLE_DEVICES=$GPU_ID python examples/big_ae/run_encoding_generation.py \ | |
# --checkpoint_dir=../output/local_lm_vae_debug_bert_gpt \ | |
# --output_dir=../output/local_lm_vae_debug_bert_gpt \ | |
# --encoder_model_type=bert \ | |
# --encoder_model_name_or_path=bert-base-uncased \ | |
# --decoder_model_type=gpt2 \ | |
# --decoder_model_name_or_path=gpt2 \ | |
# --eval_data_file=$TEST_FILE \ | |
# --per_gpu_eval_batch_size=1 \ | |
# --gloabl_step_eval 400 | |
# philly_vae_news_ft_20epoch_40ae_klon_b1.0_d1_r00.0_ra0.5 | |
export TRAIN_FILE=../data/datasets/news_data/train.txt | |
export TEST_FILE=../data/datasets/news_data/valid.txt | |
export GPU_ID=1 | |
CUDA_VISIBLE_DEVICES=$GPU_ID python examples/big_ae/run_gpt2_generation.py \ | |
--dataset News \ | |
--checkpoint_dir=../output/philly_clm_news_gpt2_epoch10 \ | |
--output_dir=../output/local_lm_vae_news_bert_gpt \ | |
--encoder_model_type=bert \ | |
--encoder_model_name_or_path=bert-base-cased \ | |
--decoder_model_type=gpt2 \ | |
--decoder_model_name_or_path=gpt2 \ | |
--train_data_file=$TRAIN_FILE \ | |
--eval_data_file=$TEST_FILE \ | |
--per_gpu_eval_batch_size=1 \ | |
--gloabl_step_eval 11100 \ | |
--block_size 256 \ | |
--max_seq_length 128 \ | |
--num_sents 100 \ | |
--temperature 0.5 \ | |
--top_p 0.0 | |
# export TRAIN_FILE=../data/datasets/debug_data/train.txt | |
# export TEST_FILE=../data/datasets/debug_data/test.txt | |
# export GPU_ID=1 | |
# CUDA_VISIBLE_DEVICES=$GPU_ID python examples/big_ae/run_encoding_generation.py \ | |
# --dataset Debug \ | |
# --checkpoint_dir=../output/local_lm_vae_debug_bert_gpt \ | |
# --output_dir=../output/local_lm_vae_debug_bert_gpt \ | |
# --encoder_model_type=bert \ | |
# --encoder_model_name_or_path=bert-base-uncased \ | |
# --decoder_model_type=gpt2 \ | |
# --decoder_model_name_or_path=gpt2 \ | |
# --train_data_file=$TRAIN_FILE \ | |
# --eval_data_file=$TEST_FILE \ | |
# --per_gpu_eval_batch_size=1 \ | |
# --gloabl_step_eval 800 \ | |
# --total_sents 10 |