Schmadge commited on
Commit
9e81bca
·
1 Parent(s): dd6a508

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +2 -2
handler.py CHANGED
@@ -6,7 +6,7 @@ from typing import Any, Dict
6
  class EndpointHandler:
7
  def __init__(
8
  self,
9
- path,
10
  torch_dtype=torch.bfloat16,
11
  trust_remote_code=True,
12
  ) -> None:
@@ -16,7 +16,7 @@ class EndpointHandler:
16
  trust_remote_code=trust_remote_code
17
  )
18
  tokenizer = AutoTokenizer.from_pretrained(
19
- "mosaicml/mpt-7b-instruct",
20
  trust_remote_code=trust_remote_code
21
  )
22
  if tokenizer.pad_token_id is None:
 
6
  class EndpointHandler:
7
  def __init__(
8
  self,
9
+ path='',
10
  torch_dtype=torch.bfloat16,
11
  trust_remote_code=True,
12
  ) -> None:
 
16
  trust_remote_code=trust_remote_code
17
  )
18
  tokenizer = AutoTokenizer.from_pretrained(
19
+ path,
20
  trust_remote_code=trust_remote_code
21
  )
22
  if tokenizer.pad_token_id is None: