Skip to content

Commit 7706367

Browse files
committed
init mindnlp 0.5.0 with mindtorch
1 parent 22221f4 commit 7706367

File tree

1,220 files changed

+264
-642714
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,220 files changed

+264
-642714
lines changed

.gitignore

-2
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,6 @@ ge*.json
138138
download.txt
139139
*.whl
140140
*.tar.gz
141-
*hf*.py
142-
*torch*.py
143141
cmp/
144142
*.zip
145143

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ bash scripts/build_and_reinstall.sh
9191
| 0.1.1 | >=1.8.1, <=2.0.0 | >=3.7.5, <=3.9 |
9292
| 0.2.x | >=2.1.0 | >=3.8, <=3.9 |
9393
| 0.3.x | >=2.1.0, <=2.3.1 | >=3.8, <=3.9 |
94-
| 0.4.x | >=2.2.x | >=3.9, <=3.11 |
94+
| 0.4.x | >=2.2.x, <=2.5.0 | >=3.9, <=3.11 |
95+
| 0.5.x | >=2.5.0 | >=3.10, <=3.11 |
9596

9697
## Introduction
9798

mindnlp/__init__.py

+5-8
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,8 @@
4646
if version.parse(mindspore.__version__) < version.parse('2.3.0'):
4747
mindspore.mint = None
4848

49-
from mindspore import jit as ms_jit
50-
from mindnlp import patch
51-
from mindnlp import transformers
52-
from mindnlp import dataset
53-
from mindnlp import evaluate
54-
from mindnlp import core
55-
56-
__all__ = ['ms_jit', 'transformers']
49+
from . import safetensors
50+
from . import transformers
51+
from . import evaluate
52+
53+
__all__ = ['transformers', 'evaluate', 'core']

mindnlp/core/__init__.py

-19
This file was deleted.

mindnlp/core/autograd/__init__.py

-3
This file was deleted.

mindnlp/core/autograd/function.py

-64
This file was deleted.

mindnlp/core/autograd/grad_mode.py

-49
This file was deleted.

mindnlp/core/distributions/__init__.py

-12
This file was deleted.

mindnlp/core/distributions/bernoulli.py

-134
This file was deleted.

0 commit comments

Comments
 (0)