GitHub Actions commited on
Commit
42cae29
·
1 Parent(s): aefa161

deploy: sync from GitHub 618f20bc48b85000312050d45345eefcae49b3c6

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -0
  2. README.md +28 -4
Dockerfile CHANGED
@@ -1,5 +1,6 @@
1
  # CPU image - use Dockerfile.gpu for GPU support
2
  FROM python:3.12.13-slim-trixie
 
3
 
4
  # run updates before switching over to non-root user
5
  RUN apt-get update && apt-get install -y --no-install-recommends \
 
1
  # CPU image - use Dockerfile.gpu for GPU support
2
  FROM python:3.12.13-slim-trixie
3
+ # Cache bust: 2026-03-19
4
 
5
  # run updates before switching over to non-root user
6
  RUN apt-get update && apt-get install -y --no-install-recommends \
README.md CHANGED
@@ -105,28 +105,52 @@ Process 500 images for:
105
  ```
106
  The application will be available at `http://localhost:7860`
107
 
108
- ### Docker Deployment
109
 
110
  1. **Build the Container**:
111
 
112
- - For only CPU usage:
 
 
 
113
 
114
  ```bash
115
  docker pull breedinginsight/nemaquant
116
  ```
117
 
118
- - For GPU usage:
 
119
 
120
  ```bash
121
- docker pull breedinginsight/nemaquant:latest-gpu
 
 
 
 
 
 
 
 
122
  ```
123
 
 
 
124
  2. **Run the Container**:
125
 
 
 
126
  ```bash
127
  docker run -p 7860:7860 -v $(pwd)/results:/app/results breedinginsight/nemaquant
128
  ```
129
 
 
 
 
 
 
 
 
 
130
  ### Hugging Face Spaces Deployment
131
 
132
  1. Create a new Space on [Hugging Face](https://huggingface.co/new-space)
 
105
  ```
106
  The application will be available at `http://localhost:7860`
107
 
108
+ ### Container Deployment
109
 
110
  1. **Build the Container**:
111
 
112
+ DEfault image `breedinginsight/nemaquant` is exclusive for **CPU usage**.
113
+ For **GPU usage** replace the image by: `breedinginsight/nemaquant:latest-gpu`
114
+
115
+ - With Docker
116
 
117
  ```bash
118
  docker pull breedinginsight/nemaquant
119
  ```
120
 
121
+
122
+ - With Apptainer/Singularity + Slurm from a server:
123
 
124
  ```bash
125
+ # 1) On the login node: pull the image once (creates a .sif file)
126
+ apptainer pull nemaquant_latest.sif docker://breedinginsight/nemaquant:latest
127
+
128
+ # 2) Request an interactive compute allocation (adjust for your cluster and analysis)
129
+ salloc -c 4 --mem=16G --time=02:00:00
130
+
131
+ # 3) On the compute node shell that opens, run the app on port 7860
132
+ export PORT=7860
133
+ apptainer run --cleanenv --env PORT=$PORT nemaquant_latest.sif
134
  ```
135
 
136
+ For **GPU usage** replace the image by: `breedinginsight/nemaquant:latest-gpu`
137
+
138
  2. **Run the Container**:
139
 
140
+ - With Docker
141
+
142
  ```bash
143
  docker run -p 7860:7860 -v $(pwd)/results:/app/results breedinginsight/nemaquant
144
  ```
145
 
146
+ - With Apptainer/Singularity + Slurm from our local computer (after running the above commands on server):
147
+
148
+ ```bash
149
+ # Replace user and host with your cluster login node.
150
+ # If your cluster requires a direct tunnel to the compute node, adapt accordingly.
151
+ ssh -L 7860:localhost:7860 [userID]@[yourcluster.address]
152
+ ```
153
+
154
  ### Hugging Face Spaces Deployment
155
 
156
  1. Create a new Space on [Hugging Face](https://huggingface.co/new-space)