Seanmonami commited on
Commit
86488a3
·
verified ·
1 Parent(s): 2767608

Upload docker_build/build.sh with huggingface_hub

Browse files
Files changed (1) hide show
  1. docker_build/build.sh +16 -0
docker_build/build.sh ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ # Prepare CPU-normalized requirements from pip freezes, then docker build.
3
+ set -x
4
+ cd ~/mlip_router/docker_build
5
+ mkdir -p requirements
6
+ for e in grace nequip esen tace2 mbd; do
7
+ # drop CUDA-only deps; normalize torch pins to +cpu
8
+ grep -v -E '^(nvidia-|triton)' ~/mlip_router/env_snapshots/${e}_pip_freeze.txt \
9
+ | sed -e 's/^torch==2\.4\.1$/torch==2.4.1+cpu/' \
10
+ -e 's/^torch==2\.8\.0$/torch==2.8.0+cpu/' \
11
+ -e 's/+pt24cu121/+pt24cpu/' \
12
+ > requirements/${e}.txt
13
+ done
14
+ docker build -t mlip-router-stack:2026-08-21 . 2>&1
15
+ echo "BUILD_EXIT=$?"
16
+ docker images mlip-router-stack