eric-mitchell / detect-gpt

DetectGPT: Zero-Shot Machine-Generated Text Detection using Probability Curvature
MIT License
341 stars 53 forks source link

Getting Permission denied error #5

Closed svk-cu-nlp closed 1 year ago

svk-cu-nlp commented 1 year ago

I am trying to execute the following command python run.py --output_name n_perturb --base_model_name gpt2-medium --mask_filling_model_name t5-small --n_perturbation_list 1,10,100,1000 --n_samples 100 --pct_words_masked 0.3 --span_length 2

Getting the following error: with open(file_path, encoding="utf-8") as f: PermissionError: [Errno 13] Permission denied: 'C:\Users\SOUVIK\.cache\huggingface\datasets\downloads\extracted\6c23c0182c80c071cd57f17c1b534be8fa7ea6cb31f30c8dd7a95bf1ed1b0d33.py'

eric-mitchell commented 1 year ago

This might be an issue with your NFS if you’re using a networked filesystem that you periodically need to login to. You could also try deleting your transformers cache and re-running. Alternatively, manually set the cache_dir= when loading models/datasets from huggingface to a different directory.

From: SVK_CU_NLP @.> Date: Saturday, April 29, 2023 at 9:56 AM To: eric-mitchell/detect-gpt @.> Cc: Subscribed @.***> Subject: [eric-mitchell/detect-gpt] Getting Permission denied error (Issue #5)

I am trying to execute the following command python run.py --output_name n_perturb --base_model_name gpt2-medium --mask_filling_model_name t5-small --n_perturbation_list 1,10,100,1000 --n_samples 100 --pct_words_masked 0.3 --span_length 2

Getting the following error: with open(file_path, encoding="utf-8") as f: PermissionError: [Errno 13] Permission denied: 'C:\Users\SOUVIK.cache\huggingface\datasets\downloads\extracted\6c23c0182c80c071cd57f17c1b534be8fa7ea6cb31f30c8dd7a95bf1ed1b0d33.py'

— Reply to this email directly, view it on GitHubhttps://github.com/eric-mitchell/detect-gpt/issues/5, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANOLWB7C67SJB4Y7C3HZEVLXDVB5JANCNFSM6AAAAAAXQKPD2A. You are receiving this because you are subscribed to this thread.Message ID: @.***>

eric-mitchell commented 1 year ago

Closing this issue, but feel free to re-open if you're still having any issues!