mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
Adding model_parallel = False
This commit is contained in:
parent
e0c3cee170
commit
ba1d99976a
@ -2189,6 +2189,8 @@ class MT5ForTokenClassification(MT5PreTrainedModel):
|
||||
# Initialize weights and apply final processing
|
||||
self.post_init()
|
||||
|
||||
self.model_parallel = False
|
||||
|
||||
@add_start_docstrings_to_model_forward(MT5_INPUTS_DOCSTRING)
|
||||
@replace_return_docstrings(output_type=TokenClassifierOutput, config_class=_CONFIG_FOR_DOC)
|
||||
# Copied from transformers.models.t5.modeling_t5.T5ForTokenClassification.forward with T5->MT5
|
||||
|
@ -2136,6 +2136,8 @@ class T5ForTokenClassification(T5PreTrainedModel):
|
||||
# Initialize weights and apply final processing
|
||||
self.post_init()
|
||||
|
||||
self.model_parallel = False
|
||||
|
||||
@add_start_docstrings_to_model_forward(T5_INPUTS_DOCSTRING)
|
||||
@replace_return_docstrings(output_type=TokenClassifierOutput, config_class=_CONFIG_FOR_DOC)
|
||||
def forward(
|
||||
|
Loading…
Reference in New Issue
Block a user