Update README.md
Browse filesUse bf16 compute type
README.md
CHANGED
@@ -161,7 +161,7 @@ So, the sum of 100, 520, and 60 is 680.
|
|
161 |
from transformers import AutoTokenizer, TextStreamer
|
162 |
from intel_extension_for_transformers.transformers import AutoModelForCausalLM, WeightOnlyQuantConfig
|
163 |
model_name = "Intel/neural-chat-7b-v3-2"
|
164 |
-
config = WeightOnlyQuantConfig(compute_dtype="
|
165 |
prompt = "Once upon a time, there existed a little girl,"
|
166 |
|
167 |
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
|
|
|
161 |
from transformers import AutoTokenizer, TextStreamer
|
162 |
from intel_extension_for_transformers.transformers import AutoModelForCausalLM, WeightOnlyQuantConfig
|
163 |
model_name = "Intel/neural-chat-7b-v3-2"
|
164 |
+
config = WeightOnlyQuantConfig(compute_dtype="bf16", weight_dtype="int4")
|
165 |
prompt = "Once upon a time, there existed a little girl,"
|
166 |
|
167 |
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
|