Skip to content

Commit 37e1097

Browse files
committed
Clean up commented-out code and unused print statements in Options for improved readability and maintainability.
1 parent c4a3967 commit 37e1097

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/main/java/org/beehive/gpullama3/Options.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public record Options(Path modelPath, String prompt, String systemPrompt, String
1010
public static final int DEFAULT_MAX_TOKENS = 1024;
1111

1212
public Options {
13-
// require(modelPath != null, "Missing argument: --model <path> is required");
13+
1414
require(interactive || prompt != null, "Missing argument: --prompt is required in --instruct mode e.g. --prompt \"Why is the sky blue?\"");
1515
require(0 <= temperature, "Invalid argument: --temperature must be non-negative");
1616
require(0 <= topp && topp <= 1, "Invalid argument: --top-p must be within [0, 1]");
@@ -107,16 +107,13 @@ public static Options parseOptions(String[] args) {
107107
case "--seed", "-s" -> seed = Long.parseLong(nextArg);
108108
case "--max-tokens", "-n" -> maxTokens = Integer.parseInt(nextArg);
109109
case "--stream" -> stream = Boolean.parseBoolean(nextArg);
110-
// case "--stream" -> stream = false;
111-
112110
case "--echo" -> echo = Boolean.parseBoolean(nextArg);
113111
default -> require(false, "Unknown option: %s", optionName);
114112
}
115113
}
116114
}
117115
}
118116

119-
System.out.println("Printt stream -> " + stream);
120117
require(modelPath != null, "Missing argument: --model <path> is required");
121118

122119

0 commit comments

Comments
 (0)