Haihao commited on
Commit
a03a0fe
1 Parent(s): 959607f

Update README.md

Browse files

Use bf16 compute type

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