File tree Expand file tree Collapse file tree 3 files changed +14
-7
lines changed
taggui/auto_captioning/models Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,6 @@ pyparsing==3.2.1
7
7
PySide6 == 6.8.2.1
8
8
transformers == 4.48.3
9
9
10
- # PyTorch
11
- torch == 2.6.0 ; platform_system != "Windows"
12
- https://download.pytorch.org/whl/cu124/torch-2.6.0%2Bcu124-cp312-cp312-win_amd64.whl; platform_system == "Windows" and python_version == "3.12"
13
- https://download.pytorch.org/whl/cu124/torch-2.6.0%2Bcu124-cp311-cp311-win_amd64.whl; platform_system == "Windows" and python_version == "3.11"
14
-
15
10
# CogAgent
16
11
timm == 1.0.14
17
12
@@ -30,7 +25,17 @@ numpy==2.2.3
30
25
huggingface-hub == 0.29.1
31
26
onnxruntime == 1.20.1
32
27
28
+ # PyTorch
29
+ torch == 2.6.0 ; platform_system != "Windows"
30
+ https://download.pytorch.org/whl/cu124/torch-2.6.0%2Bcu124-cp312-cp312-win_amd64.whl; platform_system == "Windows" and python_version == "3.12"
31
+ https://download.pytorch.org/whl/cu124/torch-2.6.0%2Bcu124-cp311-cp311-win_amd64.whl; platform_system == "Windows" and python_version == "3.11"
32
+
33
33
# FlashAttention (Florence-2, Phi-3-Vision)
34
34
flash-attn == 2.7.4.post1 ; platform_system == "Linux"
35
35
https://github.com/kingbri1/flash-attention/releases/download/v2.7.4.post1/flash_attn-2.7.4.post1+cu124torch2.6.0cxx11abiFALSE-cp312-cp312-win_amd64.whl; platform_system == "Windows" and python_version == "3.12"
36
36
https://github.com/kingbri1/flash-attention/releases/download/v2.7.4.post1/flash_attn-2.7.4.post1+cu124torch2.6.0cxx11abiFALSE-cp311-cp311-win_amd64.whl; platform_system == "Windows" and python_version == "3.11"
37
+
38
+ # Triton (CogVLM2)
39
+ triton == 3.2.0 ; platform_system == "Linux"
40
+ https://github.com/woct0rdho/triton-windows/releases/download/v3.2.0-windows.post10/triton-3.2.0-cp312-cp312-win_amd64.whl; platform_system == "Windows" and python_version == "3.12"
41
+ https://github.com/woct0rdho/triton-windows/releases/download/v3.2.0-windows.post10/triton-3.2.0-cp311-cp311-win_amd64.whl; platform_system == "Windows" and python_version == "3.11"
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ from PyInstaller.utils.hooks import collect_data_files
3
3
4
4
datas = [('clip-vit-base-patch32' , 'clip-vit-base-patch32' ),
5
5
('images/icon.ico' , 'images' )]
6
+ datas += collect_data_files ('triton' )
6
7
datas += collect_data_files ('xformers' )
7
8
hiddenimports = [
8
9
'timm.models.layers' ,
@@ -27,6 +28,7 @@ a = Analysis(
27
28
cipher = block_cipher ,
28
29
noarchive = False ,
29
30
module_collection_mode = {
31
+ 'triton' : 'py' ,
30
32
'xformers' : 'pyz+py' ,
31
33
},
32
34
)
Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ class Cogvlm2(AutoCaptioningModel):
19
19
def get_additional_error_message (self ) -> str | None :
20
20
if not importlib .util .find_spec ('triton' ):
21
21
return ('This model requires the `triton` package, which is only '
22
- 'available on Linux. Therefore, this model cannot be run '
23
- 'on this system.' )
22
+ 'available for Linux and Windows . Therefore, this model '
23
+ 'cannot be run on this system.' )
24
24
is_4_bit_model = 'int4' in self .model_id
25
25
if is_4_bit_model :
26
26
if self .device_setting == CaptionDevice .CPU :
You can’t perform that action at this time.
0 commit comments