Skip to content

Apptainer support - #1

Merged
coleramos425 merged 3 commits into
mainfrom
apptainer
Feb 4, 2025
Merged

coleramos425 merged 3 commits into
mainfrom
apptainer

Conversation

@coleramos425

Copy link
Copy Markdown
Collaborator

This PR adds Apptainer support to the maestro project. The definition (.def) file pulls in all the software dependencies:

Use the shell script run.sh to build the image (.sif) file.

Signed-off-by: coleramos425 <colramos@amd.com>
Signed-off-by: coleramos425 <colramos@amd.com>
Comment thread run.sh
#!/bin/bash

timestamp=$(date +"%Y%m%d_%H%M%S")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about we add this?

Suggested change
# Make sure we start the SSH agent
eval `ssh-agent -s`
[ -f ~/.ssh/id_rsa ] && ssh-add ~/.ssh/id_rsa
[ -f ~/.ssh/id_ed25519 ] && ssh-add ~/.ssh/id_ed25519

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the idea, but I've found scripts like this can inadvertently create duplicate ssh-agents. For my own usage, I use a script similar to this in my ~/.bashrc:

if [ ! -S ~/.ssh/ssh_auth_sock ]; then
    eval `ssh-agent` > /dev/null
    ln -sf "$SSH_AUTH_SOCK" ~/.ssh/ssh_auth_sock
fi
export SSH_AUTH_SOCK=~/.ssh/ssh_auth_sock
ssh-add -l > /dev/null || ssh-add

This way, we're always re-using the same ssh-agent. Let me find a middle ground between both of these solutions and add it to the script

While not comprehensive, this adds basic SSH keys to the agent

Signed-off-by: coleramos425 <colramos@amd.com>
@coleramos425
coleramos425 merged commit ba98cd5 into main Feb 4, 2025
@coleramos425
coleramos425 deleted the apptainer branch February 4, 2025 18:37
mehdi-saeedi added a commit that referenced this pull request Feb 23, 2026
Fix/nmse validation for llama.cpp kernels
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants