Local Runtime Config¶
Some environment settings should follow the current machine, not the shared environment commit.
ComfyGit keeps those settings local and injects them during sync or run. This lets two users share the same environment while using different hardware, different local package checkouts, or different temporary dependency overrides.
PyTorch Backend¶
The PyTorch backend controls which torch packages are installed for the current machine.
cg env-config torch-backend detect
cg env-config torch-backend set cu128
cg env-config torch-backend show
Useful backend values include:
auto- detect the best option.cpu- install CPU-only torch.cu128,cu126,cu124- NVIDIA CUDA builds.rocm6.3- AMD ROCm.xpu- Intel XPU.
One-time overrides are available on operations that sync:
A one-time override does not rewrite your saved local backend preference.
Optional Sync Extras¶
Some dependencies are optional. You can install an extra for one sync:
Or save default extras for this environment on this machine:
Dependency Overlays¶
Overlays are dependency configuration snippets that ComfyGit can apply during sync without making every local experiment part of the main manifest.
Create a local overlay:
Use an overlay for one operation:
Use local overlays for machine-specific package indexes, editable package paths, or temporary dependency changes. Use shared overlays only when the whole team should have the same optional dependency layer.
What Not To Do¶
Do not manually install packages into .venv and expect them to survive. cg
sync may recreate the virtualenv.
Instead:
- Use
cg py addfor portable project dependencies. - Use
cg env-config extrasfor local default extras. - Use overlays for local source/index/package overrides.
- Use
cg node addso custom node dependencies are tracked.