Update README.md
Browse files
README.md
CHANGED
@@ -176,7 +176,9 @@ outputs = model.generate(inputs, streamer=streamer, max_new_tokens=300)
|
|
176 |
```python
|
177 |
from transformers import AutoTokenizer, TextStreamer
|
178 |
from intel_extension_for_transformers.transformers import AutoModelForCausalLM, WeightOnlyQuantConfig
|
179 |
-
model_name = "Intel/neural-chat-7b-v3-3"
|
|
|
|
|
180 |
config = WeightOnlyQuantConfig(compute_dtype="bf16", weight_dtype="int4")
|
181 |
prompt = "Once upon a time, there existed a little girl,"
|
182 |
|
|
|
176 |
```python
|
177 |
from transformers import AutoTokenizer, TextStreamer
|
178 |
from intel_extension_for_transformers.transformers import AutoModelForCausalLM, WeightOnlyQuantConfig
|
179 |
+
model_name = "Intel/neural-chat-7b-v3-3"
|
180 |
+
|
181 |
+
# for int8, should set weight_dtype="int8"
|
182 |
config = WeightOnlyQuantConfig(compute_dtype="bf16", weight_dtype="int4")
|
183 |
prompt = "Once upon a time, there existed a little girl,"
|
184 |
|