DeepSpeed
Зеркало из https://github.com/microsoft/DeepSpeed
/
.pre-commit-config.yaml
89 строк · 3.4 Кб
1repos:2- repo: meta3hooks:4- id: check-hooks-apply5- id: check-useless-excludes6
7- repo: https://github.com/pre-commit/pre-commit-hooks8rev: v4.0.19hooks:10- id: check-case-conflict11- id: check-json12- id: check-symlinks13- id: check-yaml14- id: destroyed-symlinks15- id: end-of-file-fixer16exclude: docs/CNAME17- id: fix-byte-order-marker18- id: fix-encoding-pragma19args: [--remove]20- id: mixed-line-ending21args: [--fix=lf]22- id: requirements-txt-fixer23- id: trailing-whitespace24
25- repo: https://github.com/google/yapf26rev: v0.32.027hooks:28- id: yapf29
30- repo: https://gitlab.com/daverona/pre-commit/cpp31rev: 0.8.032hooks:33- id: clang-format # formatter of C/C++ code based on a style guide: LLVM, Google, Chromium, Mozilla, and WebKit available34args: []35
36- repo: local37hooks:38- id: check-torchdist39name: check-torchdist40entry: ./scripts/check-torchdist.py41language: python42exclude: ^(deepspeed/comm/|docs/|benchmarks/|scripts/check-torchdist.py|deepspeed/moe/sharded_moe.py|deepspeed/runtime/comm/coalesced_collectives.py|deepspeed/elasticity/elastic_agent.py|deepspeed/launcher/launch.py|tests/unit/comm/test_dist.py)43# Specific deepspeed/ files are excluded for now until we wrap ProcessGroup in deepspeed.comm44
45- repo: local46hooks:47- id: check-license48name: check-license49entry: ./scripts/check-license.py50language: python51files: \.(py|c|cpp|cu|cc|h|hpp|cuh|hip|tr)$52exclude: ^(deepspeed/inference/v2/kernels/ragged_ops/blocked_flash|deepspeed/inference/v2/kernels/cutlass_ops/grouped_gemm)53
54- repo: https://github.com/codespell-project/codespell55rev: v2.1.056hooks:57- id: codespell58args: [59# Do not check files that are automatically generated60'--skip=docs/Gemfile.lock,tests/unit/gpt2-merges.txt,tests/unit/gpt2-vocab.json',61'--ignore-regex=\\n', # Do not count the 'n' in an escaped newline as part of a word62'--ignore-words-list=youn,unsupport,noe,cann', # Word used in error messages that need rewording63--check-filenames,64--check-hidden65]66
67- repo: https://github.com/pycqa/flake868rev: 4.0.169hooks:70- id: flake871args: ['--config=.flake8']72
73- repo: local74hooks:75- id: check-torchcuda76name: check-torchcuda77entry: ./scripts/check-torchcuda.py78language: python79exclude: ^(.github/workflows/|scripts/check-torchcuda.py|docs/_tutorials/accelerator-abstraction-interface.md|docs/_tutorials/deepnvme.md|accelerator/cuda_accelerator.py|deepspeed/inference/engine.py|deepspeed/model_implementations/transformers/clip_encoder.py|deepspeed/model_implementations/diffusers/vae.py|deepspeed/model_implementations/diffusers/unet.py|op_builder/spatial_inference.py|op_builder/transformer_inference.py|op_builder/builder.py|setup.py|tests/unit/ops/sparse_attention/test_sparse_attention.py)80# Specific deepspeed/ files are excluded for now until we wrap ProcessGroup in deepspeed.comm81
82- repo: local83hooks:84- id: check-extraindexurl85name: check-extraindexurl86entry: ./scripts/check-extraindexurl.py87language: python88files: \.(yml|yaml|sh|py)$89exclude: ^(scripts/check-extraindexurl.py)90