Python GGML model creation library #9888
iamlemec
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
The link does not open - maybe the repo is private? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi folks! Just wanted to show off a new Python-based GGML model creation library I'm working on. It's called
gadget
and you can check it out here: iamlemec/gadget. If you've heard of Equinox from JAX land, it's kind of like a GGML version of that. You can define models that callggml_*
functions through Python bindings, as in the very simpleand then just call them like functions with
numpy
ortorch
inputs. It takes care of tensor creation and graph (re)compilation. The library comes with working versions of both Llama (+kvcache) and BERT, which you can load directly from existing GGUFs. It also has general text generation and chat interfaces that you can use them with.Though adding in Python as a dependency is a deal-breaker for some projects, a few advantages of
gadget
areAs to the last point, I just added in support for the entropix (aka Shrek) sampler, and it was only a few lines of code. Anyway, comments, suggestions, and PRs are very welcome! Thanks for your time.
Beta Was this translation helpful? Give feedback.
All reactions