You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*Pull requests, bug reports, and all other forms of contribution are welcomed and highly encouraged!* :octocat:
4
+
5
+
### :book: Pull Requests
6
+
7
+
#### Uninstall pyvene from python library
8
+
It becomes tricky if you have `pyvene` installed while debugging with this codebase, since imports can be easily messed up. Please run,
9
+
```bash
10
+
pip uninstall pyvene
11
+
```
12
+
13
+
#### Unit Test Run Is A Must before Creating PRs
14
+
When adding new methods or APIs, unit tests are now enforced. To run existing tests, you can kick off the python unittest command in the discovery mode as,
15
+
```bash
16
+
cd pyvene
17
+
python -m unittest discover -p '*TestCase.py'
18
+
```
19
+
When checking in new code, please also consider to add new tests in the same PR. Please include test results in the PR to make sure all the existing test cases are passing. Please see the `qa_runbook.ipynb` notebook about a set of conventions about how to add test cases. The code coverage for this repository is currently `low`, and we are adding more automated tests.
20
+
21
+
#### Format
22
+
```
23
+
**Descriptions**:
24
+
25
+
[Describe your PR Here]
26
+
27
+
28
+
**Testing Done**:
29
+
30
+
[Provide logs, screen-shots, files that contain tests you have done]
31
+
32
+
```
33
+
34
+
Go to issues, and open with a title formatted as,
35
+
```
36
+
[Priority Tag] Short Title
37
+
```
38
+
For Priority Tag, you can use P0-P2, P0 is the highest priority, which means everyone should stop working and focus on this PR.
39
+
40
+
### :beetle: Bug Reports and Other Issues
41
+
Go to issues, and open with a title formatted as,
42
+
```
43
+
[Bug Fix] Short Title
44
+
```
45
+
For external requests (i.e., you are not in our core dev team), please use,
where you need to pass in a trainable dataset, and your customized loss and metrics function. The trainable interventions can later be saved on to your disk. You can also use `intervenable.evaluate()` your interventions in terms of customized objectives.
143
154
144
155
145
-
## Unit-tests
146
-
When adding new methods or APIs, unit tests are now enforced. To run existing tests, you can kick off the python unittest command in the discovery mode as,
147
-
```bash
148
-
cd pyvene
149
-
python -m unittest discover -p '*TestCase.py'
150
-
```
151
-
When checking in new code, please also consider to add new tests in the same PR. Please include test results in the PR to make sure all the existing test cases are passing. Please see the `qa_runbook.ipynb` notebook about a set of conventions about how to add test cases. The code coverage for this repository is currently `low`, and we are adding more automated tests.
156
+
## Contributing to This Library
157
+
Please see [our guidelines](CONTRIBUTING.md) about how to contribute to this repository.
158
+
159
+
*Pull requests, bug reports, and all other forms of contribution are welcomed and highly encouraged!* :octocat:
152
160
153
161
154
162
## Related Works in Discovering Causal Mechanism of LLMs
0 commit comments