Update modeling_InternLM_XComposer.py
Browse files
modeling_InternLM_XComposer.py
CHANGED
|
@@ -25,7 +25,8 @@ logger = logging.get_logger(__name__)
|
|
| 25 |
class InternLMXComposerForCausalLM(PreTrainedModel):
|
| 26 |
config_class = InternLMXComposerConfig
|
| 27 |
_auto_class = "AutoModelForCausalLM"
|
| 28 |
-
|
|
|
|
| 29 |
meta_instruction = """meta instruction
|
| 30 |
You are an AI assistant whose name is 浦语.
|
| 31 |
- 浦语 is a conversational language model that is developed by Shanghai AI Laboratory (上海人工智能实验室). It is designed to be helpful, honest, and harmless.
|
|
|
|
| 25 |
class InternLMXComposerForCausalLM(PreTrainedModel):
|
| 26 |
config_class = InternLMXComposerConfig
|
| 27 |
_auto_class = "AutoModelForCausalLM"
|
| 28 |
+
_no_split_modules = ["InternLMDecoderLayer"]
|
| 29 |
+
|
| 30 |
meta_instruction = """meta instruction
|
| 31 |
You are an AI assistant whose name is 浦语.
|
| 32 |
- 浦语 is a conversational language model that is developed by Shanghai AI Laboratory (上海人工智能实验室). It is designed to be helpful, honest, and harmless.
|