Skip to content

Commit

Permalink
Merge pull request #5738 from botbw/prefetch
Browse files Browse the repository at this point in the history
[chore] fix init error
  • Loading branch information
Hz188 committed May 21, 2024
2 parents f5b7de3 + b3c0e6d commit 83716e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion colossalai/zero/gemini/gemini_mgr.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ def __init__(
self._mem_stats_collector = (
ChunkMemStatsCollector(chunk_manager, self._memstats) if policy_cls.need_mem_stats else None
)
self._placement_policy = policy_cls(self, chunk_manager, self._mem_stats_collector, **placement_kwargs)
self._placement_policy = policy_cls(
chunk_manager=chunk_manager, mem_stats_collector=self._mem_stats_collector, **placement_kwargs
)
self._compute_list: List[Tuple[Chunk, ...]] = []
self._compute_idx: int = -1
self._async_works: Dict[Chunk, dist.Work] = {}
Expand Down

0 comments on commit 83716e9

Please sign in to comment.