Haihao commited on
Commit
1ca0df5
1 Parent(s): 4f23bb6

Update README.md

Browse files

Use bf16 compute type

Files changed (1) hide show
  1. README.md +1 -1
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="int8", 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)
 
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)