fix model name
Browse files
README.md
CHANGED
@@ -102,7 +102,7 @@ quantization_config = BitsAndBytesConfig(load_in_8bit=True)
|
|
102 |
|
103 |
checkpoint = "bigcode/starcoder2-15b"
|
104 |
tokenizer = AutoTokenizer.from_pretrained(checkpoint)
|
105 |
-
model = AutoModelForCausalLM.from_pretrained(
|
106 |
|
107 |
inputs = tokenizer.encode("def print_hello_world():", return_tensors="pt").to("cuda")
|
108 |
outputs = model.generate(inputs)
|
|
|
102 |
|
103 |
checkpoint = "bigcode/starcoder2-15b"
|
104 |
tokenizer = AutoTokenizer.from_pretrained(checkpoint)
|
105 |
+
model = AutoModelForCausalLM.from_pretrained(checkpoint, quantization_config=quantization_config)
|
106 |
|
107 |
inputs = tokenizer.encode("def print_hello_world():", return_tensors="pt").to("cuda")
|
108 |
outputs = model.generate(inputs)
|