We couldn't connect to 'https://huggingface.co' to load this file, couldn't find it in the cached files and it looks like bigcode/starcoderbase-1b is not the path to a directory containing a file named config.json
Hi, I am a beginner in huggingface, I am reproducing Fuzz4All project (Article:Fuzz4All: Universal Fuzzing with Large Language Models), reaching the execution level of “./scripts/demo_run.sh” and I got like error(fuzz4all) root@eebf26c919ec:/home/Fuzz4All# ./scripts/demo_run.shBATCH_SIZE: 30MODEL_NAME: bigcode/starcoderbase-1bDEVICE: cpu{‘fuzzing’: {‘output_folder’: ‘outputs/demo/’, ‘num’: 100, ‘total_time’: 1, ‘log_level’: 3, ‘otf’: True, ‘resume’: True, ‘evaluate’: False, ‘use_hand_written_prompt’: False, ‘no_input_prompt’: True, ‘prompt_strategy’: 2, ‘target_name’: ‘/home/gcc-13/bin/g++’}, ‘target’: {‘language’: ‘cpp’, ‘path_documentation’: ‘config/documentation/cpp/cpp_23.md’, ‘path_example_code’: None, ‘trigger_to_generate_input’: ‘/* Please create a very short program which uses new C++ features in a complex way/', ‘input_hint’: ‘#include’, ‘path_hand_written_prompt’: None, ‘target_string’: ‘’}, ‘llm’: {‘temperature’: 1, ‘batch_size’: 30, ‘device’: ‘cpu’, ‘model_name’: ‘bigcode/starcoderbase-1b’, ‘max_length’: 1024}}=== Target Config ===language: cppfolder: outputs/demo/bs: 30temperature: 1device: cpumodel_name: bigcode/starcoderbase-1bmax_length: 1024use_hw: Falseno_input_prompt: Trueprompt_strategy: 2level: 3template: fuzzing_with_config_fileconfig_dict: {‘fuzzing’: {‘output_folder’: ‘outputs/demo/’, ‘num’: 100, ‘total_time’: 1, ‘log_level’: 3, ‘otf’: True, ‘resume’: True, ‘evaluate’: False, ‘use_hand_written_prompt’: False, ‘no_input_prompt’: True, ‘prompt_strategy’: 2, ‘target_name’: ‘/home/gcc-13/bin/g++’}, ‘target’: {‘language’: ‘cpp’, ‘path_documentation’: ‘config/documentation/cpp/cpp_23.md’, ‘path_example_code’: None, ‘trigger_to_generate_input’: '/Please create a very short program which uses new C++ features in a complex way */’, ‘input_hint’: ‘#include’, ‘path_hand_written_prompt’: None, ‘target_string’: ‘’}, ‘llm’: {‘temperature’: 1, ‘batch_size’: 30, ‘device’: ‘cpu’, ‘model_name’: ‘bigcode/starcoderbase-1b’, ‘max_length’: 1024}}target_name: /home/gcc-13/bin/g++[INFO] Initializing … this may take a while …[INFO] Loading model …=== Model Config ===model_name: bigcode/starcoderbase-1bmodel_name: bigcode/starcoderbase-1beos: [‘/* Please create a very short program which uses new C++ features in a complex way/', ‘’, '/Please create a semantically equivalent program to the previous generation/', '/Please create a mutated program that modifies the previous generation/', '/Please combine the two previous programs into a single program */’]device: cpumax_length: 1024OSError: We couldn’t connect to ‘https://huggingface.co’ to load this file, couldn’t find it in the cached files and it looks like bigcode/starcoderbase-1b is not the path to a directorycontaining a file named config.json.Checkout your internet connection or see how to run the library in offline mode at ‘Installation’.
2024-04-26T18:39:12Z
I’m getting the same error
2024-05-01T03:39:10Z
me too 12345678910 caracteres
2024-05-29T20:27:53Z
me too, trying from colab though
2024-06-12T10:04:16Z
I was recently doing the same. I fixed it by following the link:Installation1.I installed entire “bigcode/starcoderbase” project in my local storage2.I changed calls in model.py:self.tokenizer = AutoTokenizer.from_pretrained(“./your/path/bigcode/starcoderbase”,local_files_only=True,)self.model = (AutoModelForCausalLM.from_pretrained(“./your/path/bigcode/starcoderbase”,local_files_only=True,).to(torch.bfloat16).to(device))
2024-08-21T11:12:52Z
Hi,Due to situation that I want to make project internal of company; I have to do project on my local so this is the comment I want. But I took:“HFValidationError: Repo id must be in the form ‘repo_name’ or ‘namespace/repo_name’: ‘verbatim/dbmdz/bert-base-turkish-uncased’. Userepo_typeargument if needed.” error.Did you ever faced with this kind of error?image1256×717 63.6 KB
2024-08-27T09:01:35Z
The best way to solve this issue is:Obtain a Hugging Face Token:Visit the Hugging Face website and create an account if you don’t have one already.Go to your profile settings and generate an access token.Ensure that the token has the necessary permissions to access gated models. You can do this by enabling the “Access gated models” option in your token settings.
2024-12-13T01:04:21Z
sorry，it didnot work