Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Llama Recipes
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
MachineLearning
meta-llama
Llama Recipes
Commits
0f16f6ee
Unverified
Commit
0f16f6ee
authored
11 months ago
by
Hamid Shojanazeri
Committed by
GitHub
11 months ago
Browse files
Options
Downloads
Plain Diff
Update contribution.md (#528)
parents
a695fd7f
cab7e765
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CONTRIBUTING.md
+4
-4
4 additions, 4 deletions
CONTRIBUTING.md
with
4 additions
and
4 deletions
CONTRIBUTING.md
+
4
−
4
View file @
0f16f6ee
...
...
@@ -43,17 +43,17 @@ For development and contributing to llama-recipes please install from source wit
pip install -U pip setuptools
pip install --extra-index-url https://download.pytorch.org/whl/test/cu118 -e .[tests,auditnlg,vllm]
```
The unit tests can be found in the
[
tests
](
./tests/
)
folder and you can run them from the main directory using:
The unit tests can be found in the
[
src/
tests
](
./
src/
tests/
)
folder and you can run them from the main directory using:
```
python -m pytest tests/
python -m pytest
src/
tests/
```
To run all tests of a single file you can give the filename directly:
```
python -m pytest tests/test_finetuning.py
python -m pytest
src/
tests/test_finetuning.py
```
To run a specific test you can filter for its name with
```
python -m pytest tests/test_finetuning.py -k test_finetuning_peft
python -m pytest
src/
tests/test_finetuning.py -k test_finetuning_peft
```
To add a new test simply create a new test file under the tests folder (filename has to start with
`test_`
).
Group tests spanning the same feature in the same file and create a subfolder if the tests are very extensive.
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment