MCPcopy Create free account
hub / github.com/OpenMOSS/MOSS-TTS / as_dict

Method as_dict

moss_tts_delay/llama_cpp/gpu_monitor.py:184–192  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

182 return "\n".join(lines)
183
184 def as_dict(self) -> dict:
185 base = self._snaps[0].gpu_used_mb if self._snaps else 0
186 return {
187 "gpu_name": self._gpu_name,
188 "gpu_total_mb": self._gpu_total_mb,
189 "peak_gpu_mb": self.peak_gpu_mb,
190 "total_allocated_mb": self.peak_gpu_mb - base,
191 "snapshots": {s.label: s.gpu_used_mb for s in self._snaps},
192 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected