Iggnis commited on
Commit
9399410
1 Parent(s): 15e1831

remove dtype

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -6,7 +6,7 @@ class EndpointHandler:
6
  def __init__(self, path=""):
7
  # load the model
8
  tokenizer = AutoTokenizer.from_pretrained(path)
9
- model = AutoModelForCausalLM.from_pretrained(path, device_map="auto",torch_dtype=dtype)
10
  # create inference pipeline
11
  self.pipeline = pipeline("text-generation", model=model, tokenizer=tokenizer)
12
 
 
6
  def __init__(self, path=""):
7
  # load the model
8
  tokenizer = AutoTokenizer.from_pretrained(path)
9
+ model = AutoModelForCausalLM.from_pretrained(path, device_map="auto")
10
  # create inference pipeline
11
  self.pipeline = pipeline("text-generation", model=model, tokenizer=tokenizer)
12