fix: added a clean exit in ModelLoader::load_tensors if OOM (#1097)

This commit is contained in:
akleine
2025-12-16 15:45:10 +01:00
committed by GitHub
parent e687913bf1
commit a23262dfde
2 changed files with 6 additions and 1 deletions

View File

@@ -862,7 +862,7 @@ static bool is_absolute_path(const std::string& p) {
struct SDGenerationParams {
std::string prompt;
std::string prompt_with_lora; // for metadata record only
std::string prompt_with_lora; // for metadata record only
std::string negative_prompt;
int clip_skip = -1; // <= 0 represents unspecified
int width = 512;