1
0
forked from alberto/dask

Compare commits

4 Commits

Author SHA1 Message Date
edgar 34e724a856 Add BayesPIM 2.0 to the image; cluster and devcontainer use dask:1.4
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HmQxVJVNR5FYkPAregGEQ7
2026-11-19 12:51:22 -06:00
edgar 589860c626 Five Dask worker processes per node (same 4.25 GiB each); the previous four-process values stay commented 2026-11-14 18:49:02 -06:00
edgar 918bd93f40 Add R and PIMixture (Cheung's routines) to the image; cluster and devcontainer use dask:1.3
PIMixture is not on CRAN: its source package must be unpacked into ./PIMixture/ before building (ignored by git).
2026-11-14 14:16:31 -06:00
edgar 4931307242 Add PyMC, PyTensor and g++ to the image; cluster and devcontainer use dask:1.2
dask:1.2 is dask:1.1 plus the two RUN lines at the end of the Dockerfile (built FROM 192.168.20.18:5000/dask:1.1
and pushed to the registry). The EEG stack and torch are unchanged.
2026-11-14 11:42:48 -06:00
4 changed files with 32 additions and 6 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "eeg-dask",
"image": "localhost:35000/dask:1.1",
"image": "localhost:35000/dask:1.4",
"runArgs": ["--network=host"],
"overrideCommand": true,
"remoteUser": "root",
+1
View File
@@ -1,2 +1,3 @@
biomarcadores-tea/
.vscode
PIMixture/
+21
View File
@@ -8,3 +8,24 @@ RUN pip install --no-cache-dir git+http://10.0.10.41:3000/alberto/eeg.git
RUN pip install 'eeg[html]'
RUN pip install --no-cache-dir s3fs zarr xarray
# bayes-pim: PyMC/PyTensor (same versions as the project's .venv). PyTensor compiles its graphs with g++, and the base
# image has no C++ compiler, so it comes from conda-forge (the `gxx` package provides the plain `g++` name).
RUN mamba install -y -c conda-forge gxx && mamba clean -afy
RUN pip install --no-cache-dir "pymc==6.4.0" "pytensor==3.3.8" joblib
# bayes-pim: R with PIMixture 0.4.4 (Cheung's routines) to refit KPNC's models in R on the workers (dask:1.3).
# `interval` is not on conda, so it comes from CRAN. PIMixture is not on CRAN either: before building, unpack its source
# package (the NCI tarball, e.g. ~/kek/pimixture-tar-file on the admon host) into ./PIMixture/ (not committed here).
RUN mamba install -y -c conda-forge -c bioconda r-base r-survival r-optimx r-fdrtool r-plyr r-flexsurv \
bioconductor-icens gcc gxx gfortran make && mamba clean -afy
RUN Rscript -e 'install.packages(c("perm", "MLEcens", "interval"), repos = "https://cloud.r-project.org", Ncpus = 8)' \
&& Rscript -e 'library(interval)'
COPY PIMixture /opt/PIMixture
RUN R CMD INSTALL /opt/PIMixture
# bayes-pim: BayesPIM 2.0 (Klausch, Lissenberg-Witte and Coupé 2026, doi:10.1002/sim.70433; CRAN, MIT) to fit the
# prevalence-incidence reference model on the workers (dask:1.4).
RUN mamba install -y -c conda-forge r-rcpp r-coda r-actuar r-posterior r-doparallel r-foreach r-jsonlite && mamba clean -afy
RUN Rscript -e 'install.packages("BayesPIM", repos = "https://cloud.r-project.org", Ncpus = 8)' \
&& Rscript -e 'library(BayesPIM); v <- as.character(packageVersion("BayesPIM")); cat("BayesPIM", v, "\n"); stopifnot(v == "2.0")'
+9 -5
View File
@@ -16,11 +16,15 @@ spec:
dask.org/component: worker
containers:
- name: worker
image: 192.168.20.18:5000/dask:1.1
args: [dask-worker, --name, $(DASK_WORKER_NAME), --nworkers, "4", --nthreads, "1", --memory-limit, 4.25GiB]
image: 192.168.20.18:5000/dask:1.4
# 5 worker processes per node (same 4.25 GiB each). To go back to 4, swap the commented lines and re-apply.
args: [dask-worker, --name, $(DASK_WORKER_NAME), --nworkers, "5", --nthreads, "1", --memory-limit, 4.25GiB]
# args: [dask-worker, --name, $(DASK_WORKER_NAME), --nworkers, "4", --nthreads, "1", --memory-limit, 4.25GiB]
resources:
requests: {memory: 19Gi, cpu: "4"}
limits: {memory: 19Gi}
requests: {memory: 22Gi, cpu: "5"}
limits: {memory: 22Gi}
# requests: {memory: 19Gi, cpu: "4"}
# limits: {memory: 19Gi}
env:
- name: NODE_NAME
valueFrom:
@@ -37,7 +41,7 @@ spec:
spec:
containers:
- name: scheduler
image: 192.168.20.18:5000/dask:1.1
image: 192.168.20.18:5000/dask:1.4
args: [dask-scheduler]
env:
- {name: AWS_ENDPOINT_URL, value: "http://seaweedfs-s3.seaweedfs:8333"}