Skip to content

Commit c6c1c7b

Browse files
author
gushiqiao
committed
Fix
2 parents 691afe1 + 21beba3 commit c6c1c7b

4 files changed

Lines changed: 46 additions & 7 deletions

File tree

.github/workflows/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ jobs:
2626

2727
- name: Install dependencies
2828
run: |
29-
pip install -r requirements.txt
29+
cd ci_check
30+
pip install -r runtime.txt
3031
3132
- name: Download dataset
3233
run: |

.pre-commit-config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ exclude: |
88
)
99
repos:
1010
- repo: https://github.com/PyCQA/flake8
11-
rev: 5.0.4
11+
rev: 7.2.0
1212
hooks:
1313
- id: flake8
1414
args: ["--max-line-length=100", "--ignore=F403,F401,W503,W504,E402"]
1515
exclude: configs/
1616
- repo: https://github.com/PyCQA/isort
17-
rev: 5.11.5
17+
rev: 6.0.1
1818
hooks:
1919
- id: isort
2020
exclude: configs/
@@ -25,7 +25,7 @@ repos:
2525
args: ["--style={column_limit: 100}"]
2626
exclude: configs/
2727
- repo: https://github.com/codespell-project/codespell
28-
rev: v2.2.1
28+
rev: v2.4.1
2929
hooks:
3030
- id: codespell
3131
exclude: |
@@ -35,7 +35,7 @@ repos:
3535
configs/
3636
)
3737
- repo: https://github.com/pre-commit/pre-commit-hooks
38-
rev: v4.3.0
38+
rev: v5.0.0
3939
hooks:
4040
- id: trailing-whitespace
4141
exclude: |
@@ -56,7 +56,7 @@ repos:
5656
- id: mixed-line-ending
5757
args: ["--fix=lf"]
5858
- repo: https://github.com/executablebooks/mdformat
59-
rev: 0.7.9
59+
rev: 0.7.16
6060
hooks:
6161
- id: mdformat
6262
args: ["--number", "--table-width", "200"]
@@ -66,7 +66,7 @@ repos:
6666
- linkify-it-py
6767
exclude: configs/
6868
- repo: https://github.com/myint/docformatter
69-
rev: v1.3.1
69+
rev: v1.7.6
7070
hooks:
7171
- id: docformatter
7272
args: ["--in-place", "--wrap-descriptions", "100"]

ci_check/runtime.txt

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
torch==2.7.0
2+
torchvision==0.22.0
3+
timm==1.0.15
4+
pillow==11.2.1
5+
loguru==0.7.3
6+
transformers==4.51.3
7+
huggingface-hub==0.30.2
8+
sentencepiece==0.1.99
9+
protobuf==3.20.0
10+
accelerate==1.6.0
11+
zstandard==0.23.0
12+
easydict==1.13
13+
evaluate==0.4.3
14+
datasets==2.16.1
15+
jsonlines==4.0.0
16+
numexpr==2.10.2
17+
peft==0.15.2
18+
pybind11==2.13.6
19+
pytablewriter==1.2.1
20+
rouge-score>=0.0.4
21+
sacrebleu==2.5.1
22+
scikit-learn==1.6.1
23+
sqlitedict==2.1.0
24+
tqdm-multiprocess==0.0.11
25+
dill==0.3.7
26+
word2number==1.1
27+
more_itertools
28+
qtorch==0.3.0
29+
einops==0.8.1
30+
qwen-vl-utils==0.0.11
31+
tiktoken==0.9.0
32+
librosa==0.11.0
33+
human_eval
34+
lmms-eval
35+
imageio==2.37.0
36+
diffusers==0.33.1

llmc/compression/quantization/quarot.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def preprocess(self):
5353
for rot_layer in self.model.get_extra_rot_module_besides_embed_layers():
5454
logger.info('For multimodal model, quarot need rotate last layer in projector.')
5555
logger.info(f'rot_layer : {rot_layer}')
56+
# docformatter: off
5657
"""
5758
txt_input img_input
5859
| |
@@ -66,6 +67,7 @@ def preprocess(self):
6667
X_txt ~ W_embedding * Q = X_txt ~ (W_embedding * Q)
6768
X_proj * W_proj.t() * Q = X_proj * (Q.t() * W_proj).t()
6869
"""
70+
# docformatter: on
6971
dtype = rot_layer.weight.dtype
7072
device = self.Q.device
7173
W = rot_layer.weight.data.to(device=device, dtype=torch.float64)

0 commit comments

Comments
 (0)