Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ae1e5a8

Browse files
committedFeb 18, 2025·
reorg src structure, remove legacy or history codes, refine initializer interface
1 parent ef58511 commit ae1e5a8

File tree

113 files changed

+1210
-1350
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+1210
-1350
lines changed
 

‎.github/workflows/demo_in_readme.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ jobs:
6363
export GITHUB_WORKSPACE=$GITHUB_WORKSPACE
6464
export SLURM_PARTITION=$SLURM_PARTITION
6565
source activate ${evo_env_torch21_flash2}
66+
export PYTHONPATH=$PWD:$PYTHONPATH
6667
sh ./ci_scripts/train/slurm_train.sh ${GITHUB_RUN_ID}-${GITHUB_JOB}
6768
EOF
6869
@@ -97,6 +98,7 @@ jobs:
9798
export GITHUB_WORKSPACE=$GITHUB_WORKSPACE
9899
export SLURM_PARTITION=$SLURM_PARTITION
99100
source activate ${evo_env_torch21_flash2}
101+
export PYTHONPATH=$PWD:$PYTHONPATH
100102
sh ./ci_scripts/train/torchrun.sh ${GITHUB_RUN_ID}-${GITHUB_JOB}
101103
rm -rf $GITHUB_WORKSPACE/llm_ckpts
102104
EOF

‎.github/workflows/lint_check.yaml

+2-6
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,21 @@ jobs:
1818
run: |
1919
pip install flake8==v3.8.4
2020
FLAKE_DISABLE_LIST="F403,F405,W504,W503,E203"
21-
flake8 --max-line-length=120 --ignore=$FLAKE_DISABLE_LIST --exclude=./internlm/model/ops/ring_flash_attn/zigzag_ring_flash_attn_with_sliding_window.py ./internlm/*
22-
flake8 --max-line-length=120 --ignore=$FLAKE_DISABLE_LIST ./train.py
21+
flake8 --max-line-length=120 --ignore=$FLAKE_DISABLE_LIST --exclude=./internlm/model/model_ops/ops/ring_flash_attn/zigzag_ring_flash_attn_with_sliding_window.py ./internlm/*
2322
2423
- name: lint-isort
2524
run: |
2625
pip install isort==5.12.0
2726
isort --check --profile=black ./internlm/*
28-
isort --check --profile=black ./train.py
2927
3028
- name: lint-black
3129
run: |
3230
pip install black==22.8.0
3331
BLACK_EXCLUDE_SETTINGS='\.venv/|\.local/|\.cache/|\.git/'
3432
black --line-length=120 --check --exclude $BLACK_EXCLUDE_SETTINGS ./internlm/*
35-
black --line-length=120 --check --exclude $BLACK_EXCLUDE_SETTINGS ./train.py
3633
3734
- name: lint-pylint
3835
run: |
3936
pip install pylint==v2.17.2
4037
PYLINT_DISABLE_LIST="C0114,C0415,W0212,W0235,W0238,W0621,C0103,R1735,C2801,E0402,C0412,W0719,R1728,W1514,W0718,W0105,W0707,C0209,W0703,W1203"
41-
pylint --rcfile .pylintrc --disable=$PYLINT_DISABLE_LIST --ignore=./internlm/model/ops/ring_flash_attn/zigzag_ring_flash_attn_with_sliding_window.py ./internlm/*
42-
pylint --rcfile .pylintrc --disable=$PYLINT_DISABLE_LIST ./train.py
38+
pylint --rcfile .pylintrc --disable=$PYLINT_DISABLE_LIST --ignore=./internlm/model/model_ops/ops/ring_flash_attn/zigzag_ring_flash_attn_with_sliding_window.py ./internlm/*

0 commit comments

Comments
 (0)
Please sign in to comment.