roemmele commited on
Commit
0e586ca
·
1 Parent(s): 5dcb1e5

Upload handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -6,7 +6,7 @@ from typing import Dict, List, Any
6
  class EndpointHandler():
7
  def __init__(self, path=""):
8
  self.model = AutoModelForCausalLM.from_pretrained(path,
9
- torch_dtype=torch.float16,
10
  device_map="auto",
11
  trust_remote_code=True)
12
  self.tokenizer = AutoTokenizer.from_pretrained(path)
 
6
  class EndpointHandler():
7
  def __init__(self, path=""):
8
  self.model = AutoModelForCausalLM.from_pretrained(path,
9
+ torch_dtype=torch.bfloat16,
10
  device_map="auto",
11
  trust_remote_code=True)
12
  self.tokenizer = AutoTokenizer.from_pretrained(path)