[Model] Remove InternLMForCausalLM registry alias (#45128)

Signed-off-by: Xianbao QIAN <xianbao.qian@gmail.com>
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Tiezhen WANG
2026-06-11 20:02:51 +00:00
committed by GitHub
co-authored by Claude
parent 235b63c004
commit c9340e6f35
14 changed files with 1 additions and 17 deletions
-1
View File
@@ -252,7 +252,6 @@ class ApertusDecoderLayer(nn.Module):
self.hidden_size = config.hidden_size
max_position_embeddings = getattr(config, "max_position_embeddings", 8192)
# Support abacusai/Smaug-72B-v0.1 with attention_bias
# Support internlm/internlm-7b with bias
attention_bias = getattr(config, "attention_bias", False) or getattr(
config, "bias", False
)
-1
View File
@@ -243,7 +243,6 @@ class ExaoneDecoderLayer(nn.Module):
self.hidden_size = config.hidden_size
max_position_embeddings = getattr(config, "max_position_embeddings", 8192)
# Support abacusai/Smaug-72B-v0.1 with attention_bias
# Support internlm/internlm-7b with bias
attention_bias = getattr(config, "attention_bias", False) or getattr(
config, "bias", False
)
-1
View File
@@ -230,7 +230,6 @@ class Exaone4DecoderLayer(nn.Module):
self.hidden_size = config.hidden_size
max_position_embeddings = getattr(config, "max_position_embeddings", 8192)
# Support abacusai/Smaug-72B-v0.1 with attention_bias
# Support internlm/internlm-7b with bias
attention_bias = getattr(config, "attention_bias", False) or getattr(
config, "bias", False
)
-1
View File
@@ -179,7 +179,6 @@ class ExaoneMoeDecoderLayer(nn.Module):
self.hidden_size = config.hidden_size
max_position_embeddings = getattr(config, "max_position_embeddings", 8192)
# Support abacusai/Smaug-72B-v0.1 with attention_bias
# Support internlm/internlm-7b with bias
attention_bias = getattr(config, "attention_bias", False) or getattr(
config, "bias", False
)
-1
View File
@@ -199,7 +199,6 @@ class GraniteDecoderLayer(nn.Module):
self.residual_multiplier = config.residual_multiplier
max_position_embeddings = getattr(config, "max_position_embeddings", 8192)
# Support abacusai/Smaug-72B-v0.1 with attention_bias
# Support internlm/internlm-7b with bias
attention_bias = getattr(config, "attention_bias", False) or getattr(
config, "bias", False
)
-1
View File
@@ -225,7 +225,6 @@ class Jais2DecoderLayer(nn.Module):
self.hidden_size = config.hidden_size
max_position_embeddings = getattr(config, "max_position_embeddings", 8192)
# Support abacusai/Smaug-72B-v0.1 with attention_bias
# Support internlm/internlm-7b with bias
attention_bias = getattr(config, "attention_bias", False) or getattr(
config, "bias", False
)
-1
View File
@@ -268,7 +268,6 @@ class LlamaDecoderLayer(nn.Module):
self.hidden_size = config.hidden_size
max_position_embeddings = getattr(config, "max_position_embeddings", 8192)
# Support abacusai/Smaug-72B-v0.1 with attention_bias
# Support internlm/internlm-7b with bias
attention_bias = getattr(config, "attention_bias", False) or getattr(
config, "bias", False
)
-1
View File
@@ -237,7 +237,6 @@ class NemotronDecoderLayer(nn.Module):
self.hidden_size = config.hidden_size
max_position_embeddings = getattr(config, "max_position_embeddings", 8192)
# Support abacusai/Smaug-72B-v0.1 with attention_bias
# Support internlm/internlm-7b with bias
attention_bias = getattr(config, "attention_bias", False) or getattr(
config, "bias", False
)
@@ -141,7 +141,6 @@ class DeciLMDecoderLayer(nn.Module):
self.hidden_size = config.hidden_size
max_position_embeddings = getattr(config, "max_position_embeddings", 8192)
# Support abacusai/Smaug-72B-v0.1 with attention_bias
# Support internlm/internlm-7b with bias
attention_bias = getattr(config, "attention_bias", False) or getattr(
config, "bias", False
)
+1 -1
View File
@@ -140,7 +140,6 @@ _TEXT_GENERATION_MODELS = {
"HCXVisionForCausalLM": ("hyperclovax_vision", "HCXVisionForCausalLM"),
"HCXVisionV2ForCausalLM": ("hyperclovax_vision_v2", "HCXVisionV2ForCausalLM"),
"HyperCLOVAXForCausalLM": ("hyperclovax", "HyperCLOVAXForCausalLM"),
"InternLMForCausalLM": ("llama", "LlamaForCausalLM"),
"InternLM2ForCausalLM": ("internlm2", "InternLM2ForCausalLM"),
"InternLM2VEForCausalLM": ("internlm2_ve", "InternLM2VEForCausalLM"),
"InternLM3ForCausalLM": ("llama", "LlamaForCausalLM"),
@@ -715,6 +714,7 @@ _PREVIOUSLY_SUPPORTED_MODELS = {
"ErnieForTokenClassification": "0.23.0",
"QWenLMHeadModel": "0.23.0",
"QwenVLForConditionalGeneration": "0.23.0",
"InternLMForCausalLM": "0.23.0",
# encoder-decoder models except whisper
# have been removed for V0 deprecation.
"DonutForConditionalGeneration": "0.10.2",
-1
View File
@@ -198,7 +198,6 @@ class SolarDecoderLayer(nn.Module):
self.hidden_size = config.hidden_size
max_position_embeddings = getattr(config, "max_position_embeddings", 8192)
# Support abacusai/Smaug-72B-v0.1 with attention_bias
# Support internlm/internlm-7b with bias
attention_bias = getattr(config, "attention_bias", False) or getattr(
config, "bias", False
)