forgot comma
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -10,7 +10,7 @@ class EndpointHandler:
|
|
10 |
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2-1.5B-Instruct")
|
11 |
model = AutoModelForCausalLM.from_pretrained(
|
12 |
"Qwen/Qwen2-1.5B-Instruct",
|
13 |
-
torch_dtype=torch.float16 if torch.cuda.is_available() else torch.float32
|
14 |
device_map="cuda" # for single instance one GPU
|
15 |
)
|
16 |
|
|
|
10 |
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2-1.5B-Instruct")
|
11 |
model = AutoModelForCausalLM.from_pretrained(
|
12 |
"Qwen/Qwen2-1.5B-Instruct",
|
13 |
+
torch_dtype=torch.float16 if torch.cuda.is_available() else torch.float32,
|
14 |
device_map="cuda" # for single instance one GPU
|
15 |
)
|
16 |
|