Release InternVL 2.5
Browse files- config.json +1 -0
- modeling_intern_vit.py +1 -0
- modeling_internvl_chat.py +1 -1
config.json
CHANGED
@@ -17,6 +17,7 @@
|
|
17 |
"architectures": [
|
18 |
"Qwen2ForCausalLM"
|
19 |
],
|
|
|
20 |
"attention_dropout": 0.0,
|
21 |
"bad_words_ids": null,
|
22 |
"begin_suppress_tokens": null,
|
|
|
17 |
"architectures": [
|
18 |
"Qwen2ForCausalLM"
|
19 |
],
|
20 |
+
"_attn_implementation": "flash_attention_2",
|
21 |
"attention_dropout": 0.0,
|
22 |
"bad_words_ids": null,
|
23 |
"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
|
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
|