VILA icon indicating copy to clipboard operation
VILA copied to clipboard

Cannot correctly recognize <im_patch>

Open m2408gj opened this issue 1 year ago • 1 comments
trafficstars

When running codes on jetson, I found that the tokenizer (tokenizer = AutoTokenizer.from_pretrained(args.model_path, use_fast=False)) cannot correctly convert the LLAVA_DEFAULT_IMAGE_PATCH_TOKEN, i.e., <im_patch>, into the index in the vocabulary. That is, the tokenizer cannot recognize the LLAVA_DEFAULT_IMAGE_PATCH_TOKEN as a special token.

The environment is built following the instructions in the AWQ project (https://github.com/mit-han-lab/llm-awq), while the version of transformers is 4.36.2.

Did I do something wrong?

m2408gj avatar Apr 09 '24 08:04 m2408gj

Could you try VILA1.5 and let us know if there is still issue?

Close due to inactivity. Feel free to reopen if the issue still exsits.

Lyken17 avatar Jul 12 '24 01:07 Lyken17