forked from vllm-project/vllm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
404 changed files
with
30,525 additions
and
12,333 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import os | ||
import zipfile | ||
|
||
MAX_SIZE_MB = 100 | ||
MAX_SIZE_MB = 150 | ||
|
||
|
||
def print_top_10_largest_files(zip_file): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
BasedOnStyle: Google | ||
UseTab: Never | ||
IndentWidth: 2 | ||
ColumnLimit: 80 | ||
|
||
# Force pointers to the type for C++. | ||
DerivePointerAlignment: false | ||
PointerAlignment: Left | ||
|
||
# Reordering #include statements can (and currently will) introduce errors | ||
SortIncludes: false | ||
|
||
# Style choices | ||
AlignConsecutiveAssignments: false | ||
AlignConsecutiveDeclarations: false | ||
IndentPPDirectives: BeforeHash | ||
|
||
IncludeCategories: | ||
- Regex: '^<' | ||
Priority: 4 | ||
- Regex: '^"(llvm|llvm-c|clang|clang-c|mlir|mlir-c)/' | ||
Priority: 3 | ||
- Regex: '^"(qoda|\.\.)/' | ||
Priority: 2 | ||
- Regex: '.*' | ||
Priority: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: clang-format | ||
|
||
on: | ||
# Trigger the workflow on push or pull request, | ||
# but only for the main branch | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
clang-format: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.11"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install clang-format==18.1.5 | ||
- name: Running clang-format | ||
run: | | ||
EXCLUDES=( | ||
'csrc/moe/topk_softmax_kernels.cu' | ||
'csrc/punica/bgmv/bgmv_bf16_bf16_bf16.cu' | ||
'csrc/punica/bgmv/bgmv_config.h' | ||
'csrc/punica/bgmv/bgmv_impl.cuh' | ||
'csrc/punica/bgmv/vec_dtypes.cuh' | ||
'csrc/punica/punica_ops.cu' | ||
'csrc/punica/type_convert.h' | ||
) | ||
find csrc/ \( -name '*.h' -o -name '*.cpp' -o -name '*.cu' -o -name '*.cuh' \) -print \ | ||
| grep -vFf <(printf "%s\n" "${EXCLUDES[@]}") \ | ||
| xargs clang-format --dry-run --Werror |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,6 +58,9 @@ jobs: | |
|
||
- name: Setup ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
create-symlink: true | ||
key: ${{ github.job }}-${{ matrix.python-version }}-${{ matrix.cuda-version }} | ||
|
||
- name: Set up Linux Env | ||
if: ${{ runner.os == 'Linux' }} | ||
|
Oops, something went wrong.