본문으로 건너뛰기
cccskills
무료GitHub에 공개

dpm-solver

Use DPM-Solver and DPM-Solver++ single-file samplers for diffusion ODE sampling, PyTorch/JAX integration, ScoreSDE/DDPM examples, and Stable Diffusion acceleration.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(32)

  • SKILL.md6.8 KB
  • references/api-summary.md5.8 KB
  • references/repo-provenance.md3.2 KB
  • references/repo-routing-metadata.json335 B
  • references/solver-choice-guide.md5.2 KB
  • references/troubleshooting.md6.0 KB
  • scripts/check_dpm_solver_environment.py4.4 KB
  • scripts/dpm_solver_jax.py61.5 KB
  • scripts/dpm_solver_pytorch.py66.6 KB
  • sub-skills/core-api/references/api-reference.md5.2 KB
  • sub-skills/core-api/references/noise-schedules-and-wrappers.md3.7 KB
  • sub-skills/core-api/references/troubleshooting.md3.1 KB
  • sub-skills/core-api/scripts/minimal_jax_sample.py1.5 KB
  • sub-skills/core-api/scripts/minimal_torch_sample.py1.5 KB
  • sub-skills/core-api/SKILL.md4.6 KB
  • sub-skills/jax-examples/references/jax-api-differences.md3.1 KB
  • sub-skills/jax-examples/references/score-sde-jax-workflows.md3.3 KB
  • sub-skills/jax-examples/references/troubleshooting.md2.2 KB
  • sub-skills/jax-examples/scripts/build_jax_scoresde_command.py2.1 KB
  • sub-skills/jax-examples/SKILL.md3.6 KB
  • sub-skills/stable-diffusion/references/dpmsolver-sampler-adapter.md3.1 KB
  • sub-skills/stable-diffusion/references/stable-diffusion-workflows.md3.1 KB
  • sub-skills/stable-diffusion/references/troubleshooting.md3.0 KB
  • sub-skills/stable-diffusion/scripts/build_sd_dpm_command.py2.2 KB
  • sub-skills/stable-diffusion/scripts/stable_diffusion_dpmsolver_sampler.py5.3 KB
  • sub-skills/stable-diffusion/SKILL.md3.5 KB
  • sub-skills/torch-examples/references/ddpm-guided-workflows.md3.8 KB
  • sub-skills/torch-examples/references/score-sde-pytorch-workflows.md3.4 KB
  • sub-skills/torch-examples/references/troubleshooting.md3.2 KB
  • sub-skills/torch-examples/scripts/build_torch_example_command.py4.1 KB
  • sub-skills/torch-examples/scripts/validate_torch_options.py2.6 KB
  • sub-skills/torch-examples/SKILL.md3.8 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

DPM-Solver

Use this skill when a task asks how to integrate, configure, debug, or adapt the DPM-Solver / DPM-Solver++ samplers from Cheng Lu et al.'s dpm-solver project. The repository is a source-code distribution rather than a normal PyPI package: the durable user-facing artifacts are the single-file PyTorch and JAX solver modules plus example integrations for DDPM/guided-diffusion, ScoreSDE, and Stable Diffusion.

Start Here

  1. Identify whether the user wants direct solver API integration, a PyTorch example workflow, a JAX ScoreSDE workflow, or Stable Diffusion sampling acceleration.
  2. If they need code, prefer the bundled implementation copies in scripts/dpm_solver_pytorch.py and scripts/dpm_solver_jax.py instead of relying on an original checkout.
  3. Use references/solver-choice-guide.md before recommending algorithm_type, order, method, steps, skip_type, thresholding, or denoising settings.
  4. Run scripts/check_dpm_solver_environment.py when imports, PyTorch/JAX availability, CUDA visibility, or a tiny numerical smoke test are uncertain.
  5. Treat full image generation, pretrained checkpoints, FID evaluation, Stable Diffusion weights, dataset downloads, and multi-GPU training as opt-in: they are network-, credential-, GPU-, memory-, and time-sensitive.
  6. Read references/repo-provenance.md before refreshing this skill against a newer source snapshot.

Route By Task

User taskRead
Copy DPM-Solver into custom code, wrap a diffusion model, choose noise schedules, inspect API signatures, run tiny smoke testssub-skills/core-api/SKILL.md
Adapt DDPM, guided-diffusion, ScoreSDE PyTorch sampling commands, configs, checkpoints, or DPM-Solver flagssub-skills/torch-examples/SKILL.md
Use the JAX ScoreSDE integration, understand JAX-specific solver differences, pmap/device behavior, or JAX caveatssub-skills/jax-examples/SKILL.md
Add DPM-Solver to latent Stable Diffusion, plan txt2img --dpm_solver, use the sampler adapter, or troubleshoot model-weight/runtime constraintssub-skills/stable-diffusion/SKILL.md

Key Operating Facts

  • Direct use imports NoiseScheduleVP, model_wrapper, and DPM_Solver from the PyTorch or JAX module.
  • NoiseScheduleVP(schedule="discrete", betas=...) or NoiseScheduleVP(schedule="discrete", alphas_cumprod=...) converts a discrete diffusion schedule to continuous time labels in (0, 1].
  • NoiseScheduleVP(schedule="linear", continuous_beta_0=0.1, continuous_beta_1=20.) covers continuous VP SDEs used by ScoreSDE-style examples. The bundled JAX module also exposes schedule="cosine"; the root PyTorch file does not, while the Stable Diffusion nested copy does.
  • PyTorch DPM_Solver(..., algorithm_type="dpmsolver++") selects data prediction internally and is the common default for guided sampling. The JAX API uses predict_x0=True for the DPM-Solver++-style path.
  • method="multistep", order=2, skip_type="time_uniform", and roughly 20-25 steps are the Stable Diffusion / large-guidance default family.
  • method="singlestep" or method="multistep" with order 3 is the common exploration path for unconditional or lightly guided sampling.
  • correcting_x0_fn="dynamic_thresholding" is for pixel-space guided sampling; do not use dynamic thresholding for latent-space Stable Diffusion.

Installation And Import Baseline

There is no root package metadata. For custom code, copy one bundled solver file into the target project or keep it on PYTHONPATH and install only the backend needed by that file:

python -m pip install torch        # for dpm_solver_pytorch.py
python -m pip install jax jaxlib   # for dpm_solver_jax.py CPU use

Minimal PyTorch import and smoke check:

python scripts/check_dpm_solver_environment.py --backend torch --smoke

Minimal JAX import and smoke check:

python scripts/check_dpm_solver_environment.py --backend jax --smoke

Root References And Tools

Safety And Scope Boundaries

  • Do not start model downloads, dataset downloads, FID computation, Stable Diffusion generation, notebook execution, or multi-GPU sampling unless the user explicitly approves the cost and runtime.
  • Do not assume a CUDA, ROCm, MPS, TPU, or JAX accelerator backend is available; run a backend probe and use CPU only for tiny API smoke tests unless real generation is requested.
  • Do not route Hugging Face diffusers scheduler API tasks here when the user is using the diffusers package directly; prefer a Diffusers-specific skill for DPMSolverMultistepScheduler pipelines.
  • Do not tell future agents to run original repository examples. If a workflow is useful, use this skill's distilled references and bundled command builders.
  • Keep Stable Diffusion safety, license, checkpoint, and gated-weight requirements explicit when constructing commands.

Verification Expectations

Start with the smallest safe checks: import the backend, construct a linear noise schedule, run a zero-model sample on a tiny tensor, and validate planned command arguments without loading checkpoints. Full native example parity is blocked by external checkpoints/datasets and should be recorded as skipped or opt-in unless the user provides the assets and hardware.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Routes 3D ResNets PyTorch video action-recognition workflows across training, inference, and data preparation.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 9월 3일 업데이트

3ddfa

무료

Guide 3DDFA Python inference, geometry rendering, training/evaluation, and optional C++ ONNX workflows for 3D dense face alignment.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 9월 3일 업데이트

3ddfa-v2

무료

Routes 3DDFA_V2 face-alignment setup, still-image demos, video tracking, and ONNX benchmarking workflows.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 9월 3일 업데이트

ab3dmot

무료

Operate AB3DMOT 3D multi-object tracking workflows for KITTI and nuScenes data, tracking, evaluation, and visualization.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 9월 3일 업데이트

Use Hugging Face Accelerate for PyTorch training-loop migration, distributed launch/configuration, DeepSpeed/FSDP/TPU backend setup, big-model inference/offload, checkpointing, tracking, and troubleshooting.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 9월 3일 업데이트

acme

무료

Route Acme reinforcement-learning framework tasks across core loops, replay/data, JAX agents, and TensorFlow/Sonnet agents.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 9월 3일 업데이트

VectorSpaceLab의 스킬 모두 보기

이 스킬의 문제 신고