Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
ilab
wrapper script adjustmentsTicket RHELAI-442
Background
RHEL AI ships with a script in
/usr/local/bin
calledilab
which makes runningilab
commands feel native even though they're actually running in a podman containerIssues
The script is outdated / used several different container images for different purposes, while it should be just using the single instructlab image
The volume mounts were incorrect, as instructlab now uses XDG paths
Unnecessary directory creation for
HF_CACHE
Unnecessary GPU count logic
Script has unnecessary fiddling of
ilab
parameters, essentially creating a UX that deviates from the naturalilab
CLISolutions
Changed script to use the single container image
IMAGE_NAME
(this was already the case mostly, except for old references toLVLM_NAME
andTRAIN_NAME
which no longer get replaced leading to a brokenPODMAN_COMMAND_SERVE
. Also adjusted entrypoint to use theilab
executable in the pyenvWill now mount the host's
~/.config
and~/.local
into the container's corresponding directories, forinstructlab
to use and for its config / data to persist across invocationsWill now mount
~/.cache
into the container's corresponding.cache
directory, so that the information stored in the defaultHF_CACHE
is also persisted across invocationsRemoved unnecessary GPU count logic
Removed all parameter parsing / fiddling
Other changes
Added secret/fake "shell"
ilab
subcommand which opens a shell in the wrapper's container, useful for troubleshooting issues with the wrapper itself