mirror of
https://github.com/saymrwulf/transformers.git
synced 2026-05-14 20:58:08 +00:00
fix(FA): QKV not being casted to target_dtype for FA with dpo lora (#35834)
fix(FA): QKV not being casted to target_dtype due to dtype check
This commit is contained in:
parent
ece8c42488
commit
478c4f2d0d
1 changed files with 1 additions and 1 deletions
|
|
@ -209,7 +209,7 @@ def fa_peft_integration_check(
|
|||
if target_dtype is None:
|
||||
return query, key, value
|
||||
|
||||
input_dtype = value.dtype
|
||||
input_dtype = query.dtype
|
||||
if input_dtype == torch.float32:
|
||||
logger.warning_once(
|
||||
f"The input hidden states seems to be silently casted in float32, this might be related to"
|
||||
|
|
|
|||
Loading…
Reference in a new issue