Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/diffusion/progress.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,13 @@ describe('classifyExit', () => {
undefined
)
).toBe('OUT_OF_MEMORY')
// From build 1084 (leejet/stable-diffusion.cpp#2321) the execution engine prints the same refusal.
expect(
classifyExit(
'[WARN ] execution_engine.cpp:939 - execution engine cannot make enough memory available on MTL0: need 27600.43 MB device / 27600.43 MB budget, available 14907.70 MB device / 14907.70 MB budget',
undefined
)
).toBe('OUT_OF_MEMORY')
expect(classifyExit("unsupported op 'RMS_NORM'\nGGML_ABORT", -6)).toBe('ENGINE_CRASHED')
expect(classifyExit('', undefined)).toBe('ENGINE_CRASHED')
})
Expand Down
1 change: 1 addition & 0 deletions test/contract/sdcpp-engine-contract.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ describe('the sd.cpp engine contract: routes and strings', () => {
'src/runtime/tiling.cpp',
'src/pipeline/image.cpp',
'src/model_manager.cpp',
'src/core/execution_engine.cpp',
])
expect(watched).toContain(path)
})
Expand Down
5 changes: 3 additions & 2 deletions test/fixtures/sdcpp/engine-contract.json
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@
"source": "src/diffusion/progress.ts",
"upstream_text": "cannot make enough memory available",
"severity_if_lost": "warn",
"note": "classifyExit: OUT_OF_MEMORY instead of ENGINE_CRASHED, and the offload fallback."
"note": "classifyExit: OUT_OF_MEMORY instead of ENGINE_CRASHED, and the offload fallback. Up to build 1083 sd.cpp prints it from src/model_manager.cpp ('model manager cannot make enough memory available ...'); from 1084 (leejet/stable-diffusion.cpp#2321) from src/core/execution_engine.cpp ('execution engine cannot make enough memory available ...')."
},
{
"id": "oom.out-of-memory",
Expand Down Expand Up @@ -391,7 +391,8 @@
{ "path": "src/pipeline/image.cpp", "why": "`generating image:`" },
{ "path": "src/pipeline/video.cpp", "why": "video generation and its log lines" },
{ "path": "src/runtime/tiling.cpp", "why": "`processing N tiles`" },
{ "path": "src/model_manager.cpp", "why": "`cannot make enough memory available`" },
{ "path": "src/model_manager.cpp", "why": "`cannot make enough memory available` up to build 1083" },
{ "path": "src/core/execution_engine.cpp", "why": "`cannot make enough memory available`, the execution-engine OOM warning core matches, from build 1084 (#2321)" },
{ "path": "CMakeLists.txt", "why": "the version and commit --version prints, build options" }
],
"release_note_keywords": [
Expand Down
Loading