Skip to content

Get Specific logits #8221

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

You must be logged in to vote

the following appears to work!

data = {
        "prompt": [await get_data(*value[:2]) for value in values],
        "temperature": -1,
        "n_predict": 1,
        "logit_bias": [[i,False] for i in range(256*256) if i not in [yes_token_id, no_token_id]],
        "n_probs": 2,
        "add_bos_token": True,
        "samplers": []
}

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

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