Giter Club home page Giter Club logo

Comments (8)

lambdaofgod avatar lambdaofgod commented on May 9, 2024

Error details when running lml run with a file:

Exception ignored in: <function AsyncOpenAIAPI.__del__ at 0x7faf6116aa70>
Traceback (most recent call last):
  File "/home/kuba/Projects/forks/lmql/src/lmql/runtime/bopenai/batched_openai.py", line 553, in __del__
  File "/etc/conda/envs/lmql/lib/python3.10/asyncio/events.py", line 656, in get_event_loop
RuntimeError: There is no current event loop in thread 'MainThread'.

from lmql.

lbeurerkellner avatar lbeurerkellner commented on May 9, 2024

Thanks for reporting this. Does the query otherwise finish execution, or does it not execute at all?

from lmql.

lambdaofgod avatar lambdaofgod commented on May 9, 2024

Query finishes. In app the problem is that every next call does not work.

from lmql.

lbeurerkellner avatar lbeurerkellner commented on May 9, 2024

I think I have observed this before on Linux systems specifically. This is very likely a asyncio clean-up issue. I will investigate this.

When you say "next call", what exactly do you mean? Once the query finishes, lmql run should have terminated, right?

from lmql.

lambdaofgod avatar lambdaofgod commented on May 9, 2024

I mean in web app.

from lmql.

lbeurerkellner avatar lbeurerkellner commented on May 9, 2024

Okay, thank. I will investigate further and report back here. If you run locally, the playground will actually re-run a new lmql process on each query. So it seems odd that it would block the next call.

from lmql.

Paethon avatar Paethon commented on May 9, 2024

Seeing the exact same problem here as well (running on Arch Linux)

from lmql.

lbeurerkellner avatar lbeurerkellner commented on May 9, 2024

I just released a bug fix release lmql==0.0.4.2, where this issue should be fixed. It would be really cool, if anyone who has experienced this bug, could briefly report back, if this is fixed.

from lmql.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.