Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
update contricution.md (#121)
Browse files Browse the repository at this point in the history
* update contricution.md

Signed-off-by: Wenxin Zhang <wenxin.zhang@intel.com>

* fix spelling

Signed-off-by: Wenxin Zhang <wenxin.zhang@intel.com>

* add CI and owner

Signed-off-by: Wenxin Zhang <wenxin.zhang@intel.com>

* update owner and CI

Signed-off-by: Wenxin Zhang <wenxin.zhang@intel.com>

* Use the mailto and remove unused info

Signed-off-by: hshen14 <haihao.shen@intel.com>

---------

Signed-off-by: Wenxin Zhang <wenxin.zhang@intel.com>
Signed-off-by: hshen14 <haihao.shen@intel.com>
Co-authored-by: Haihao Shen <haihao.shen@intel.com>
  • Loading branch information
VincyZhang and hshen14 authored Aug 11, 2023
1 parent 4e4d7ec commit d6497ed
Show file tree
Hide file tree
Showing 5 changed files with 114 additions and 23 deletions.
1 change: 0 additions & 1 deletion .github/PULL_REQUEST_TEMPLATE/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ API changed or not
## Description

detail description
JIRA ticket: xxx

## Expected Behavior & Potential Risk

Expand Down
29 changes: 28 additions & 1 deletion .github/workflows/script/formatScan/nlp_dict.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2256,4 +2256,31 @@ ChatLLAMA
ChatMPT
LLM
MPT
mailto
mailto
CODEOWNERS
Cpplint
DCO
cloc
jira
servicedesk
Bas
GHA
clangformat
dco
gtest
inteltf
jenk
mr
sign off
formatScan
Neuralchat
PenghuiCheng
VincyZhang
XuehaoSun
airMeng
kevinintel
lkk
luoyu
lvliang
xin
zhenwei
29 changes: 29 additions & 0 deletions docs/CI_introduction.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# CI Introduction
Intel Extension for Transformers use Github Action (GHA) for CI test, if you are new to GHA, please refer to [GHA](https://docs.github.com/en/actions)


Generally We use [Azure Cloud](https://azure.microsoft.com/en-us/pricing/purchase-options/pay-as-you-go) to deploy CI on Es-v5, Bas-v2.


| Test Name | Test Scope | Test Pass Criteria |
|-------------------------------|-----------------------------------------------|---------------|
| Format Scan | Pylint/Cpplint/bandit/cloc/clangformat Pass | PASS |
| Spell Check | Spelling Check | PASS |
| Copyright Check | Copyright Check | PASS |
| [DCO](https://github.com/apps/dco/) | Use git commit -s to sign off | PASS |
| Unit Test | pytest + coverage + gtest | PASS(No failure, No core dump, No segmentation fault, No coverage drop) |
| Kernel Benchmark | Benchmark [Details](../intel_extension_for_transformers/backends/neural_engine/test/kernels/benchmark) | PASS(No performance regression) |
| Model Test | Pytorch + Tensorflow + Neural Engine + IPEX + CPP Graph | PASS(FP32/INT8 No performance regression) |

# FAQ
1. How to add examples

(1) Still need to pass detected CI tests

(2) Use [Extension Test](https://inteltf-jenk.sh.intel.com/view/nlp-toolkit-validation/job/nlp-toolkit-validation-top-mr-extension/) to cover new examples. If you do not have permission for extension test, please contact [Maintainers](inc.maintainers@intel.com)


2. How to test specific component version

(1) Use [Extension Test](https://inteltf-jenk.sh.intel.com/view/nlp-toolkit-validation/job/nlp-toolkit-validation-top-mr-extension/) to specify the version. If you do not have permission for extension test, please contact [Maintainers](inc.maintainers@intel.com)

14 changes: 14 additions & 0 deletions docs/component_owner.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Module Owner Matrix
Here is the matrix of first/second owners for each component in Intel Extension for Transformers.

Contributions to Intel Extension for Transformers specific component must get approval from the owners

| Component | Owner | Backup |
|--------------------|-----------------|-----------------|
| Kernel | airMeng | luoyu-intel |
| Engine | a32543254 | zhenwei-intel |
| Pytorch | PenghuiCheng | xin3he |
| Tensorflow | lvliang-intel | PenghuiCheng |
| Neuralchat | lvliang-intel | lkk12014402 |
| Workflow | lvliang-intel | kevinintel |
| Tests | VincyZhang | XuehaoSun |
64 changes: 43 additions & 21 deletions docs/contributions.md
Original file line number Diff line number Diff line change
@@ -1,45 +1,67 @@
Contribution Guidelines
=======================

1. [Pull Request Checklist](#pull-request-checklist)
2. [Pull Request Template](#distillation-support-matrix)
3. [Support](#support)
4. [Contributor Covenant Code of Conduct](#contributor-covenant-code-of-conduct)
1. [General](#General)

1.1 [Pull Request Checklist](#pull-request-checklist)

1.2 [Pull Request Template](#pull-request-template)

1.3 [Pull Request Acceptance Criteria](#pull-request-acceptance-criteria)

2. [CI Introduction](#ci-introduction)

3. [FAQ](#faq)

4. [Support](#support)

5. [Contributor Covenant Code of Conduct](#contributor-covenant-code-of-conduct)


## General

If you have improvements to Intel® Extension for Transformers, pull requests for
[review](https://github.com/intel/intel-extension-for-transformers/pulls). If you are new to Github, view the pull request [How To](https://help.github.com/articles/using-pull-requests/).

## Pull Request Checklist

### Pull Request Checklist


Before sending your pull requests, follow the information below:

- Changes are consistent with the Python [Coding Style](https://github.com/google/styleguide/blob/gh-pages/pyguide.md).
- Use pylint to check your Python code.
- Use flake8 and autopep8 to make Python code clean.
- Use pylint to check your Python code, more detail please go to [pylint script](../.github/workflows/script/formatScan/pylint.sh)

### Pull Request Template
See [PR template](../.github/PULL_REQUEST_TEMPLATE/pull_request_template.md)

### Pull Request Acceptance Criteria

(1) At least two approvals from reviewers (1 approval from the component [owner](./component_owner.md))

## Pull Request Template
(2) ALL detected CI checks pass

**Type of Change**
feature or bug fix or documentation or validation or others
API changed or not
(3) ALL conversations solved

**Description**
detail description
JIRA ticket: xxx
(4) Third-party dependency license Compatible

**Expected Behavior & Potential Risk**
the expected behavior that triggered by this PR

**How has this PR been tested?**
how to reproduce the test (including hardware information)
## CI Introduction
See [CI Introduction](./CI_introduction.md)

## FAQ


1. How to check third-party dependency license compliance

If you are using third-party component by: (1) import lib and uses its API (2) static/dynamic linked (3) copy code and modified (4) other uncertain usage, please contact [Maintainers](mailto:inc.maintainers@intel.com) to check license compliance before push code to repo.

**Dependency Change?**
any library dependency introduced or removed

## Support

Submit your questions, feature requests, and bug reports to the
[GitHub issues](https://github.com/intel/intel-extension-for-transformers/issues) page. You may also reach out to [Maintainers](inc.maintainers@intel.com).
[GitHub issues](https://github.com/intel/intel-extension-for-transformers/issues) page. You may also reach out to [Maintainers](mailto:inc.maintainers@intel.com).


## Contributor Covenant Code of Conduct

Expand Down

0 comments on commit d6497ed

Please sign in to comment.