spark-model-scheduler
Skill4 starsChanged 2 months agoMITView on GitHub
Plan and check unified-memory use on a single DGX Spark (GB10, one memory pool shared by CPU and GPU) before starting or switching inference services - LLM, vision model, ComfyUI image or video generation. Use before bringing the stack up, before a video generation stage, when a model load fails or the machine starts swapping, or when the user asks whether a model "fits" next to the others.
In this repository10 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ad-brief-intakeSkill
- ad-compliance-reviewSkill
- ad-reference-breakdownSkill
- ad-script-writingSkill
- cineloom-ad-filmSkill
- final-cut-assemblySkill
- shot-quality-gateSkill
- spark-local-media-generationSkill
- storyboard-designSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 33
Use the drop in available memory, not docker stats, to size a GPU service.
- Distinctive: line 34
Check the plan against the budget:
- Distinctive: line 51
Do not run a second GPU workload (an eval, another film) next to a film job.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Spark model scheduler
DGX Spark has one ~121 GB pool for the OS, every LLM's weights and KV cache, and every diffusion model. A service that loads fine alone can kill another one later. Decide the budget first, then start things.
Workflow
Measure before acting:
cineloom mem statusIt reports total and available unified memory, per-container memory, and ComfyUI's loaded-model state.
nvidia-smishows no total on GB10; trust/proc/meminfo. Per-container numbers cover host allocations only: CUDA memory is not charged to the container's cgroup, so a vLLM or SGLang container holding 100 GB can show under 5 GB. Use the drop in available memory, notdocker stats, to size a GPU service.Check the plan against the budget:
cineloom mem plan --need nemotron=30 --need stepvl=20 --need comfyui=45Exit code 1 means the plan does not fit with the reserve (default 10 GB). Reduce
--gpu-memory-utilization/--max-model-lenon the vLLM services, or stage the work.- Keep one diffusion family resident at a time. With the image, edit and video models all left in ComfyUI next to the two LLMs, the GPU driver started failing allocations (
NV_ERR_NO_MEMORYin the kernel log) and a 25-minute job died on a request timeout. Release at every phase boundary: hero still -> frames -> clips -> music. - Stage work by phase when it does not fit at once. The CineLoom pipeline is naturally phased: text planning -> images -> video -> composition. Diffusion memory is only needed in the middle two phases, and the vision model only for breakdown and QA.
Release diffusion memory at each boundary:
cineloom mem free- Do not run a second GPU workload (an eval, another film) next to a film job; they share one pool and one GPU.
- Record
cineloom mem statusbefore and after each phase intoeval/- these numbers are the platform evidence for the submission. Report measured values only.
Reference budget (measure and replace)
| Service | Planned | Notes |
| Nemotron 3.5 Lightning 30B-A3B NVFP4 | 35 GB | measured on GB10 at 0.25 of the pool, 64K context |
| Step3-VL-10B FP8 | 24 GB | measured: 14.25 GiB weights; 0.20 of the pool gives a 47,616-token KV cache |
| ComfyUI, Qwen-Image fp8 | 32 GB | 20.4 GB model + 9.4 GB text encoder |
| ComfyUI, Qwen-Image-Edit-2509 | 32 GB | same size as Qwen-Image; a different family, so release one before loading the other |
| ComfyUI, Wan2.2 I2V A14B fp8 | 30 GB | two 14.3 GB experts loaded in turn + 6.7 GB text encoder + activations |
| ComfyUI, Wan2.2 TI2V-5B | 20 GB | 10 GB model + 6.7 GB text encoder + activations |
| ComfyUI, ACE-Step music | 9 GB | 7.7 GB checkpoint |
| OS, CineLoom, reserve | 15 GB |
vLLM's --gpu-memory-utilization is a fraction of the whole pool and is claimed at
startup, so start LLM services first and let ComfyUI allocate on demand.
Step-3.7-Flash (198B) needs ~116 GB even at IQ4_XS: it cannot share the machine with diffusion. Use it through the StepFun API, or run it alone in a dedicated planning phase.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

