Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -29,7 +29,7 @@ class EndpointHandler:
|
|
29 |
|
30 |
self.tokenizer = AutoTokenizer.from_pretrained(path)
|
31 |
print("Memory footprint: ", self.model.get_memory_footprint())
|
32 |
-
print("Device map: ", model.hf_device_map)
|
33 |
|
34 |
def __call__(self, data: Any) -> List[List[Dict[str, str]]]:
|
35 |
|
|
|
29 |
|
30 |
self.tokenizer = AutoTokenizer.from_pretrained(path)
|
31 |
print("Memory footprint: ", self.model.get_memory_footprint())
|
32 |
+
print("Device map: ", self.model.hf_device_map)
|
33 |
|
34 |
def __call__(self, data: Any) -> List[List[Dict[str, str]]]:
|
35 |
|