|
|
@@ -121,7 +121,7 @@ namespace LLama.Native |
|
|
throw new InvalidOperationException($"Model file '{modelPath}' is not readable"); |
|
|
throw new InvalidOperationException($"Model file '{modelPath}' is not readable"); |
|
|
|
|
|
|
|
|
return llama_load_model_from_file(modelPath, lparams) |
|
|
return llama_load_model_from_file(modelPath, lparams) |
|
|
?? throw new LoadWeightsFailedException($"Failed to load model {modelPath}."); |
|
|
|
|
|
|
|
|
?? throw new LoadWeightsFailedException(modelPath); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
#region native API |
|
|
#region native API |
|
|
|