You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My question is why here we distinguish inference_mode and do special treatment? can we combine 2 branches and just use "past_key_values = prompt_encoder(prompt_tokens)"?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Q1:
in peft_model.py / class PeftModel:
My question is why here we distinguish inference_mode and do special treatment? can we combine 2 branches and just use "past_key_values = prompt_encoder(prompt_tokens)"?
Q2:
other.py
my question is if we can omit the transpose(2, 3) operation and just use keys.reshape(...)?
what's the difference?
I'm new comer to pytorch and PEFT code, any help is highly appreciated.
thanks all ~
Beta Was this translation helpful? Give feedback.
All reactions