update comment

This commit is contained in:
Cyril Vallez 2025-01-20 15:25:10 +01:00
parent 6e0f37c0ca
commit 52afdcc281
No known key found for this signature in database

View File

@ -243,10 +243,8 @@ class TransformersFlashCausalLM(FlashCausalLM):
adapter_data=None, # not supported, but passed to match original signature
):
hidden_states = self.model.model.forward(
input_ids=input_ids.unsqueeze(0), # expand dim to easily fit transformers
position_ids=position_ids.unsqueeze(
0
), # expand dim to easily fit transformers
input_ids=input_ids.unsqueeze(0), # expand dim to fit Transformers
position_ids=position_ids.unsqueeze(0), # expand dim to fit Transformers
past_key_values=None, # we use self.kv_cache instead of transformers cache object
use_cache=False, # we use self.kv_cache instead of transformers cache object
return_dict=True,