P-tuning-v2 icon indicating copy to clipboard operation
P-tuning-v2 copied to clipboard

Question about the implementation details of prompt depth experiment

Open bj1103 opened this issue 2 years ago • 0 comments
trafficstars

Hello, I wonder to know how you implement the prompt with depth less than model's layers. Huggingface requires length of past_key_value to match the model's config.n_layers, so I think that we can't not just pass prompt which does not match layers to past_key_value. Besides, it seems that layers can't share same attention_mask if some of them have prompt and some of them don't.

Thanks!

bj1103 avatar Mar 05 '23 13:03 bj1103