Update README.md
Browse filesUse bf16 compute type
README.md
CHANGED
@@ -186,7 +186,7 @@ So, the sum of 100, 520, and 60 is 680.
|
|
186 |
from transformers import AutoTokenizer, TextStreamer
|
187 |
from intel_extension_for_transformers.transformers import AutoModelForCausalLM, WeightOnlyQuantConfig
|
188 |
model_name = "Intel/neural-chat-7b-v3"
|
189 |
-
config = WeightOnlyQuantConfig(compute_dtype="
|
190 |
prompt = "Once upon a time, there was a horse in the forest,"
|
191 |
|
192 |
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
|
|
|
186 |
from transformers import AutoTokenizer, TextStreamer
|
187 |
from intel_extension_for_transformers.transformers import AutoModelForCausalLM, WeightOnlyQuantConfig
|
188 |
model_name = "Intel/neural-chat-7b-v3"
|
189 |
+
config = WeightOnlyQuantConfig(compute_dtype="bf16", weight_dtype="int4")
|
190 |
prompt = "Once upon a time, there was a horse in the forest,"
|
191 |
|
192 |
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
|