Skip to content

modctl Fails to Build Image for Model Weights Containing Soft Links #345

@FengyunPan2

Description

@FengyunPan2

modctl cannot build an image for model weights that contain soft links.
# ls
cond dit.yml server.json uncond
# cd uncond/
# ls
model_1_0.ckpt model_4_0.ckpt model_4_1.ckpt model_4_2.ckpt model_4_3.ckpt
# ls -l
total 54485344
-rw-r--r-- 1 root root 55792990201 Dec 1 17:37 model_1_0.ckpt
lrwxrwxrwx 1 root root 14 Dec 1 18:58 model_4_0.ckpt -> model_1_0.ckpt
lrwxrwxrwx 1 root root 14 Dec 1 18:58 model_4_1.ckpt -> model_1_0.ckpt
lrwxrwxrwx 1 root root 14 Dec 1 18:58 model_4_2.ckpt -> model_1_0.ckpt
lrwxrwxrwx 1 root root 14 Dec 1 18:58 model_4_3.ckpt -> model_1_0.ckpt

The error message is:
time="2025-12-01T19:28:08+08:00" level=error msg="processor: failed to build layer for code file /maas_models/prod/xxx/ckpt/cond: /maas_models/prod/xxx/ckpt/cond is a directory and not supported yet"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions