You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-2
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,18 @@ First, we have to install all the libraries listed in `requirements.txt`
37
37
```bash
38
38
pip install -r requirements.txt
39
39
```
40
+
41
+
If you see this error:
42
+
43
+
> OSError: bigcode/starcoder is not a local folder and is not a valid model identifier listed on 'https://huggingface.co/models'
44
+
If this is a private repository, make sure to pass a token having permission to this repo with `use_auth_token` or log in with `huggingface-cli login` and pass `use_auth_token=True`.
45
+
46
+
it means that you need to authenticate to Hugging Face API to download the model: sign up for an account, and accept the [T&C to use BigCode](https://huggingface.co/bigcode/starcoder); then [obtain an API Token](https://huggingface.co/settings/tokens) from HF and use it to authenticate to the CLI:
47
+
48
+
```shell
49
+
huggingface-cli login
50
+
```
51
+
40
52
## Code generation
41
53
The code generation pipeline is as follows
42
54
@@ -46,7 +58,7 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
46
58
checkpoint ="bigcode/starcoder"
47
59
device ="cuda"# for GPU usage or "cpu" for CPU usage
0 commit comments