Download scripts/verify_images.sh from Dawn9705/olmes-code-executor-images: direct link, hf CLI and curl.
- Browser
- Download file 898 Bytes
-
https://huggingface.co/datasets/Dawn9705/olmes-code-executor-images/resolve/main/scripts/verify_images.sh
- Command line
-
hf download hf://datasets/Dawn9705/olmes-code-executor-images/scripts/verify_images.sh
-
curl -L -o verify_images.sh https://huggingface.co/datasets/Dawn9705/olmes-code-executor-images/resolve/main/scripts/verify_images.sh
898 Bytes
| set -euo pipefail | |
| declare -A EXPECTED_IDS=( | |
| ["olmo-bcb-execution:latest"]="sha256:afe3f2fc8719f2720fd5754e72f0fd028488f6e076593afdf26941afbe84aeab" | |
| ["olmo-ds1000-execution:latest"]="sha256:aa113c7b9b51dcab02f51a8ce91623aca9794c21873f5e19f01fcbf79c467fda" | |
| ["olmo-multipl-execution:latest"]="sha256:8b7fd428da677ac9ca683968e83eeab6c0f8666bd044e499ec46ea9bb40b25e6" | |
| ) | |
| for image in "${!EXPECTED_IDS[@]}"; do | |
| actual_id="$(docker image inspect "${image}" --format '{{.Id}}')" | |
| platform="$(docker image inspect "${image}" --format '{{.Os}}/{{.Architecture}}')" | |
| if [[ "${actual_id}" != "${EXPECTED_IDS[${image}]}" ]]; then | |
| echo "Image ID mismatch for ${image}: ${actual_id}" >&2 | |
| exit 1 | |
| fi | |
| if [[ "${platform}" != "linux/amd64" ]]; then | |
| echo "Platform mismatch for ${image}: ${platform}" >&2 | |
| exit 1 | |
| fi | |
| echo "OK ${image} ${actual_id} ${platform}" | |
| done | |