Skip to content

Custom sampler / Logits processor / Token filterer? #3665

Closed Answered by noamgat
noamgat asked this question in Q&A
Discussion options

You must be logged in to vote

Update - Llama.cpp's python bindings ( https://github.com/abetlen/llama-cpp-python ) have a LogitsProcessor interface that fit my usecase since I was using its python bindings.

This allowed me to create a very straightforward integration between my library and llama-cpp-python:

https://github.com/noamgat/lm-format-enforcer/blob/main/samples/colab_llamacpppython_integration.ipynb

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@noamgat
Comment options

Comment options

You must be logged in to vote
1 reply
@noamgat
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by noamgat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants