]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
Refactoring `convert-pth-to-ggml.py`: more concise and readable (#109)
authorqunash <redacted>
Sun, 19 Mar 2023 17:17:39 +0000 (20:17 +0300)
committerGitHub <redacted>
Sun, 19 Mar 2023 17:17:39 +0000 (19:17 +0200)
commit467b149761cd63248b00d6ffb204d50a4cbb451a
tree9de44afb1747388c05650435d6fe844ff561eb7c
parent70f01cb8632f73b5cf70428608b89cd3c0775d23
Refactoring `convert-pth-to-ggml.py`: more concise and readable (#109)

* Refactor get_n_parts function to simplify code and improve readability

* Use f-strings instead of concatenation

* Refactoring: more concise and readable

* modularize

---------

Co-authored-by: Georgi Gerganov <redacted>
convert-pth-to-ggml.py