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 Releases the RDMA buffers and clears GPU cache.
694 """
695 if room in self._rdma_buffers:
696 self._rdma_buffers.pop(room, None)
697 torch.cuda.empty_cache()
698
699 def remove(self, room: int):
700 self.release_memory(room)
701
702 self.data_sender.pop(room, None)
703 self._data_mgr_sidecar.unwatch_output(room)

Callers 1

removeMethod · 0.95

Calls 1

popMethod · 0.80

Tested by

no test coverage detected