Closed acDante closed 4 months ago
Hi @acDante,
The problem was due to the apply_chat_template
that was adding the BOS, and even though skip_special_tokens
was specified this wasn't ignored in model.attribute
. You can check out the branch fix-multidevice
as shown in my last comment on #276 and it should work now!
Question
Hi @gsarti , I got this issue when I used
tokenizer.apply_chat_template()
to build the prompt before computing attribution. How to use themodel.attribute()
function when the input prompt starts with some special tokens?Here is my code snippet:
The stack trace:
Additional context
I checked this thread: https://github.com/inseq-team/inseq/issues/271 and tried to add
skip_special_tokens=False
ininseq_model.attribute()
, but this issue still occurs.Checklist
issues
.