mirror of
https://github.com/kvcache-ai/ktransformers.git
synced 2025-09-06 04:30:03 +00:00
⚡ fix experts torch
This commit is contained in:
parent
de082f141c
commit
ffb86c66e3
1 changed files with 3 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue