dirtycomputer / O2M_attack

46 stars 10 forks source link

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

Open LeeOrange-is-me opened 1 week ago

LeeOrange-is-me commented 1 week 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 2 days ago

how did you download the model weights