Update README.md
Browse files
README.md
CHANGED
@@ -206,7 +206,9 @@ outputs = model.generate(inputs, streamer=streamer, max_new_tokens=300)
|
|
206 |
```python
|
207 |
from transformers import AutoTokenizer, TextStreamer
|
208 |
from intel_extension_for_transformers.transformers import AutoModelForCausalLM, WeightOnlyQuantConfig
|
209 |
-
model_name = "Intel/neural-chat-7b-v3"
|
|
|
|
|
210 |
config = WeightOnlyQuantConfig(compute_dtype="bf16", weight_dtype="int4")
|
211 |
prompt = "Once upon a time, there was a horse in the forest,"
|
212 |
|
|
|
206 |
```python
|
207 |
from transformers import AutoTokenizer, TextStreamer
|
208 |
from intel_extension_for_transformers.transformers import AutoModelForCausalLM, WeightOnlyQuantConfig
|
209 |
+
model_name = "Intel/neural-chat-7b-v3"
|
210 |
+
|
211 |
+
# for int8, should set weight_dtype="int8"
|
212 |
config = WeightOnlyQuantConfig(compute_dtype="bf16", weight_dtype="int4")
|
213 |
prompt = "Once upon a time, there was a horse in the forest,"
|
214 |
|