change model path
Browse files- handler.py +2 -2
handler.py
CHANGED
@@ -18,11 +18,11 @@ class EndpointHandler:
|
|
18 |
def initialize(self, context):
|
19 |
"""初始化模型和 tokenizer"""
|
20 |
self.tokenizer = AutoTokenizer.from_pretrained(
|
21 |
-
"
|
22 |
trust_remote_code=True
|
23 |
)
|
24 |
self.model = AutoModel.from_pretrained(
|
25 |
-
"
|
26 |
trust_remote_code=True,
|
27 |
torch_dtype=torch.float16 if torch.cuda.is_available() else torch.float32
|
28 |
).to(self.device)
|
|
|
18 |
def initialize(self, context):
|
19 |
"""初始化模型和 tokenizer"""
|
20 |
self.tokenizer = AutoTokenizer.from_pretrained(
|
21 |
+
"homer7676/FrierenChatbotV1",
|
22 |
trust_remote_code=True
|
23 |
)
|
24 |
self.model = AutoModel.from_pretrained(
|
25 |
+
"homer7676/FrierenChatbotV1",
|
26 |
trust_remote_code=True,
|
27 |
torch_dtype=torch.float16 if torch.cuda.is_available() else torch.float32
|
28 |
).to(self.device)
|