cleanup.py 358 Bytes
Newer Older
chenzk's avatar
v1.0  
chenzk committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
"""Modal app to run axolotl GPU cleanup"""

from .single_gpu import VOLUME_CONFIG, app, cicd_image, run_cmd


@app.function(
    image=cicd_image,
    timeout=60 * 60,
    cpu=8.0,
    memory=131072,
    volumes=VOLUME_CONFIG,
)
def cleanup():
    run_cmd("./cicd/cleanup.sh", "/workspace/axolotl")


@app.local_entrypoint()
def main():
    cleanup.remote()