skip to Main Content

I’m running miniconda on GCP debian DeepLearning VM.

I’m basically trying to run this:

 embed_model = HuggingFaceEmbeddings(
    model_name=embed_model_id,
    model_kwargs={'device': device},
    encode_kwargs={'device': device, 'batch_size': 32}
)

and have this error:

permission denied [Errno 13] Permission denied: '/root/google_vm_config.lock'

google my ass out. check other stackoverflow questions.

2

Answers


  1. Chosen as BEST ANSWER

    type sudo -s to get into root user Then sudo chown -R user:user /root/google_vm_config.lock

    where user is you.


  2. In one of the GitHub discussions I found a working solution. You need to add GOOGLE_VM_CONFIG_LOCK_FILE into list of ignore env vars in the function to_be_ignored located in this file lib/python3.10/site-packages/bitsandbytes/cuda_setup/env_vars.py

    Link for reference.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search