MCPcopy Create free account
hub / github.com/ModelTC/LightX2V / release_memory

Method release_memory

lightx2v/disagg/services/encoder.py:694–700  ·  view source on GitHub ↗

Releases the RDMA buffers and clears GPU cache.

(self, room: int)

Source from the content-addressed store, hash-verified

692 """
693 if room in self._rdma_buffers:
694 self._rdma_buffers.pop(room, None)
695 torch.cuda.empty_cache()
696
697 def remove(self, room: int):
698 self.release_memory(room)
699
700 self.data_sender.pop(room, None)
701 self._data_mgr_sidecar.unwatch_output(room)
702
703 if self.data_mgr is None:

Callers 1

removeMethod · 0.95

Calls 1

popMethod · 0.80

Tested by

no test coverage detected