Ngit commited on
Commit
5f3e17d
1 Parent(s): ce814eb

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +2 -0
handler.py CHANGED
@@ -28,6 +28,8 @@ class EndpointHandler:
28
  )
29
 
30
  self.tokenizer = AutoTokenizer.from_pretrained(path)
 
 
31
 
32
  def __call__(self, data: Any) -> List[List[Dict[str, str]]]:
33
 
 
28
  )
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