Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
fengzch-das
nunchaku
Commits
349cf142
Commit
349cf142
authored
Jul 17, 2025
by
Muyang Li
Browse files
chore: update the workflow of sync_hf_to_ms to support organization
parent
d7441614
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
17 deletions
+3
-17
.github/workflows/sync-hf-to-ms.yaml
.github/workflows/sync-hf-to-ms.yaml
+2
-16
scripts/sync_hf_to_ms.py
scripts/sync_hf_to_ms.py
+1
-1
No files found.
.github/workflows/sync-hf-to-ms.yaml
View file @
349cf142
...
@@ -6,7 +6,7 @@ on:
...
@@ -6,7 +6,7 @@ on:
jobs
:
jobs
:
sync
:
sync
:
runs-on
:
ubuntu-latest
runs-on
:
ubuntu-latest
if
:
github.repository == '
mit-han-lab
/nunchaku'
if
:
github.repository == '
nunchaku-tech
/nunchaku'
strategy
:
strategy
:
matrix
:
matrix
:
repo
:
repo
:
...
@@ -20,27 +20,13 @@ jobs:
...
@@ -20,27 +20,13 @@ jobs:
-
nunchaku-shuttle-jaguar
-
nunchaku-shuttle-jaguar
-
nunchaku-sana
-
nunchaku-sana
-
nunchaku-flux.1-kontext-dev
-
nunchaku-flux.1-kontext-dev
-
svdq-fp4-flux.1-schnell
-
svdq-int4-flux.1-schnell
-
svdq-fp4-flux.1-dev
-
svdq-int4-flux.1-dev
-
svdq-fp4-flux.1-fill-dev
-
svdq-int4-flux.1-fill-dev
-
svdq-fp4-flux.1-depth-dev
-
svdq-int4-flux.1-depth-dev
-
svdq-fp4-flux.1-canny-dev
-
svdq-int4-flux.1-canny-dev
-
svdq-fp4-shuttle-jaguar
-
svdq-int4-shuttle-jaguar
-
svdq-int4-sana-1600m
-
svdq-flux.1-schnell-pix2pix-turbo
steps
:
steps
:
-
name
:
Checkout repository
-
name
:
Checkout repository
uses
:
actions/checkout@v4
uses
:
actions/checkout@v4
-
name
:
Set up Python
-
name
:
Set up Python
uses
:
actions/setup-python@v5
uses
:
actions/setup-python@v5
with
:
with
:
python-version
:
'
3.1
1
'
python-version
:
'
3.1
2
'
-
name
:
Install dependencies
-
name
:
Install dependencies
run
:
|
run
:
|
python -m pip install --upgrade pip
python -m pip install --upgrade pip
...
...
scripts/sync_hf_to_ms.py
View file @
349cf142
...
@@ -45,7 +45,7 @@ def sync_model(repo_name: str, hf_repo: str, ms_repo: str):
...
@@ -45,7 +45,7 @@ def sync_model(repo_name: str, hf_repo: str, ms_repo: str):
repo_id
=
ms_repo
,
repo_id
=
ms_repo
,
folder_path
=
local_dir
,
folder_path
=
local_dir
,
commit_message
=
f
"Sync from Hugging Face
{
hf_repo
}
"
,
commit_message
=
f
"Sync from Hugging Face
{
hf_repo
}
"
,
ignore_patterns
=
[
"*
mit-han-lab
*"
],
ignore_patterns
=
[
"*
nunchaku-tech
*"
],
)
)
print
(
f
"✅ Sync complete:
{
hf_repo
}
->
{
ms_repo
}
"
)
print
(
f
"✅ Sync complete:
{
hf_repo
}
->
{
ms_repo
}
"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment