artidoro / qlora

QLoRA: Efficient Finetuning of Quantized LLMs
https://arxiv.org/abs/2305.14314
MIT License
9.74k stars 800 forks source link

Configure flake8, black, and pre-commit #246

Closed wangkuiyi closed 8 months ago

wangkuiyi commented 11 months ago
  1. Follow steps in https://sbarnea.com/lint/black/ to
    1. add setup.py to configue flake8
    2. add pyproject.toml to configure black
    3. add .pre-commit-config.yaml to configure pre-commit to call flake8 and black
  2. Run pre-commit run --files qlora.py to
    1. auto reformat the code
    2. manually fix warnings, including fix https://github.com/artidoro/qlora/issues/247