Update qwen.py
Browse files
qwen.py
CHANGED
@@ -9,8 +9,6 @@ model = AutoModelForCausalLM.from_pretrained(
|
|
9 |
device_map="auto"
|
10 |
)
|
11 |
|
12 |
-
model = model.half()
|
13 |
-
|
14 |
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2-7B-Instruct")
|
15 |
|
16 |
def respond(
|
|
|
9 |
device_map="auto"
|
10 |
)
|
11 |
|
|
|
|
|
12 |
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2-7B-Instruct")
|
13 |
|
14 |
def respond(
|