Closed hjsg1010 closed 1 year ago
Hi! ALiBi can only be used by models that were trained with it. Llama wasn't trained with ALiBi, so you can't do that.
Hi! ALiBi can only be used by models that were trained with it. Llama wasn't trained with ALiBi, so you can't do that.
oh, then how about GPT-NeoX based model? such as polyglot?
I believe those weren't trained with ALiBi...
How can I apply ALiBi Position Encoding into huggingface model?
I implemented ALiBi position encoding as below code and I referenced from eleutherai/gpt-neox implementaion.
I've tried as below code (incase I use GPT2 based model)
However, it doesn't work. Can you teach me appropriate way that apply Alibi into huggingface custom models(such as llama, polyglot etc)?
Regards.