dirtycomputer / O2M_attack

77 stars 11 forks source link

[Question] Some incorrect vocab_size may confuse me. #2

Closed LeeOrange-is-me closed 1 month ago

LeeOrange-is-me commented 4 months ago

I just run run_jailbreak.py by using pyhton run_jailbreak.py.

but it turns out that:

IndexError: index out of range in self

I find that, the vocab_size is 32000, but there are 32001 and many 32000 in the tensor input_ids in function opti_utils.py:get_embeddings(model,input_ids).

And I wanna why that was that, and seek for help...

dirtycomputer commented 4 months ago

how did you download the model weights