@@ -28,24 +28,25 @@ from .test_modeling_common import ModelTesterMixin, ids_tensor
ifis_torch_available():
importtorch
fromtransformersimport(
AutoModel,
AutoModelForSequenceClassification,
AutoTokenizer,
BartModel,
BartConfig,
BartForConditionalGeneration,
BartForSequenceClassification,
BartForQuestionAnswering,
BartConfig,
BartForSequenceClassification,
BartModel,
BartTokenizer,
BartTokenizerFast,
pipeline,
)
fromtransformers.modeling_bartimport(
shift_tokens_right,
invert_mask,
_prepare_bart_decoder_inputs,
SinusoidalPositionalEmbedding,
_prepare_bart_decoder_inputs,
invert_mask,
shift_tokens_right,
)
PGE_ARTICLE=""" PG&E stated it scheduled the blackouts in response to forecasts for high winds amid dry conditions. The aim is to reduce the risk of wildfires. Nearly 800 thousand customers were scheduled to be affected by the shutoffs which were expected to last through at least midday tomorrow."""