Code Monkey home page Code Monkey logo

Comments (12)

aarnphm avatar aarnphm commented on May 30, 2024

Ok I did not realize that someone publish openllm to conda https://anaconda.org/selfexplainml/openllm

please don't use conda and use virtualenv instead.
Screenshot 2023-12-14 at 15 55 36

from openllm.

heyili avatar heyili commented on May 30, 2024

Hey thanks for the tip but I use virtualenv instead and get the exact same error like before.

File "/Users/Desktop/test/ol/lib/python3.11/site-packages/openllm/_service.py", line 8, in <module> llm = openllm.LLM[t.Any, t.Any]( ^^^^^^^^^^^ AttributeError: module 'openllm' has no attribute 'LLM'

from openllm.

aarnphm avatar aarnphm commented on May 30, 2024

What version of openllm is this?

from openllm.

mahimairaja avatar mahimairaja commented on May 30, 2024

Probably you need to downgrade the version @heyili

from openllm.

heyili avatar heyili commented on May 30, 2024

I am using openllm 0.4.39. Which version would u suggest ?

from openllm.

heyili avatar heyili commented on May 30, 2024

I tried all the versions from 0.4.39 down to 0.4.30 for all versions I get:

llm = openllm.LLM[t.Any, t.Any](
^^^^^^^^^^^
AttributeError: module 'openllm' has no attribute 'LLM'

from openllm.

aarnphm avatar aarnphm commented on May 30, 2024

Can you do a pip uninstall -y openllm openllm-client openllm-core && pip install -U openllm

from openllm.

heyili avatar heyili commented on May 30, 2024

I run pip uninstall -y openllm openllm-client openllm-core && pip install -U openllm successfully

then try to run openllm start opt again

still get error

llm = openllm.LLM[t.Any, t.Any](
^^^^^^^^^^^
AttributeError: module 'openllm' has no attribute 'LLM'

from openllm.

aarnphm avatar aarnphm commented on May 30, 2024

What python version are you using?

from openllm.

heyili avatar heyili commented on May 30, 2024

I am using Python 3.11

openllm, 0.4.40 (compiled: False)
Python (CPython) 3.11.0

from openllm.

heyili avatar heyili commented on May 30, 2024

Hey I found the error, I have a file in the project called openllm.py. Now it is running

from openllm.

aarnphm avatar aarnphm commented on May 30, 2024

@heyili good to know about how python loads module https://docs.python.org/3/library/sys_path_init.html

from openllm.

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.