Explorar o código

unified expert prefix format

justheuristic %!s(int64=5) %!d(string=hai) anos
pai
achega
6f541f9ebc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tesseract/client/moe.py

+ 1 - 1
tesseract/client/moe.py

@@ -48,7 +48,7 @@ class RemoteMixtureOfExperts(nn.Module):
 
         # grab some expert to set ensemble output shape
         dummy_scores = self.proj(torch.randn(1, self.proj.in_features)).split_with_sizes(grid_size, dim=-1)
-        self.output_schema = self.beam_search(dummy_scores, k_best=1)[0][0].info['output_schema']
+        self.output_schema = self.beam_search(dummy_scores, k_best=1)[0][0].info['outputs_schema']
 
     def forward(self, input: torch.Tensor, *args: torch.Tensor, **kwargs: torch.Tensor):
         """