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
2 changes: 1 addition & 1 deletion LLama/Native/SafeLlamaModelHandle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public static SafeLlamaModelHandle LoadFromFile(string modelPath, LLamaModelPara
throw new InvalidOperationException($"Model file '{modelPath}' is not readable");

return llama_load_model_from_file(modelPath, lparams)
?? throw new LoadWeightsFailedException($"Failed to load model {modelPath}.");
?? throw new LoadWeightsFailedException(modelPath);
}

#region native API
Expand Down
2 changes: 1 addition & 1 deletion LLama/Native/SafeLlavaModelHandle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public static SafeLlavaModelHandle LoadFromFile(string modelPath, int verbosity
throw new InvalidOperationException($"Llava MMP Model file '{modelPath}' is not readable");

return clip_model_load(modelPath, verbosity)
?? throw new RuntimeError($"Failed to load LLaVa model {modelPath}.");
?? throw new LoadWeightsFailedException(modelPath);
}

/// <summary>
Expand Down