]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
llama.swiftui: fix end of generation bug (#8268)
authorHuifeng Ou <redacted>
Sat, 20 Jul 2024 13:09:37 +0000 (09:09 -0400)
committerGitHub <redacted>
Sat, 20 Jul 2024 13:09:37 +0000 (16:09 +0300)
commit69b9945b44c3057ec17cb556994cd36060455d44
treecf246e273b712ea78b176d9c62f23639aacfa98a
parentc3776cacabce2ee35f172fb72be7a519752125fa
llama.swiftui: fix end of generation bug (#8268)

* fix continuing generating blank lines after getting EOT token or EOS token from LLM

* change variable name to is_done (variable name suggested by ggerganov)

* minor : fix trailing whitespace

* minor : add space

---------

Co-authored-by: Georgi Gerganov <redacted>
examples/llama.swiftui/llama.cpp.swift/LibLlama.swift
examples/llama.swiftui/llama.swiftui/Models/LlamaState.swift