Skip to content

Commit 4779164

Browse files
authored
rename mindnlp to mindhf (#2305)
1 parent a2d786a commit 4779164

File tree

824 files changed

+548
-1866
lines changed

Some content is hidden

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

824 files changed

+548
-1866
lines changed

.github/workflows/ci_pipeline.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ on:
77
pull_request:
88
branches: [ "master" ]
99
paths:
10-
- 'mindnlp/**'
10+
- 'src/**'
1111
- 'tests/**'
12-
- '!mindnlp/dataset/**'
12+
- '!src/mindnlp/dataset/**'
1313
- '!tests/dataset/**'
1414
- '!docs/**'
1515
- '.github/workflows/**'
1616
push:
1717
branches: [ "master" ]
1818
paths:
19-
- 'mindnlp/**'
20-
- '!mindnlp/dataset/**'
19+
- 'src/**'
20+
- '!src/mindnlp/dataset/**'
2121
- '!docs/**'
2222

2323
permissions:
@@ -45,10 +45,10 @@ jobs:
4545
# run: |
4646
# python .github/install_mindspore.py
4747
# pip install -r download.txt
48-
- name: Analysing the mindnlp code with pylint
48+
- name: Analysing the mindhf code with pylint
4949
run: |
5050
NUM_CORES=$(nproc)
51-
pylint --jobs=$NUM_CORES mindnlp --rcfile=.github/pylint.conf
51+
pylint --jobs=$NUM_CORES src/mindhf src/mindnlp --rcfile=.github/pylint.conf
5252
5353
# ut-test:
5454
# needs: pylint-check

.github/workflows/make_wheel_releases.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Upload file
3030
uses: actions/upload-artifact@v4
3131
with:
32-
name: mindnlp-whl
32+
name: mindhf-whl
3333
path: dist/*
3434

3535
- name: Release and Upload Assets

.gitignore

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ download.txt
141141
cmp/
142142
*.zip
143143

144-
# mindnlp cache
144+
# mindhf/mindnlp cache
145+
.mindhf/
145146
.mindnlp/
146147

147148
# txt files
@@ -153,9 +154,9 @@ RuntimeProfiler*
153154

154155
checkpoint-*/
155156
data*/
156-
!mindnlp/data/
157-
!mindtorch/utils/data/
158-
!mindnlp/dataset/
157+
!src/mindnlp/data/
158+
!src/mindtorch/utils/data/
159+
!src/mindnlp/dataset/
159160
!docs/api/data/
160161
!data2vec/
161162
*config.json

examples/diffusers/janus/demo/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from mindnlp import core
1+
from mindhf import core
22
import gradio as gr
33
from transformers import AutoConfig, AutoModelForCausalLM
44
from janus.models import VLChatProcessor

examples/diffusers/janus/demo/app_janusflow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from mindnlp import core
1+
from mindhf import core
22
import gradio as gr
33
from janus.janusflow.models import MultiModalityCausalLM, VLChatProcessor
44
from PIL import Image

examples/diffusers/janus/demo/app_januspro.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from mindnlp import core
1+
from mindhf import core
22
import gradio as gr
33
from transformers import AutoConfig, AutoModelForCausalLM
44
from janus.models import VLChatProcessor

examples/diffusers/janus/demo/fastapi_app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from fastapi import FastAPI, File, Form, UploadFile, HTTPException
22
from fastapi.responses import JSONResponse, StreamingResponse
33
import mindspore
4-
import mindnlp
5-
from mindnlp import core
4+
import mindhf
5+
from mindhf import core
66
from transformers import AutoConfig, AutoModelForCausalLM
77
from janus.models import MultiModalityCausalLM, VLChatProcessor
88
from PIL import Image

examples/diffusers/janus/generation_inference.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
1717
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
1818
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19-
import mindnlp
19+
import mindhf
2020
import torch
2121
from transformers import AutoModelForCausalLM, AutoConfig
2222

examples/diffusers/janus/inference.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
1818
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1919

20-
import mindnlp
20+
import mindhf
2121
import torch
2222
from transformers import AutoModelForCausalLM, AutoConfig
2323

examples/diffusers/janus/interactivechat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os
22
import PIL.Image
3-
import mindnlp
3+
import mindhf
44
import torch
55
import numpy as np
66
from transformers import AutoModelForCausalLM, AutoConfig

0 commit comments

Comments
 (0)