Skip to content

Commit e25ab3a

Browse files
authored
Update README.md (#48)
1 parent 576502e commit e25ab3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ checkpoint = "bigcode/starcoder"
4747
device = "cuda" # for GPU usage or "cpu" for CPU usage
4848

4949
tokenizer = AutoTokenizer.from_pretrained(checkpoint)
50-
# to save memory consider using fp16 or bf16 by specifying torch.dtype=torch.float16 for example
50+
# to save memory consider using fp16 or bf16 by specifying torch_dtype=torch.float16 for example
5151
model = AutoModelForCausalLM.from_pretrained(checkpoint).to(device)
5252

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

0 commit comments

Comments
 (0)