This is a project for benchmarking data-loaders, with an emphasis on over-the-network data loading.
Create a .env
file with the following information
DOCKER_NAME=<name of org>/<name of container>:<version>
DYNACONF_AWS_ACCESS_KEY_ID=<aws id>
DYNACONF_AWS_SECRET_ACCESS_KEY=<aws secret>
DYNACONF_BUCKET_NAME=<bucket name in aws> # needs to exist before running experiments
DYNACONF_S3_ENDPOINT=http://172.28.142.23:10000 #
- Clone this repository
- Export the wheel password
export WHEEL_PASSWORD=<password>
- Decrypt the wheel:
./infrastructure/decrypt_secret.sh
- Build the docker container:
./scripts/build.sh
- Start the minio (S3 like) container:
./scripts/start_minio.sh
(check that IP and PORT match theS3_ENDPOINT
) - Run the container:
./scripts/run.sh
- Run all the experiments:
./experiments/run_all.sh
- Create the file
~/.aws/credentials
with the following content:
[default]
aws_access_key_id = <aws id>
aws_secret_access_key = <aws secret>
- Make sure that an S3 bucket is created with the name defined above and that it is accessible with the credentials provided.
- Download the
get_ecr
script to fetch the latest docker image:wget https://raw.githubusercontent.com/kiedanski/dataloader-benchmarks/main/scripts/get_erc.sh && chmod +x get_ecr.sh
- Download the latest docker image locally:
./get_ecr.sh
- Download the run script:
wget https://raw.githubusercontent.com/kiedanski/dataloader-benchmarks/main/scripts/run.sh && chmod +x run.sh
- Execute the run command to get into the docker container:
./run.sh
- Run all the experiments:
./experiments/run_all.sh
Inside the container run:
python src/plots/download_results.py
python src/plots/generate_plots.py
Pytorch | FFCV | Hub | Deep Lake | Torchdata | Webdataset | Squirrel | ||
---|---|---|---|---|---|---|---|---|
CIFAR-10 | default | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
remote | ❌ | ✅ | ✅ | ✅ | ❌ | ✅ | ❓ | |
filtering | ✅ | ❓ | ✅ | ✅ | ✅ | ✅ | ❓ | |
multi-gpu | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ | |
RANDOM | default | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
remote | ❌ | ✅ | ✅ | ✅ | ❌ | ✅ | ❓ | |
filtering | ✅ | ❓ | ✅ | ✅ | ✅ | ✅ | ❓ | |
multi-gpu | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ | |
CoCo | default | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ |
remote | ❌ | ❌ | ✅ | ✅ | ❌ | ✅ | ❓ | |
filtering | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ | ❓ | |
multi-gpu | ✅ | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ |