-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
53 lines (49 loc) · 1.53 KB
/
Copy pathaction.yml
File metadata and controls
53 lines (49 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: 'HF-MS Sync'
description: 'Bidirectional sync of AI models and datasets between HuggingFace and ModelScope.'
author: 'kubeservice-stack'
branding:
icon: 'refresh-cw'
color: 'yellow'
inputs:
config:
description: 'Path to sync config YAML file'
required: false
default: 'config/sync_config.yaml'
direction:
description: 'Override sync direction: hf_to_ms | ms_to_hf | bidirectional | config (use config file setting)'
required: false
default: 'config'
dry_run:
description: 'Dry run mode - detect changes without transferring files (true/false)'
required: false
default: 'false'
target:
description: 'Sync only a specific model or dataset by name (leave empty to sync all configured items)'
required: false
default: ''
log_level:
description: 'Logging level: DEBUG | INFO | WARNING | ERROR'
required: false
default: 'INFO'
state_dir:
description: 'Directory for sync state persistence (used across runs)'
required: false
default: '.sync_state'
hf_token:
description: 'HuggingFace API token (can also be set via env HF_TOKEN)'
required: false
default: ''
modelscope_token:
description: 'ModelScope API token (can also be set via env MODELSCOPE_TOKEN)'
required: false
default: ''
outputs:
sync_status:
description: 'Overall sync status: success | partial | failed'
files_synced:
description: 'Total number of files synced'
bytes_transferred:
description: 'Total bytes transferred'
runs:
using: 'docker'
image: 'Dockerfile'