multimodalart HF Staff commited on
Commit
ff47019
Β·
verified Β·
1 Parent(s): 5b9e7d1

Update kugelaudio_open/models/tokenizer.py

Browse files
kugelaudio_open/models/tokenizer.py CHANGED
@@ -758,7 +758,7 @@ class TokenizerEncoder(nn.Module):
758
  )
759
 
760
  self.stages = nn.ModuleList()
761
- dp_rates = [x.item() for x in torch.linspace(0, drop_path_rate, sum(self.depths))]
762
  cur = 0
763
 
764
  for i in range(len(self.depths)):
@@ -895,7 +895,7 @@ class TokenizerDecoder(nn.Module):
895
  )
896
 
897
  self.stages = nn.ModuleList()
898
- dp_rates = [x.item() for x in torch.linspace(0, drop_path_rate, sum(self.depths))]
899
  cur = 0
900
 
901
  # Create stages in the same order as the original model
 
758
  )
759
 
760
  self.stages = nn.ModuleList()
761
+ dp_rates = torch.linspace(0, drop_path_rate, sum(self.depths)).tolist()
762
  cur = 0
763
 
764
  for i in range(len(self.depths)):
 
895
  )
896
 
897
  self.stages = nn.ModuleList()
898
+ dp_rates = torch.linspace(0, drop_path_rate, sum(self.depths)).tolist()
899
  cur = 0
900
 
901
  # Create stages in the same order as the original model