Andrewwwwww commited on
Commit
8cdb002
1 Parent(s): 7f4532c

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -5,7 +5,7 @@ import torch
5
  class EndpointHandler:
6
  def __init__(self, path=""):
7
  self.tokenizer =AutoTokenizer.from_pretrained(path)
8
- self.model = AutoModelForCausalLM.from_pretrained(path, device_map='auto')
9
 
10
  def __call__(self, data: Any) -> List[List[Dict[str, float]]]:
11
  sys_prompt=data["prompt"]
 
5
  class EndpointHandler:
6
  def __init__(self, path=""):
7
  self.tokenizer =AutoTokenizer.from_pretrained(path)
8
+ self.model = AutoModelForCausalLM.from_pretrained(path, device_map='cuda')
9
 
10
  def __call__(self, data: Any) -> List[List[Dict[str, float]]]:
11
  sys_prompt=data["prompt"]