mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-06 11:32:10 +00:00
[embedding] rollback for better FAW performance (#1625)
This commit is contained in:
@@ -90,7 +90,7 @@ def test_reorder_with_freq():
|
||||
offset_in_chunk = torch.tensor(offset_in_chunk, dtype=torch.long, device=dev)
|
||||
|
||||
weight = torch.rand(num_embed, 2)
|
||||
mgr = CachedParamMgr(weight, num_chunk, use_cpu_caching=dev.type == 'cpu')
|
||||
mgr = CachedParamMgr(weight, num_chunk)
|
||||
|
||||
mgr.reorder(idx_map)
|
||||
|
||||
|
Reference in New Issue
Block a user