model-sync
/model-sync
Synchronizuje pliki modeli ML między serwerami przez rsync, z kontrolą przepustowości i weryfikacją sum kontrolnych.
- Autor
- jiunbae ↗
- Repozytorium
- agent-skills ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 01.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 3
- Skrypty
- 2
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 01.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
- 2 skrypty w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.
Skrypty: scripts/model-sync.sh, tests/test_model_sync.py
Co robi i kiedy
Synchronizuje pliki modeli ML między serwerami przez rsync, z kontrolą przepustowości i weryfikacją sum kontrolnych.
Wyzwalacze z opisu
Oryginalny opis (EN)
Synchronizes ML model files across servers. Supports rsync-based transfer with bandwidth control and checksum verification. Use for "모델 동기화", "모델 배포", "rsync 모델", "서버로 전송" requests.
Jak działa
- Configuration
- Safe Workflow
- Quick Reference
- Common Patterns
- Multi-Server Sync
- Verification
- Best Practices
Podgląd SKILL.md
---
name: model-sync
description: Synchronizes ML model files across servers. Supports rsync-based transfer with bandwidth control and checksum verification. Use for "모델 동기화", "모델 배포", "rsync 모델", "서버로 전송" requests.
---
# Model Sync
Sync ML model files between configured servers with the bundled helper. Preview
the exact transfer first, then request post-transfer SHA-256 verification.
## Configuration
Create `~/.model-sync.yaml` with simple scalar values:
```yaml
servers:
gpu1:
host: gpu1.internal
user: deploy
model_base: /srv/models
```
Server names, hosts, users, and remote paths are intentionally restricted to
shell-safe forms. Remote paths must be absolute, cannot be `/`, and cannot
contain whitespace or `.`/`..` segments. Transfers stay within the configured
`model_base`; `server:relative/path` is resolved beneath that base.
## Safe Workflow
```bash
# Preview first.
./scripts/model-sync.sh push ./models/llama-7b gpu1 --dry-run
# Transfer, then compare canonical relative-path + SHA-256 manifests.
./scripts/model-sync.sh push ./models/llama-7b gpu1 --verify
# Pull and apply the same verification contract.
./scripts/model-sync.sh pull gpu1:llama-7b ./models/llama-7b --verify
```
The helper exits nonzero when transfer or verification fails and reports
`Verified | yes` only after the manifests match. It accepts regular files and
directories with safe relative paths; symlinks and special files are rejected.
Local rsync operands are normalized to absolute paths. Pull destinations reject
every existing symlink component, are contained beneath their nearest trusted
existing physical ancestor, and are checked again immediately before transfer.
Push destinations receive a fixed remote structural preflight that rejects
symlink components and checks containment beneath the configured `model_base`.
These checks do not provide a caller-configured local destination policy root.
They also cannot eliminate a check/use race if local or remote directories are
mutated concurrently; stronger guarantees require descriptor-relative or
transactional transfer support.
`--delete` is disabled because the helper does not implement an approval-bound
deletion preview. Arbitrary remote `exec` is also disabled.
## Quick Reference
### Basic Sync
```bash
rsync -avz --progress \
./models/ user@server:/models/
```
### With Bandwidth Limit
```bash
rsync -avz --bwlimit=10000 \
./models/ user@server:/models/
```
### Checksum Verification
```bash
# -c enables rsync's checksum comparison.
rsync -avzc \
./models/ user@server:/models/
```
## Common Patterns
### Sync Specific Model
```bash
rsync -avz ./models/llama-7b/ server:/models/llama-7b/
```
### Exclude Checkpoints
```bash
rsync -avz --exclude='*.ckpt' --exclude='*.tmp' \
./models/ server:/models/
```
### Dry Run (Preview)
```bash
rsync -avzn ./models/ server:/models/
```
## Multi-Server Sync
```bash
# Sync to multiple servers
for server in gpu1 gpu2 gpu3; do
rsync -avz ./models/ "${server}:/models/" &
done
wait
```
## Verification
```bash
# Generate checksum
sha256sum models/model.bin > model.sha256
# Verify on remote
ssh server "cd /models && sha256sum -c model.sha256"
```
## Best Practices
- Use `--checksum` for critical models
- Limit bandwidth on production networks
- Always verify after sync
- Do not add `--delete` without a bounded deletion manifest and fresh approval
Pliki w paczce (3)
- SKILL.md 3 KB
- scripts/model-sync.sh 32 KB
- tests/test_model_sync.py 18 KB
Wersje
W bazie nie ma innych skilli o nazwie model-sync.
Migawka bazy z 13.11.2026 · wersja paczki 390d59387860 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100rsync
Kopiuje i synchronizuje pliki lokalnie lub przez SSH, wysyłając tylko zmienione fragmenty: kopiowanie na serwer, lustro katalogu, przyrostowe kopie zapasowe, wdrażanie builda i wznawianie transferu. - 90ostiary
Uruchamia polecenia i przesyła pliki na zdalnych serwerach przez narzędzie ostiary, zamiast bezpośrednio przez ssh, scp czy rsync. - 100linux-rsync-sync
Planuje, podgląda i weryfikuje kopie rsync, lustra, transfery poza siedzibę i kopie z twardymi dowiązaniami, z obsługą SSH, filtrów, usuwania, sum kontrolnych i wznawiania. - 100sc-sync
Synchronizuje rsync-iem pliki z gitignore między VPS a lokalnym komputerem przez Tailscale, zawsze najpierw na sucho, a kopiowanie dopiero z flagą --apply. - 100ssh
Obsługuje zdalny dostęp przez SSH: połączenia, tunele, klucze i transfer plików, w tym przekierowanie portów oraz scp i rsync. - 100bdb-deploy
Buduje projekt i wdraża go bezpośrednio na serwer przez rsync po SSH, gdy trzeba wypchnąć build na produkcję bez pełnego potoku CI.