original_docstring: 
      Pads vocabulary to a multiple of 'pad' tokens.
  
      Args:
          vocab (list): list with vocabulary
          math (str): Math precision. either `fp_16`, `manual_fp16` or `fp32`
  
      Returns:
          list: padded vocabulary
      
docstring: Pads vocabulary to a multiple of 'pad' tokens.
docstring_tokens: Pads vocabulary to a multiple of ' pad ' tokens .
code: def _pad_vocabulary(vocab, math):
      """
      Pads vocabulary to a multiple of 'pad' tokens.
  
      Args:
          vocab (list): list with vocabulary
          math (str): Math precision. either `fp_16`, `manual_fp16` or `fp32`
  
      Returns:
          list: padded vocabulary
      """
      if math == "fp16":
          pad = 8
      elif math == "fp32":
          pad = 1
      else:
          raise NotImplementedError()
  
      vocab_size = len(vocab)
      padded_vocab_size = (vocab_size + pad - 1) // pad * pad
      for i in range(0, padded_vocab_size - vocab_size):
          token = f"madeupword{i:04d}"
          vocab.append(token)
      assert len(vocab) % pad == 0
      return vocab
code_tokens: def _pad_vocabulary ( vocab , math ) : if math == "fp16" : pad = 8 elif math == "fp32" : pad = 1 else : raise NotImplementedError ( ) vocab_size = len ( vocab ) padded_vocab_size = ( vocab_size + pad - 1 ) // pad * pad for i in range ( 0 , padded_vocab_size - vocab_size ) : token = f"madeupword{i:04d}" vocab . append ( token ) assert len ( vocab ) % pad == 0 return vocab
short_docstring: Pads vocabulary to a multiple of 'pad' tokens.
short_docstring_tokens: Pads vocabulary to a multiple of ' pad ' tokens .
comment: """
      Pads vocabulary to a multiple of 'pad' tokens.
  
      Args:
          vocab (list): list with vocabulary
          math (str): Math precision. either `fp_16`, `manual_fp16` or `fp32`
  
      Returns:
          list: padded vocabulary
      """