Remove code mount from Modal app initialization and add local directory for ai-toolkit
This commit is contained in:
parent
067f8e5400
commit
17bbf589f7
|
|
@ -69,14 +69,16 @@ image = (
|
|||
"huggingface_hub",
|
||||
"peft"
|
||||
)
|
||||
.add_local_dir("D:/ai-toolkit", "/root/ai-toolkit")
|
||||
)
|
||||
|
||||
# mount for the entire ai-toolkit directory
|
||||
# example: "/Users/username/ai-toolkit" is the local directory, "/root/ai-toolkit" is the remote directory
|
||||
code_mount = modal.Mount.from_local_dir("D:/ai-toolkit", remote_path="/root/ai-toolkit")
|
||||
# code_mount = modal.Mount.from_local_dir("D:/ai-toolkit", remote_path="/root/ai-toolkit")
|
||||
|
||||
# create the Modal app with the necessary mounts and volumes
|
||||
app = modal.App(name="flux-lora-training", image=image, mounts=[code_mount], volumes={MOUNT_DIR: model_volume})
|
||||
# app = modal.App(name="flux-lora-training", image=image, mounts=[code_mount], volumes={MOUNT_DIR: model_volume})
|
||||
app = modal.App(name="flux-lora-training", image=image, volumes={MOUNT_DIR: model_volume})
|
||||
|
||||
# Check if we have DEBUG_TOOLKIT in env
|
||||
if os.environ.get("DEBUG_TOOLKIT", "0") == "1":
|
||||
|
|
|
|||
Loading…
Reference in New Issue