Skip to content

Commit f8338ca

Browse files
committed
updated according to comments
1 parent cdc736a commit f8338ca

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/main/java/com/example/core/model/GGUF.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,7 @@ public static GGUF loadModel(Path modelPath) throws IOException {
5151
gguf.loadModelImpl(fileChannel);
5252
return gguf;
5353
} catch (Exception e) {
54-
{
55-
throw new RuntimeException("Unexpected error while loading GGUF model from " + modelPath, e);
56-
}
57-
54+
throw new RuntimeException("Unexpected error while loading GGUF model from " + modelPath, e);
5855
}
5956
}
6057

src/main/java/com/example/loader/weights/ModelLoader.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ private static ModelType detectModelType(Map<String, Object> metadata) {
6767

6868
public static Model loadModel(Path ggufPath, int contextLength, boolean loadWeights) throws IOException {
6969
// initial load of metadata from gguf file
70-
// will throw an IOException if the file does not exist, RuntimeException if there is another problem with loading the model
7170
GGUF gguf = GGUF.loadModel(ggufPath);
7271
FileChannel fileChannel = FileChannel.open(ggufPath, StandardOpenOption.READ);
7372
// detect model type

0 commit comments

Comments
 (0)