Skip to content

Commit 083781f

Browse files
authored
Documentation (neuralmagic#6)
TODO ENGINEERING: Provided base files so technical content can be edited in new PRs; create new files as needed: README.md, CONTRIBUTING.md, DEVELOPING.md docs/available-models.md Created: LICENSE, NOTICE, CODE_OF_CONDUCT.md
1 parent 560d460 commit 083781f

8 files changed

+649
-24
lines changed

CODE_OF_CONDUCT.md

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Community Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, sex characteristics, gender identity and expression,
9+
level of experience, education, socio-economic status, nationality, personal
10+
appearance, race, religion, or sexual identity and orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team at [email protected]. All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72+
73+
[homepage]: https://www.contributor-covenant.org
74+
75+
For answers to common questions about this code of conduct, see
76+
https://www.contributor-covenant.org/faq

CONTRIBUTING.md

+70-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,70 @@
1-
# How to contribute?
2-
[TODO: contribution instructions]
1+
# Contributing to SparseZoo
2+
3+
If you’re reading this, hopefully we have piqued your interest to take the next step. Join us and help make SparseZoo even better! As a contributor, here are some community guidelines we would like you to follow:
4+
5+
- [Code of Conduct](#code-of-conduct)
6+
- [Ways to Contribute](#ways-to-contribute)
7+
- [Bugs and Feature Requests](#bugs-and-feature-requests)
8+
- [Question or Problem](#question-or-problem)
9+
- [Developing SparseZoo](DEVELOPING.md)
10+
11+
## Code of Conduct
12+
13+
Help us keep the software inclusive. Please read and follow our [Code of Conduct](CODE_OF_CONDUCT.md) in order to promote an environment that is friendly, fair, respectful, and safe. We want to inspire collaboration, innovation, and fun!
14+
15+
## Ways to Contribute
16+
17+
Whether you’re a newbie, dabbler, or expert, we appreciate you jumping in.
18+
19+
### Contributing Code
20+
21+
- Make pull requests for addressing bugs, open issues, and documentation
22+
- Neural Magic as the maintainer will do reviews and final merge
23+
24+
### Reporting In
25+
26+
- See something, say something: bugs, documentation
27+
- Propose new feature requests to Neural Magic
28+
29+
### Helping Others
30+
31+
- Answer open discussion topics
32+
- Spread the word about SparseZoo
33+
- Teach and empower others. This is the way!
34+
35+
## Bugs and Feature Requests
36+
37+
Please search through existing issues and requests first to avoid duplicates. Neural Magic will work with you further to take next steps.
38+
39+
- Go to: [GitHub Issues](https://github.com/neuralmagic/sparsezoo/issues)</br>
40+
41+
For bugs, include:
42+
43+
- brief summary
44+
- OS/Environment details
45+
- steps to reproduce (s.t.r.)
46+
- code snippets, screenshots/casts, log content, sample models
47+
- add the GitHub label "bug" to your post
48+
49+
For feature requests, including SparseZoo model additions, include:
50+
51+
- problem you’re trying to solve
52+
- community benefits
53+
- other relevant details to support your proposal
54+
- add the GitHub label "enhancement" to your post
55+
56+
For documentation edits, include:
57+
58+
- current state, proposed state
59+
- if applicable, screenshots/casts
60+
- add the GitHub label "documentation" to your post
61+
62+
## Question or Problem
63+
64+
- Go to: [GitHub Discussions](https://github.com/neuralmagic/sparsezoo/discussions/)
65+
66+
Post all other questions including support or how to contribute. Don’t forget to search through existing discussions to avoid duplication! Thanks!
67+
68+
## Developing SparseZoo
69+
70+
Made it this far? Review [Developing SparseZoo](DEVELOPING.md) to get started.

DEVELOPING.md

+138
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
# Developing SparseZoo
2+
3+
[TODO: ENGINEERING - ADJUST SECTION HEADERS AS RELEVANT TO SOFTWARE; REMOVE THESE TODO(S) AND EXAMPLES BELOW]
4+
5+
[ENGINEERING: State OS/Environment reminder; requirements upfront]
6+
7+
Here's some details to get started.
8+
9+
## Basic Commands
10+
11+
[TODO: ENGINEERING]
12+
13+
**EXAMPLE: install commands?**
14+
15+
```bash
16+
[ENGINEERING: INSERT HERE]
17+
```
18+
19+
This will do [ENGINEERING: list out concise summary of what these command will do and what the use can expect to happen once installed]..
20+
21+
**EXAMPLE: makefile commands?**
22+
23+
```bash
24+
[ENGINEERING: INSERT HERE]
25+
```
26+
27+
This will do [ENGINEERING: list out concise summary of what these command will do and what the use can expect to happen once installed].
28+
29+
**EXAMPLE: test changes locally?**
30+
31+
```bash
32+
[ENGINEERING: INSERT HERE]
33+
```
34+
35+
This will do [ENGINEERING: list out concise summary of what these command will do and what the use can expect to happen once installed]..
36+
37+
## Resources
38+
39+
[TODO: ENGINEERING - What does the developer need to know?]
40+
41+
- EXAMPLE: architecture docs?
42+
- EXAMPLE: how make a modifier? (separate doc)
43+
44+
## GitHub Workflow
45+
46+
1. Fork the `neuralmagic/sparsezoo` repository into your GitHub account: https://github.com/neuralmagic/sparsezoo/fork.
47+
48+
2. Clone your fork of the GitHub repository, replacing `<username>` with your GitHub username.
49+
50+
Use ssh (recommended):
51+
52+
```bash
53+
git clone [email protected]:<username>/sparsezoo.git
54+
```
55+
56+
Or https:
57+
58+
```bash
59+
git clone https://github.com/<username>/sparsezoo.git
60+
```
61+
62+
3. Add a remote to keep up with upstream changes.
63+
64+
```bash
65+
git remote add upstream https://github.com/neuralmagic/sparsezoo.git
66+
```
67+
68+
If you already have a copy, fetch upstream changes.
69+
70+
```bash
71+
git fetch upstream
72+
```
73+
74+
4. Create a feature branch to work in.
75+
76+
```bash
77+
git checkout -b feature-xxx remotes/upstream/master
78+
```
79+
80+
5. Work in your feature branch.
81+
82+
```bash
83+
git commit -a
84+
```
85+
86+
6. Periodically rebase your changes
87+
88+
```bash
89+
git pull --rebase
90+
```
91+
92+
7. When done, combine ("squash") related commits into a single one
93+
94+
```bash
95+
git rebase -i upstream/master
96+
```
97+
98+
This will open your editor and allow you to re-order commits and merge them:
99+
- Re-order the lines to change commit order (to the extent possible without creating conflicts)
100+
- Prefix commits using `s` (squash) or `f` (fixup) to merge extraneous commits.
101+
102+
8. Submit a pull-request
103+
104+
```bash
105+
git push origin feature-xxx
106+
```
107+
108+
Go to your fork main page
109+
110+
```bash
111+
https://github.com/<username>/sparsezoo
112+
```
113+
114+
If you recently pushed your changes GitHub will automatically pop up a `Compare & pull request` button for any branches you recently pushed to. If you click that button it will automatically offer you to submit your pull-request to the `neuralmagic/sparsezoo` repository.
115+
116+
- Give your pull-request a meaningful title.
117+
You'll know your title is properly formatted once the `Semantic Pull Request` GitHub check
118+
transitions from a status of "pending" to "passed".
119+
- In the description, explain your changes and the problem they are solving.
120+
121+
9. Addressing code review comments
122+
123+
Repeat steps 5. through 7. to address any code review comments and rebase your changes if necessary.
124+
125+
Push your updated changes to update the pull request
126+
127+
```bash
128+
git push origin [--force] feature-xxx
129+
```
130+
131+
`--force` may be necessary to overwrite your existing pull request in case your
132+
commit history was changed when performing the rebase.
133+
134+
Note: Be careful when using `--force` since you may lose data if you are not careful.
135+
136+
```bash
137+
git push origin --force feature-xxx
138+
```

0 commit comments

Comments
 (0)