-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add linting capability #52
Add linting capability #52
Conversation
764c195
to
fbb2dad
Compare
Signed-off-by: Martin Hickey <[email protected]>
fbb2dad
to
e898b1d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few questions Martin
- Could you add how to run the linter and formatter in the README? Especially if this is something that is expected to be run by all contributors else PRs will fail (in near term future when automation added)
- If we separate torch_requirements, this should also be updated in the README since it will require users to run
pip install -r torch_requirements.txt
andpip install -r requirements.txt
. Which wil affect any current automation that is installing this repo.
Review comments: - foundation-model-stack#52 (review) Signed-off-by: Martin Hickey <[email protected]>
@anhuong Thanks for the review and feedback.
I intend to do that in the contributors doc as part of the enablement of linting in CI/CD. Next PR essentially.
Added to the README now. |
@anhuong Updated and ready for review again. |
I tried uninstalling packages, wheel, and flash-attn and running tuning to make sure it can run without these deps. When trying to run PT, I get error:
This is a package that is usually installed with flash-attn I believe, so if flash-attn is not installed this may need to be added to core requirements. These are the other packages that rely on packaging:
Pip installing packaging resolves the above error and PT runs successfully. |
Can verify that with set of optional deps uninstalled and with packaging installed, Lora tuning also runs successfully. |
Review comments: - foundation-model-stack#52 (review) Signed-off-by: Martin Hickey <[email protected]>
3dac780
to
647da3e
Compare
As discussed @anhuong, I have moved |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks Martin!
We should enable fmt and lint checks for each PR #59 |
Review comments: - foundation-model-stack#52 (review) Signed-off-by: Martin Hickey <[email protected]>
Added the following linter:
Note to reviewers:
cuda_requirements.txt
as they are not required for linting and also are not required for non CUDA tuning.tox
and dependencies:pip install -r setup_requirements.txt
tox -e lint