Update README.md
Browse files
README.md
CHANGED
@@ -66,12 +66,13 @@ pip install --upgrade autoawq autoawq-kernels
|
|
66 |
from awq import AutoAWQForCausalLM
|
67 |
from transformers import AutoTokenizer, TextStreamer
|
68 |
|
69 |
-
|
|
|
70 |
|
71 |
# Load model
|
72 |
-
model = AutoAWQForCausalLM.from_quantized(
|
73 |
fuse_layers=True)
|
74 |
-
tokenizer = AutoTokenizer.from_pretrained(
|
75 |
trust_remote_code=True)
|
76 |
streamer = TextStreamer(tokenizer,
|
77 |
skip_prompt=True,
|
|
|
66 |
from awq import AutoAWQForCausalLM
|
67 |
from transformers import AutoTokenizer, TextStreamer
|
68 |
|
69 |
+
model_path = "solidrust/WestLake-7B-v2-laser-AWQ"
|
70 |
+
system_message = "Welcome to WestLake. You are here to help users with any questions they may have."
|
71 |
|
72 |
# Load model
|
73 |
+
model = AutoAWQForCausalLM.from_quantized(model_path,
|
74 |
fuse_layers=True)
|
75 |
+
tokenizer = AutoTokenizer.from_pretrained(model_path,
|
76 |
trust_remote_code=True)
|
77 |
streamer = TextStreamer(tokenizer,
|
78 |
skip_prompt=True,
|