-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6bcf7dd
commit aca95fb
Showing
7 changed files
with
107 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
|
||
# aipanda180 | ||
# cp -r /eos/user/w/wguan/idds_ml/singularity/* /opt/singularity | ||
|
||
cd /opt/singularity/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
Bootstrap: docker | ||
From: almalinux:9.2 | ||
|
||
%post | ||
# yum update -q -y | ||
yum install -q -y wget make git gcc openssl-devel bzip2-devel libffi-devel which pip | ||
|
||
ln -s /usr/bin/python3 /usr/bin/python | ||
|
||
pip install --upgrade pip | ||
pip install nevergrad | ||
pip install theano keras h5py matplotlib tabulate | ||
pip install bayesian-optimization | ||
pip install xgboost | ||
pip install lightgbm | ||
pip install ax-platform | ||
|
||
pip install torch pandas numpy matplotlib wandb botorch | ||
|
||
# clean the cache | ||
rm -fr /root/.cache | ||
|
||
%environment | ||
# export LC_ALL=C | ||
# export PATH=/usr/games:$PATH | ||
|
||
%labels | ||
Maintainer iDDS_HPO_Nevergrad([email protected]) | ||
Version v1.0 | ||
|
||
%runscript | ||
echo "iDDS ML hyper parameter optimization plugin" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
[root@aipanda180 singularity]# apptainer remote add --no-login SylabsCloud cloud.sylabs.io | ||
INFO: Remote "SylabsCloud" added. | ||
|
||
[root@aipanda180 singularity]# apptainer remote login | ||
Generate an access token at https://cloud.sylabs.io/auth/tokens, and paste it here. | ||
Token entered will be hidden for security. | ||
Access Token: | ||
INFO: Access Token Verified! | ||
INFO: Token stored in /root/.apptainer/remote.yaml | ||
|
||
|
||
[root@aipanda180 singularity]# singularity keys newpair | ||
Enter your name (e.g., John Doe) : Wen Guan | ||
Enter your email address (e.g., [email protected]) : [email protected] | ||
Enter optional comment (e.g., development keys) : dev | ||
Enter a passphrase : | ||
Retype your passphrase : | ||
WARNING: passphrases do not match | ||
Enter a passphrase : | ||
Retype your passphrase : | ||
Generating Entity and OpenPGP Key Pair... done | ||
[root@aipanda180 singularity]# singularity keys list | ||
Public key listing (/root/.apptainer/keys/pgp-public): | ||
|
||
0) User: Wen Guan (dev) <[email protected]> | ||
Creation time: 2024-04-02 11:47:04 +0200 CEST | ||
Fingerprint: 11B3BCA23474A37E2BB72F8EAD61E4FD656ABA65 | ||
Length (in bits): 4096 | ||
|
||
|
||
[root@aipanda180 singularity]# singularity keys push 11B3BCA23474A37E2BB72F8EAD61E4FD656ABA65 | ||
public key `11B3BCA23474A37E2BB72F8EAD61E4FD656ABA65' pushed to server successfully | ||
[root@aipanda180 singularity]# ls /root/.apptainer/ | ||
cache keys remote-cache remote.yaml | ||
[root@aipanda180 singularity]# ls /root/.apptainer/keys/ | ||
pgp-public pgp-secret | ||
|
||
|
||
[root@aipanda180 singularity]# singularity sign idds_ml_ax_al9.simg | ||
INFO: Signing image with PGP key material | ||
Enter key passphrase : | ||
INFO: Signature created and applied to image 'idds_ml_ax_al9.simg' | ||
[root@aipanda180 singularity]# singularity verify idds_ml_ax_al9.simg | ||
INFO: Verifying image with PGP key material | ||
[LOCAL] Signing entity: Wen Guan (dev) <[email protected]> | ||
[LOCAL] Fingerprint: 11B3BCA23474A37E2BB72F8EAD61E4FD656ABA65 | ||
Objects verified: | ||
ID |GROUP |LINK |TYPE | ||
------------------------------------------------ | ||
1 |1 |NONE |Def.FILE | ||
2 |1 |NONE |JSON.Generic | ||
3 |1 |NONE |FS | ||
INFO: Verified signature(s) from image 'idds_ml_ax_al9.simg' | ||
|
||
|
||
[root@aipanda180 singularity]# cp /root/.apptainer/ | ||
cache/ keys/ remote-cache/ remote.yaml | ||
[root@aipanda180 singularity]# cp /root/.apptainer/remote.yaml /afs/cern.ch/user/w/wguan/private/apptainer/ | ||
[root@aipanda180 singularity]# cp -r /root/.apptainer/keys /afs/cern.ch/user/w/wguan/private/apptainer/ | ||
|
||
|
||
[root@aipanda180 singularity]# singularity push idds_ml_ax_al9.simg library://wguanicedew/ml/idds_ml_ax_al9.sif:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
|
||
var appConfig = { | ||
'iddsAPI_request': "https://lxplus964.cern.ch:443/idds/monitor_request/null/null", | ||
'iddsAPI_transform': "https://lxplus964.cern.ch:443/idds/monitor_transform/null/null", | ||
'iddsAPI_processing': "https://lxplus964.cern.ch:443/idds/monitor_processing/null/null", | ||
'iddsAPI_request_detail': "https://lxplus964.cern.ch:443/idds/monitor/null/null/true/false/false", | ||
'iddsAPI_transform_detail': "https://lxplus964.cern.ch:443/idds/monitor/null/null/false/true/false", | ||
'iddsAPI_processing_detail': "https://lxplus964.cern.ch:443/idds/monitor/null/null/false/false/true" | ||
'iddsAPI_request': "https://lxplus998.cern.ch:443/idds/monitor_request/null/null", | ||
'iddsAPI_transform': "https://lxplus998.cern.ch:443/idds/monitor_transform/null/null", | ||
'iddsAPI_processing': "https://lxplus998.cern.ch:443/idds/monitor_processing/null/null", | ||
'iddsAPI_request_detail': "https://lxplus998.cern.ch:443/idds/monitor/null/null/true/false/false", | ||
'iddsAPI_transform_detail': "https://lxplus998.cern.ch:443/idds/monitor/null/null/false/true/false", | ||
'iddsAPI_processing_detail': "https://lxplus998.cern.ch:443/idds/monitor/null/null/false/false/true" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,5 @@ dependencies: | |
- pip: | ||
- anytree | ||
- networkx | ||
- idds-common==2.0.9 | ||
- stomp.py==8.0.1 | ||
- idds-common==2.0.9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters