deploy: support split Strata SSD storage and document IQ3 relocation
This commit is contained in:
1 parent
66a9bcdbcb
commit
83b3660d4d
3 files changed
+76
-2
No files matched your search
+6
-2
@@ -151,6 +151,10 @@ def launch(config):
|
||||
path=Path(config['strata_storage'])
|
||||
if not path.is_absolute() or not path.is_dir() or ',' in str(path):raise RuntimeError('Ungültiger Strata-Datenpfad.')
|
||||
args+=['--mount',f'type=bind,src={path},dst={path}', '-e','DECK_STRATA_DATA_DIR='+str(path)]
|
||||
for extra in config.get('strata_storage_mounts',[]):
|
||||
path=Path(extra)
|
||||
if not path.is_absolute() or not path.is_dir() or ',' in str(path):raise RuntimeError('Ungültiger zusätzlicher Strata-Datenpfad.')
|
||||
args+=['--mount',f'type=bind,src={path},dst={path}']
|
||||
if config.get('memory_swap_limit'):args+=['--memory-swap',str(config['memory_swap_limit'])]
|
||||
for external in config.get('external_model_roots',[]):
|
||||
path=Path(external)
|
||||
@@ -176,7 +180,7 @@ def launch(config):
|
||||
if Path('/data/emergency-backups').is_dir():
|
||||
args+=['--mount','type=bind,src=/data/emergency-backups,dst=/host/backups,readonly']
|
||||
if config.get('reference_models'):
|
||||
for folder,filename in [('qwen3.8-27b-iq4-mix','Qwen3.8-27B-IQ4-MIX.gguf'),('qwen3.8-27b-iq4-xs-pure','qwen3.8-27b-IQ4_XS-pure.gguf'),('qwen3.8-27b-abliterated','Qwen3.8-27B-ABLITERATED-Q4_K_M.gguf')]:
|
||||
for folder,filename in [('qwen3.8-27b-iq4-mix','Qwen3.8-27B-IQ4-MIX.gguf'),('qwen3.8-27b-iq4-xs-pure','qwen3.8-27b-IQ4_XS-pure.gguf')]:
|
||||
source=base/'state/reference-models'/filename
|
||||
if not source.is_file() or not source.resolve().is_relative_to((base/'state/models').resolve()):
|
||||
raise RuntimeError('Deck-Referenzmodell fehlt; zuerst deploy/migrate_reference_models.py ausführen.')
|
||||
@@ -264,7 +268,7 @@ def update(base, rollback=False, force=False, api_ports=None, reuse_runtime=Fals
|
||||
backup_name=config['name']+'-previous'
|
||||
if inspect(backup_name):raise RuntimeError('Rückfall-Containername belegt. Keine Änderung ausgeführt.')
|
||||
stamp=str(time.time_ns())
|
||||
shutil.copytree(base/'state',base/'backups'/stamp,ignore=shutil.ignore_patterns('strata-runtime','strata-worker','strata-data','strata-install-src','soulx_singer-runtime','soulx_singer-data','seed_vc-runtime','seed_vc-data','seed_vc-prepare','reference-models','xvc-runtime','xvc-data','xvc-prepare','cache','omni-reference-check.py','omni-cache-clean.py','applio-runtime','applio-data','applio-checkout','applio-runtime.py','import_applio.py','applio-migration.log','acestep-runtime','acestep-jobs','acestep-setup-code','acestep-checkout','acestep-source-files','acestep-test-tmp','music-verification','music-test-temp','music-jobs','music-remix-runtime','separator-runtime','separator-tests','voxcpm-runtime','omnivoice-runtime','voice-worker-check','voice-integration-check','voice-setup-code','audio-cpp-runtime','ltx-original-runtime','original-work','tts-runtime','tts-tests','voice-tests','models','runtime','runtime-verification','image-tests','image-verification','image-verification-*','image-runtime','video-runtime','video-verification','video-verification-*','comfy-work','router-verification-*'))
|
||||
shutil.copytree(base/'state',base/'backups'/stamp,ignore=shutil.ignore_patterns('strata-runtime','strata-worker','strata-data','strata-ssd','strata-install-src','soulx_singer-runtime','soulx_singer-data','seed_vc-runtime','seed_vc-data','seed_vc-prepare','reference-models','xvc-runtime','xvc-data','xvc-prepare','cache','omni-reference-check.py','omni-cache-clean.py','applio-runtime','applio-data','applio-checkout','applio-runtime.py','import_applio.py','applio-migration.log','acestep-runtime','acestep-jobs','acestep-setup-code','acestep-checkout','acestep-source-files','acestep-test-tmp','music-verification','music-test-temp','music-jobs','music-remix-runtime','separator-runtime','separator-tests','voxcpm-runtime','omnivoice-runtime','voice-worker-check','voice-integration-check','voice-setup-code','audio-cpp-runtime','ltx-original-runtime','original-work','tts-runtime','tts-tests','voice-tests','models','runtime','runtime-verification','image-tests','image-verification','image-verification-*','image-runtime','video-runtime','video-verification','video-verification-*','comfy-work','router-verification-*'))
|
||||
was_running=previous['State']['Running']
|
||||
if was_running:run('docker','stop','--time','15',config['name'])
|
||||
run('docker','rename',config['name'],backup_name)
|
||||
|
||||
Reference in new issue
Block a user