contributing.md 4.15 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
---
id: contributing
---

# Contributing

## Contributor License Agreement

This project welcomes contributions and suggestions.  Most contributions require you to agree to a
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide
a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions
provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.

21
## How to Contribute
22

23
### Contribute New Feature
24

25
26
27
SuperBenchmark is an open-source project. Your participation and contribution are highly appreciated. There are several important things you need know before contributing new feature to this project:

#### What content can be added to SuperBenchmark
28
29
30
31

1. Bug fixes for existing features.
2. New features for benchmark module (micro-benchmark, model-benchmark, etc.)

32
   If you would like to contribute a new feature on SuperBenchmark, please submit your proposal first. In [GitHub Issues](https://github.com/microsoft/superbenchmark/issues) module, choose `Enhancement Request` to finish the submission. If the proposal is accepted, you can submit pull requests to origin `main` branch.
33

34
#### Contribution steps
35
36
37
38
39
40
41
42

If you would like to contribute to the project, please follow below steps of joint development on GitHub.

1. `Fork` the repo first to your personal GitHub account.
2. Checkout from main branch for feature development.
3. When you finish the feature, please fetch the latest code from origin repo, merge to your branch and resolve conflict.
4. Submit pull requests to origin main branch.
5. Please note that there might be comments or questions from reviewers. It will need your help to update the pull request.
43
44
45
46
47
48
49
50


### Contribute Benchmark Results

If you want to contribute benchmark results run by specified SuperBench version, please follow below guidelines.

#### Where to submit

51
All the results are stored under [superbench-results](https://github.com/microsoft/superbench-results) repository. The directory structure is as follows. Please create `<your-benchmark-folder>` to submit results.
52
53

```
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
superbench-results
  ├── v0.2
  │   └── your-benchmark-foldername
  │       ├── LICENSE.md
  │       ├── README.md
  │       ├── configs
  │       │   ├── config1.yaml
  │       │   └── config2.yaml
  │       ├── results
  │       │   ├── result1.json
  │       │   └── result2.json
  │       └── systems
  │           ├── system1.json
  │           └── system2.json
  └── v0.3
      └── your-benchmark-foldername
          ├── LICENSE.md
          ├── README.md
          ├── configs
          │   ├── config1.yaml
          │   └── config2.yaml
          ├── results
          │   ├── result1.json
          │   └── result2.json
          └── systems
              ├── system1.json
              └── system2.json
81
82
83
84
85
```

#### Files to provide

Besides `README` and `LICENSE` file, you should provide at least three benchmarking related files.
86
* `system.json`: This file lists all the system configurations in json format.
87
88
89
90
91

  You can get the system info automatically by executing `system_info.py` using below command. The file is under `superbench/tools` folder.
  ```
  python system_info.py
  ```
92
93
* `config.yaml`: This file is the config file to run benchmarks. Click [here](../getting-started/configuration.md) to learn the details.
* `result.json`: This file contains the results run by SuperBench with system configuations listed in `system.json` file.