You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importlmqlquery_string=""""Q: What is the sentiment of the following review: ```The food was very good.```?n""A: [SENTIMENT]" where (SENTIMENT in ['positive', 'negative', 'neutral'])"""print(lmql.run_sync(
query_string,
model=lmql.model("local:llama.cpp:/home/lmql/llama.cpp/models/zephyr-7b-beta.Q4_K_M.gguf",
tokenizer='/home/zephyr-7b-beta', cuda=True)).variables['SENTIMENT'])
however there comes error,
Exception ignored in: <function lmtp_model.__del__ at 0x7fd63813c680>
Traceback (most recent call last):
File "/home/miniconda3/envs/lmql/lib/python3.11/site-packages/lmql/models/lmtp/lmtp_dcmodel.py", line 532, in __del__
AttributeError: 'NoneType' object has no attribute 'get_event_loop'
I got the same error message when I tried running the following query via lmql run:
argmax
"Say 'this is a test':[RESPONSE] \n"
from
lmql.model("local:meta-llama/Meta-Llama-3-8B-Instruct", cuda=True)
where
len(RESPONSE) < 50
And the error message:
Say 'this is a test': The art of the emergency broadcast system
The sE
valid=True, final=var
Exception ignored in: <function lmtp_model.__del__ at 0x7f8db3d4d9e0>
Traceback (most recent call last):
File "/home/ag2435/.conda/envs/qasper-gpu/lib/python3.12/site-packages/lmql/models/lmtp/lmtp_dcmodel.py", line 532, in __del__
AttributeError: 'NoneType' object has no attribute 'get_event_loop'
I'm trying a simple test in https://towardsdatascience.com/lmql-sql-for-language-models-d7486d88c541, and code like this
however there comes error,
my environment is ubuntu20.04, python 3.11.8
I found it seems like #6, looking forward to your reply.
The text was updated successfully, but these errors were encountered: