-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
20 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,7 @@ | |
- Make sure the Python version `>=3.10` (a strict version contraint for better type hinting) | ||
|
||
```bash | ||
$ conda install git # upgrade git | ||
$ git clone [email protected]:pjlab-sys4nlp/train-moe.git | ||
$ cd train-moe | ||
$ pip install -e .[dev] | ||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import pytest | ||
|
||
from smoe.utils.logging import get_logger | ||
|
||
|
||
def err_func(): | ||
return 1 / 0 | ||
|
||
|
||
def test_log(): | ||
logger = get_logger("test") | ||
|
||
|
||
def test_err_func(): | ||
with pytest.raises(ZeroDivisionError): | ||
res = err_func() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,4 +16,5 @@ exclude = | |
# This contains builds of flake8 that we don't want to check | ||
dist, | ||
bak, | ||
data | ||
data, | ||
outputs |