Tokenize Function • AI Agents Framework
tokenize_function: Tokenizes a batch of text prompts with padding and truncation enabled.
tokenize_function
Function
</div>
This function is defined in the train module.
Tokenizes a batch of text prompts with padding and truncation enabled.
Signature
def tokenize_function(examples: Any, hf_tokenizer: Any, max_length: Any) -> AnyParameters
ParamField
AnyNo description available.
ParamField
AnyNo description available.
ParamField
AnyNo description available.
Returns
ResponseField
AnyThe result of the operation.
Uses
hf_tokenizervalue.tolist
Used By
Source
View on GitHubpraisonai/train.py at line 83