Skip to content

Commit

Permalink
Update test_stopping.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lbeurerkellner authored Mar 8, 2024
1 parent 5c9d802 commit 969af9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lmql/tests/test_stopping.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ async def test_conditional_stopping():
from
lmql.model("local:llama.cpp:/lmql/llama-2-7b-chat.Q2_K.gguf", tokenizer="AyyYOO/Luna-AI-Llama2-Uncensored-FP16-sharded")
where
len(TOKENS(OUTPUT)) > 25 and STOPS_AT(OUTPUT, "review")
len(TOKENS(OUTPUT)) > 80 and STOPS_AT(OUTPUT, "review")
'''

@lmql.query
Expand Down Expand Up @@ -155,4 +155,4 @@ async def test_stop_overlapping_before():
'''

if __name__ == "__main__":
run_all_tests(globals())
run_all_tests(globals())

0 comments on commit 969af9b

Please sign in to comment.