GuanshuoXu
commited on
Commit
•
ba973d4
1
Parent(s):
a5d1ed5
solve transformers 4.46 error
Browse files- modelling_h2ovl_chat.py +0 -2
modelling_h2ovl_chat.py
CHANGED
@@ -335,7 +335,6 @@ class H2OVLChatModel(PreTrainedModel):
|
|
335 |
attention_mask=attention_mask,
|
336 |
generation_config=generation_config,
|
337 |
output_hidden_states=output_hidden_states,
|
338 |
-
return_dict=return_dict,
|
339 |
use_cache=True,
|
340 |
**generate_kwargs,
|
341 |
)
|
@@ -468,7 +467,6 @@ class H2OVLChatModel(PreTrainedModel):
|
|
468 |
attention_mask=attention_mask,
|
469 |
generation_config=generation_config,
|
470 |
output_hidden_states=output_hidden_states,
|
471 |
-
return_dict=return_dict,
|
472 |
use_cache=True,
|
473 |
**generate_kwargs,
|
474 |
)
|
|
|
335 |
attention_mask=attention_mask,
|
336 |
generation_config=generation_config,
|
337 |
output_hidden_states=output_hidden_states,
|
|
|
338 |
use_cache=True,
|
339 |
**generate_kwargs,
|
340 |
)
|
|
|
467 |
attention_mask=attention_mask,
|
468 |
generation_config=generation_config,
|
469 |
output_hidden_states=output_hidden_states,
|
|
|
470 |
use_cache=True,
|
471 |
**generate_kwargs,
|
472 |
)
|