Useful Commands
Useful Commands
--training_dir /home/ec2-user/SageMaker/9.1_EXP_fairscale/fairscale/train \
--test_dir /home/ec2-user/SageMaker/9.1_EXP_fairscale/fairscale/test \
--model_uri /home/ec2-user/SageMaker/9.1_EXP_fairscale/fairscale/model_uri \
--rank 0 \
--world_size 8
--deepspeed examples/deepspeed/ds_z2_config.json \
--stage sft \
ECR login
aws ecr get-login --no-include-email --region "us-east-1" | awk '{print $6}' | docker login -u AWS --
password-stdin "381492148851.dkr.ecr.us-east-1.amazonaws.com"
Docker pull
Docker run
Docker tag
Docker rmi
Docker interactive
docker exec -it <container ID> /bin/bash
Docker build
docker-compose build
docker-compose up
Install aws-cli
rm -Rf ~/.cache/
Alembic
alembic heads
alembic revision -m ‘message’ ==> generates new migration/revision and assigns the metadata
alembic history ==> see complete log of applied migrations to the database.
alembic upgrade head ==> to migrate the database to the head revision
Git Commands
alembic history
git add .