Skip to content

配置参考(自动生成)

本页由 scripts/generate_config_reference.pyapp/integrated_app/config_models.py(Pydantic 模型,含校验逻辑)自动生成,请勿手改; 重新生成:python scripts/generate_config_reference.py。实际生效值以仓库根目录 config.yaml 为准(其中 security 段与密钥类配置见 安全与合规)。

server

HTTP 服务器配置模型

类型默认值
server.hoststr'127.0.0.1'
server.portint7870
server.debugboolFalse
server.auto_open_browserboolTrue
server.allowed_originslist[str]['http://127.0.0.1:7870', 'http://localhost:7870']

model

模型加载与管理配置模型

类型默认值
model.default_sizestr'3b'
model.default_precisionstr'fp16'
model.pretrained_dirstr'model'
model.model_source_modeLiteral['shared', 'portable']'portable'
model.shared_models_rootstr''
model.auto_loadboolTrue
model.devicestr'auto'
model.idle_unload_minutesint15
model.models.<size>.namestr''
model.models.<size>.config_dirstr''
model.models.<size>.checkpoint_fp16str''
model.models.<size>.checkpoint_fp8str''
model.models.<size>.vae_checkpointstr''
model.models.<size>.pos_embstr''
model.models.<size>.neg_embstr''
model.models.<size>.min_vram_fp16_gbint16
model.models.<size>.min_vram_fp8_gbint8
model.models.<size>.baseline_vram_fp16_gbfloat0
model.models.<size>.baseline_vram_fp8_gbfloat0
model.models.<size>.num_blocksint36
model.models.<size>.sha256_fp16str''
model.models.<size>.sha256_fp8str''
model.models.<size>.sha256_vaestr''
model.models.<size>.sha256_pos_embstr''
model.models.<size>.sha256_neg_embstr''

restore

视频/图像修复算法默认参数配置模型

类型默认值
restore.default_resolution_hint1080
restore.default_resolution_wint1920
restore.default_scale_factorfloat2.0
restore.temporal_consistencyfloat0.8
restore.detail_enhancementstr'cinematic'
restore.seedint42
restore.sp_sizeint1

gpu

GPU 后端配置模型

类型默认值
gpu.backendstr'auto'
gpu.vram_tile_tierslist[GpuVramTileTier][{'min_available_gb': 20.0, 'tile_size': 1024, 'tile_overlap': 512}...

history

历史记录数据库配置模型

类型默认值
history.db_pathstr'data/history.db'
history.max_recordsint10000

i18n

国际化(i18n)配置模型

类型默认值
i18n.default_localestr'zh'
i18n.available_localeslist[str]['zh', 'zh-TW', 'en', 'ja', 'fr']

logging

日志系统配置模型

类型默认值
logging.levelstr'INFO'
logging.filestr'logs/app.log'
logging.max_size_mbint50
logging.backup_countint3

cache

文件缓存配置模型

类型默认值
cache.ttlint86400
cache.max_size_mbint500

inference

推理优化配置模型

类型默认值
inference.blocks_to_swapint0
inference.blockswap_prefetchboolFalse
inference.swap_io_componentsboolFalse
inference.offload_devicestr'cpu'
inference.attention_modestr'sdpa'
inference.inference_modestr'distilled'
inference.resolutionint2048
inference.max_resolutionint0
inference.batch_sizeint1
inference.uniform_batch_sizeboolTrue
inference.temporal_overlapint0
inference.prepend_framesint0
inference.temporal_segment_sizeint0
inference.temporal_segment_overlapint8
inference.input_noise_scalefloat0.0
inference.latent_noise_scalefloat0.0
inference.restoration_guidance_scalefloat1.0
inference.color_correctionstr'lab'
inference.seedint-1
inference.enable_debugboolFalse
inference.fp8_enabledboolFalse
inference.distilled_modeboolFalse
inference.cache_modelboolFalse
inference.force_reload_ditboolFalse
inference.torch_compiledict[str, Any]{}
inference.memory_thresholdfloat0.95
inference.memory_min_available_gbfloat2.0

retention

输出产物保留策略配置模型

类型默认值
retention.outputs_max_age_daysint14
retention.outputs_max_filesint0
retention.outputs_cleanup_interval_secondsint3600
retention.disk_min_free_gbfloat5.0

runtime

运行时配置根模型

类型默认值
runtime.sse.max_duration_secondsint300
runtime.sse.heartbeat_interval_secondsint30
runtime.sse.poll_interval_secondsfloat0.5
runtime.batch.max_retriesint2
runtime.batch.retry_base_delay_secondsfloat1.0
runtime.batch.retry_max_delay_secondsfloat30.0
runtime.retry.enabledboolTrue
runtime.retry.max_retriesint2
runtime.retry.base_delay_secondsfloat1.0
runtime.retry.max_delay_secondsfloat30.0
runtime.retry.oom_breaker.enabledboolTrue
runtime.retry.oom_breaker.thresholdint3
runtime.retry.oom_breaker.cooldown_secondsfloat600.0
runtime.task.id_lengthint16
runtime.task.max_timeout_secondsint3600
runtime.task.queue_maxsizeint100
runtime.task.auto_recoverboolFalse
runtime.task.checkpoint_dirstr'data/checkpoints'
runtime.task.checkpoint_everyint1
runtime.task.stale_threshold_minutesint30
runtime.task.progress_stall_timeout_minutesint30
runtime.upload.large_file_threshold_mbint10
runtime.upload.chunk_size_bytesint8192
runtime.security.allowed_base_dirslist[str]PydanticUndefined
runtime.security.rate_limit_per_minuteint30
runtime.security.integrity_enforceboolFalse
runtime.security.integrity_recheck_interval_secondsint1800
runtime.security.max_upload_image_mbint50
runtime.security.max_upload_video_mbint500
  • user_preferences = {}

Apache-2.0 License · Copyright 2024-2026 ReSerendipity · 独立第三方工具,与字节跳动及其 Seed 团队无隶属关系