mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-16 22:52:25 +00:00
[FAW] move coloparam setting in test code. (#1429)
This commit is contained in:
@@ -67,9 +67,6 @@ class ParallelFreqAwareEmbeddingBag(BaseEmbeddingBag):
|
||||
self.init_parameters()
|
||||
else:
|
||||
assert isinstance(_weight, ColoParameter), "initialized weight must in type of ColoParameter"
|
||||
_weight.process_group = ProcessGroup(tp_degree=self.world_size)
|
||||
_weight.set_tensor_spec(ShardSpec(dims=[-1], num_partitions=[self.world_size]),
|
||||
ComputeSpec(ComputePattern.TP1D))
|
||||
self._weight = _weight
|
||||
|
||||
@property
|
||||
|
Reference in New Issue
Block a user