czczup commited on
Commit
fcf3f25
·
verified ·
1 Parent(s): a46a44a

Release InternVL 2.5

Browse files
config.json CHANGED
@@ -21,7 +21,8 @@
21
  "auto_map": {
22
  "AutoConfig": "configuration_internlm2.InternLM2Config",
23
  "AutoModel": "modeling_internlm2.InternLM2ForCausalLM",
24
- "AutoModelForCausalLM": "modeling_internlm2.InternLM2ForCausalLM"
 
25
  },
26
  "bad_words_ids": null,
27
  "begin_suppress_tokens": null,
 
21
  "auto_map": {
22
  "AutoConfig": "configuration_internlm2.InternLM2Config",
23
  "AutoModel": "modeling_internlm2.InternLM2ForCausalLM",
24
+ "AutoModelForCausalLM": "modeling_internlm2.InternLM2ForCausalLM",
25
+ "AutoModelForSequenceClassification": "modeling_internlm2.InternLM2ForSequenceClassification"
26
  },
27
  "bad_words_ids": null,
28
  "begin_suppress_tokens": null,
modeling_intern_vit.py CHANGED
@@ -3,6 +3,7 @@
3
  # Copyright (c) 2024 OpenGVLab
4
  # Licensed under The MIT License [see LICENSE for details]
5
  # --------------------------------------------------------
 
6
  from typing import Optional, Tuple, Union
7
 
8
  import torch
 
3
  # Copyright (c) 2024 OpenGVLab
4
  # Licensed under The MIT License [see LICENSE for details]
5
  # --------------------------------------------------------
6
+
7
  from typing import Optional, Tuple, Union
8
 
9
  import torch
modeling_internvl_chat.py CHANGED
@@ -5,7 +5,7 @@
5
  # --------------------------------------------------------
6
 
7
  import warnings
8
- from typing import Any, List, Optional, Tuple, Union
9
 
10
  import torch.utils.checkpoint
11
  import transformers
 
5
  # --------------------------------------------------------
6
 
7
  import warnings
8
+ from typing import List, Optional, Tuple, Union
9
 
10
  import torch.utils.checkpoint
11
  import transformers