Skip to content

NICHD-BSPC/llm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

144 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LLM containers

In NICHD's Bioinformatics and Scientific Programming Core, we wanted to use multiple LLM agent tools in a secure way on multiple systems -- specifically, in :ref:`isolated containers <why-containers>` to reduce risk -- but there was nothing available for our particular requirements.

So, this repo now supports:

Multiple agent harnesses

Multiple container runtimes

  • Podman images, for running containers on a local Mac
  • Singularity images, for running containers on a Linux HPC system

Tools

  • refresh.py to refresh your credentials and optionally push them to a remote system
  • launch.py to launch a container running the LLM tool
  • build.py to build container images (only required if you want to build your own; you can use our hosted images)

Additional features

  • Handle enterprise SSL/TLS interception
  • Mount existing conda environments and prepend them to the PATH so agents can use them

When everything is set up, usage looks like this:

refresh.py        # refresh credentials if needed
launch.py codex   # run Codex in a container
launch.py claude  # or Claude Code
launch.py pi      # or pi

Or, to use on a remote machine:

# on local machine, refresh and push credentials to the
# right place on the remote. For Bedrock on systems where
# direct SSO refresh inside the container is unreliable,
# export short-lived AWS credentials into ~/.aws instead:
refresh.py --remote $REMOTE_HOST --export-creds

# then log in to the remote host and run:
launch.py claude   # or pi

See https://nichd-bspc.github.io/llm for documentation.

See https://github.com/nichd-bspc/llm for code.

Releases

No releases published

Packages

 
 
 

Contributors