[Model] Remove obsolete ERNIE models (#45127)
Signed-off-by: Xianbao QIAN <xianbao.qian@gmail.com> Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -225,7 +225,6 @@ _EMBEDDING_MODELS = {
|
||||
# [Text-only]
|
||||
"BertModel": ("bert", "BertEmbeddingModel"),
|
||||
"BertSpladeSparseEmbeddingModel": ("bert", "BertSpladeSparseEmbeddingModel"),
|
||||
"ErnieModel": ("ernie", "ErnieEmbeddingModel"),
|
||||
"BgeM3EmbeddingModel": ("roberta", "BgeM3EmbeddingModel"),
|
||||
"DeciLMForCausalLM": ("nemotron_nas", "DeciLMForCausalLM"),
|
||||
"Gemma2Model": ("gemma2", "Gemma2ForCausalLM"),
|
||||
@@ -300,7 +299,6 @@ _REWARD_MODELS = {
|
||||
|
||||
_TOKEN_CLASSIFICATION_MODELS = {
|
||||
"BertForTokenClassification": ("bert", "BertForTokenClassification"),
|
||||
"ErnieForTokenClassification": ("ernie", "ErnieForTokenClassification"),
|
||||
"ModernBertForTokenClassification": (
|
||||
"modernbert",
|
||||
"ModernBertForTokenClassification",
|
||||
@@ -314,7 +312,6 @@ _TOKEN_CLASSIFICATION_MODELS = {
|
||||
_SEQUENCE_CLASSIFICATION_MODELS = {
|
||||
"BertForSequenceClassification": ("bert", "BertForSequenceClassification"),
|
||||
"GPT2ForSequenceClassification": ("gpt2", "GPT2ForSequenceClassification"),
|
||||
"ErnieForSequenceClassification": ("ernie", "ErnieForSequenceClassification"),
|
||||
"GteNewForSequenceClassification": (
|
||||
"bert_with_rope",
|
||||
"GteNewForSequenceClassification",
|
||||
@@ -715,6 +712,9 @@ _PREVIOUSLY_SUPPORTED_MODELS = {
|
||||
"Phi4FlashForCausalLM": "0.10.2",
|
||||
"Phi4MultimodalForCausalLM": "0.12.0",
|
||||
"JAISLMHeadModel": "0.22.0",
|
||||
"ErnieModel": "0.23.0",
|
||||
"ErnieForSequenceClassification": "0.23.0",
|
||||
"ErnieForTokenClassification": "0.23.0",
|
||||
# encoder-decoder models except whisper
|
||||
# have been removed for V0 deprecation.
|
||||
"DonutForConditionalGeneration": "0.10.2",
|
||||
|
||||
Reference in New Issue
Block a user