Skip to content

Commit bc7645d

Browse files
authored
Merge pull request #8 from bigcode-project/loubnabnl-patch-1
Update README
2 parents 84fac59 + b79c0ed commit bc7645d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77

88
# Disclaimer
99

10-
Before you can use the model go to `hf.co/bigcode/starcoder` and accept the agreement.
10+
Before you can use the model go to `hf.co/bigcode/starcoder` and accept the agreement. And make sure you are logged into the Hugging Face hub with:
11+
```bash
12+
huggingface-cli login
13+
```
1114

1215
# Table of Contents
1316
1. [Quickstart](#quickstart)
@@ -38,6 +41,7 @@ checkpoint = "bigcode/starcoder"
3841
device = "cuda" # for GPU usage or "cpu" for CPU usage
3942

4043
tokenizer = AutoTokenizer.from_pretrained(checkpoint)
44+
# to save memory consider using fp16 or bf16 by specifying torch.dtype=torch.float16 for example
4145
model = AutoModelForCausalLM.from_pretrained(checkpoint).to(device)
4246

4347
inputs = tokenizer.encode("def print_hello_world():", return_tensors="pt").to(device)

0 commit comments

Comments
 (0)