mirror of
				https://github.com/ml-explore/mlx-examples.git
				synced 2025-11-04 05:28:11 +08:00 
			
		
		
		
	fix yi (#852)
This commit is contained in:
		@@ -120,7 +120,7 @@ class SPMStreamingDetokenizer(StreamingDetokenizer):
 | 
			
		||||
        self.trim_space = trim_space
 | 
			
		||||
 | 
			
		||||
        # Extract the tokens in a list from id to text
 | 
			
		||||
        self.tokenmap = [None] * len(tokenizer.vocab)
 | 
			
		||||
        self.tokenmap = [""] * (max(tokenizer.vocab.values()) + 1)
 | 
			
		||||
        for value, tokenid in tokenizer.vocab.items():
 | 
			
		||||
            self.tokenmap[tokenid] = value
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user