Commit 349cf142 authored by Muyang Li's avatar Muyang Li
Browse files

chore: update the workflow of sync_hf_to_ms to support organization

parent d7441614
...@@ -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.11' python-version: '3.12'
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
......
...@@ -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}")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment