facebookresearch / atlas

Code repository for supporting the paper "Atlas Few-shot Learning with Retrieval Augmented Language Models",(https//arxiv.org/abs/2208.03299)
Other
517 stars 67 forks source link

[Atlas]Added torchrun support #4

Closed mlomeli1 closed 1 year ago

mlomeli1 commented 1 year ago

This PR:

torchrun --standalone --nnodes 1 --nproc_per_node 8 finetune_qa.py --train_data $DATA_DIR/nq_data/train.100-shot.jsonl --eval_data $DATA_DIR/nq_data/test.jsonl --name "my_finetuning_experiment" --checkpoint_dir $DATA_DIR/experiments/ --total_steps 31 --index_mode faiss --faiss_index_type pq --faiss_code_size 16 --model_path $DATA_DIR/models/atlas/base --load_index_path $DATA_DIR/indices/atlas/wiki/base --reader_model_type google/t5-base-lm-adapt