Skip to content
GitHub
View on GitHub

ModalConfig (slime)

API reference for ModalConfig

from modal_training_gym.frameworks.slime.config import ModalConfig

Modal infrastructure configuration for slime — image setup and dev overlays.

FieldTypeDefaultDescription
local_slime`strNone`None
patch_fileslist[str]Local patch files to inject into the image at /tmp/<filename>. Default [].
image_run_commandslist[str]Shell commands run during image build (e.g. git apply /tmp/my.patch). Default [].
local_python_sourceslist[str]Sibling Python modules (by import name) to ship into the training image via add_local_python_source. Use for helper modules like custom reward functions referenced via slime’s custom_rm_path. Default [].

Source: modal_training_gym/frameworks/slime/config.py