mirror of
https://github.com/RYDE-WORK/ktransformers.git
synced 2026-01-19 21:03:18 +08:00
⚡ fix experts torch
This commit is contained in:
parent
de082f141c
commit
ffb86c66e3
@ -459,9 +459,9 @@ class KExpertsTorch(KExpertsBase):
|
||||
self.up[i] = w["up"][i, ...].to(device=device, dtype=self.dtype)
|
||||
self.down[i] = w["down"][i, ...].to(device=device, dtype=self.dtype)
|
||||
|
||||
self.up = torch.cat(self.up, dim=0)
|
||||
self.gate = torch.cat(self.gate, dim=0)
|
||||
self.down = torch.cat(self.down, dim=0)
|
||||
self.up = torch.stack(self.up, dim=0)
|
||||
self.gate = torch.stack(self.gate, dim=0)
|
||||
self.down = torch.stack(self.down, dim=0)
|
||||
return
|
||||
|
||||
def unload(self):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user