mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-07 20:10:17 +00:00
add some todo Message
This commit is contained in:
@@ -125,7 +125,7 @@ class GeminiManager:
|
||||
self._async_works[chunk].wait()
|
||||
del self._async_works[chunk]
|
||||
else:
|
||||
non_prefetched_chunks.append(chunk)
|
||||
non_prefetched_chunks.append(chunk) # 没在之前prefetch过,现在要prefetch的chunk
|
||||
return tuple(non_prefetched_chunks)
|
||||
|
||||
def add_work(self, chunk: Chunk, work: dist.Work):
|
||||
@@ -154,6 +154,7 @@ class GeminiManager:
|
||||
|
||||
def _record_warmup_chunks_order(self, chunks: Tuple[Chunk, ...], record_anyway: bool = False) -> None:
|
||||
self._compute_idx += 1
|
||||
# TODO(haze188): _compute_list 记录块的访问顺序
|
||||
if self._warmup and (self._placement_policy.need_mem_stats or record_anyway):
|
||||
self._compute_list.append(chunks)
|
||||
|
||||
|
Reference in New Issue
Block a user