ml-commons
ml-commons copied to clipboard
[Enhancement] improve the pretrained model auto truncate to max size
Some pretrained model are not supporting max truncation size. For example this model huggingface/sentence-transformers/all-MiniLM-L6-v2 can support 512 tokens, but we only support 128 in pretrained model.