Marlon Wiprud
commited on
Commit
·
19f8931
1
Parent(s):
5b8b5f4
fix: use diff path
Browse files- handler.py +2 -1
handler.py
CHANGED
@@ -58,7 +58,8 @@ class EndpointHandler:
|
|
58 |
)
|
59 |
self.model = load_checkpoint_and_dispatch(
|
60 |
self.model,
|
61 |
-
"
|
|
|
62 |
device_map=device_map,
|
63 |
no_split_module_classes=["CogVLMDecoderLayer"],
|
64 |
)
|
|
|
58 |
)
|
59 |
self.model = load_checkpoint_and_dispatch(
|
60 |
self.model,
|
61 |
+
"~/.cache/huggingface/modules/transformers_modules/THUDM/cogvlm-chat-hf/8abca878c4257412c4c38eeafaed3fe27a036730", # typical, '~/.cache/huggingface/hub/models--THUDM--cogvlm-chat-hf/snapshots/balabala'
|
62 |
+
# "/home/ec2-user/.cache/huggingface/hub/models--THUDM--cogvlm-chat-hf/snapshots/8abca878c4257412c4c38eeafaed3fe27a036730", # typical, '~/.cache/huggingface/hub/models--THUDM--cogvlm-chat-hf/snapshots/balabala'
|
63 |
device_map=device_map,
|
64 |
no_split_module_classes=["CogVLMDecoderLayer"],
|
65 |
)
|