Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
eoctet committed Sep 28, 2023
1 parent ec5fb43 commit dde69f1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.Zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ public class ConsoleQA {
}
String question = PromptBuilder.toPrompt(system, input);
model.generate(generateParams, question).forEach(e -> System.out.print(e.getText()));
model.printTimings();
System.out.print("\n");
model.metrics();
}
} catch (Exception e) {
System.err.println("Error: " + e);
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Another simple Java bindings for 🦙 [**llama.cpp**](https://github.com/ggergan
<dependency>
<groupId>chat.octet</groupId>
<artifactId>llama-java-core</artifactId>
<version>1.1.1</version>
<version>1.1.2</version>
</dependency>
```

Expand Down Expand Up @@ -53,7 +53,8 @@ public class ConsoleQA {
}
String question = PromptBuilder.toPrompt(system, input);
model.generate(generateParams, question).forEach(e -> System.out.print(e.getText()));
model.printTimings();
System.out.print("\n");
model.metrics();
}
} catch (Exception e) {
System.err.println("Error: " + e);
Expand Down
1 change: 1 addition & 0 deletions src/test/java/chat/octet/test/ConsoleQA.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public static void main(String[] args) {
}
String question = PromptBuilder.toPrompt(system, input);
model.generate(generateParams, question).forEach(e -> System.out.print(e.getText()));
System.out.print("\n");
model.metrics();
}
} catch (Exception e) {
Expand Down

0 comments on commit dde69f1

Please sign in to comment.