Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ERROR] Read-only file system: 'vocab.json' when I created a training job. #371

Open
eloelo-techadmin opened this issue Oct 11, 2024 · 0 comments

Comments

@eloelo-techadmin
Copy link

Training Code:

training = replicate.trainings.create(
        destination=f"{REPLICATE_USERNAME}/{model_name}",
        version=BASE_MODEL,
        input={
            "steps": 1000,
            "lora_rank": 16,
            "optimizer": "adamw8bit",
            "batch_size": 1,
            "resolution": "512,768,1024",
            "autocaption": True,
            "input_images": "https://api.replicate.com/v1/files/MWEzOTFjZDktODRiOC00NGU3LTk2NDgtNmU3OTFiYzI4ODAx/download?expiry=1728649027&owner=eloelo-techadmin&signature=Jax4T4zzjb%252BKcQqog45X1DkXRU%252BP2EQJhDx9UDU1REI%253D",
            "trigger_word": model_name,
            "learning_rate": 0.0004,
            # "wandb_project": "flux_train_replicate",
            # "wandb_save_interval": 100,
            "caption_dropout_rate": 0.05,
            "cache_latents_to_disk": False,
            "wandb_sample_interval": 100
        }
    )

ERROR:

Traceback (most recent call last):
File "/root/.pyenv/versions/3.10.15/lib/python3.10/site-packages/cog/server/worker.py", line 349, in _predict
result = predict(**payload)
File "/src/train.py", line 207, in train
clean_up()
File "/src/train.py", line 478, in clean_up
shutil.rmtree(WEIGHTS_PATH)
File "/root/.pyenv/versions/3.10.15/lib/python3.10/shutil.py", line 725, in rmtree
_rmtree_safe_fd(fd, path, onerror)
File "/root/.pyenv/versions/3.10.15/lib/python3.10/shutil.py", line 658, in _rmtree_safe_fd
_rmtree_safe_fd(dirfd, fullname, onerror)
File "/root/.pyenv/versions/3.10.15/lib/python3.10/shutil.py", line 681, in _rmtree_safe_fd
onerror(os.unlink, fullname, sys.exc_info())
File "/root/.pyenv/versions/3.10.15/lib/python3.10/shutil.py", line 679, in _rmtree_safe_fd
os.unlink(entry.name, dir_fd=topfd)
OSError: [Errno 30] Read-only file system: 'vocab.json'

Can someone please help us? We are stuck on this. cc @mattt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant