Skip to content

Commit

Permalink
update test script
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfitzek committed Aug 22, 2023
1 parent 14fd928 commit 771be4b
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
module purge

# Declare the Python script name as a variable
python_script_name="3_train_encoder_decoder.py"
python_script_name="test.py"

echo "Outside of apptainer, host python version:"
python3 --version
apptainer exec ~/RydbergGPT/images/pytorch.sif echo "This is from inside a container. Check python version:"
apptainer exec ~/RydbergGPT/images/pytorch.sif python --version
apptainer exec ~/RydbergGPT/images/pytorch.sif python ~/RydbergGPT/examples/${python_script_name}
# echo "Outside of apptainer, host python version:"
# python3 --version
# apptainer exec ~/RydbergGPT/images/pytorch.sif echo "This is from inside a container. Check python version:"
# apptainer exec ~/RydbergGPT/images/pytorch.sif python --version
# apptainer exec ~/RydbergGPT/images/pytorch.sif python ~/RydbergGPT/examples/${python_script_name}

apptainer exec ~/RydbergGPT/images/pytorch.sif python ~/RydbergGPT/${python_script_name} --config_name=config_small

0 comments on commit 771be4b

Please sign in to comment.