Class DeepJChat
java.lang.Object
io.github.kirstenali.deepj.nn.transformer.DeepJChat
-
Method Summary
Modifier and TypeMethodDescriptiongenerate(String prompt, int maxTokens, float temperature, int topK, long seed, float repetitionPenalty) static DeepJChatstream(String prompt, int maxTokens, float temperature, int topK, long seed, float repetitionPenalty, Consumer<String> listener) stream(String prompt, int maxTokens, float temperature, int topK, long seed, Consumer<String> listener) Returns a view sharing this model and tokenizer, with independent request-scoped caches.
-
Method Details
-
withContextWindow
Returns a view sharing this model and tokenizer, with independent request-scoped caches. -
load
- Throws:
IOException
-
generate
-
generate
-
generate
-
stream
-
stream
-
stream
-