Skip to content

SmolPandaDev/openllm-issue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OpenLLM cant connect to local server issue

Getting Started

We use a virtual environment to do all our development in, this ensures that we don't import modules that accidentally conflict with other project work.

  1. python3 -m venv venv - this will create your virtual environment inside a venv folder
  2. source venv/bin/activate - this will activate your virtual env
  3. python3 -m pip install --upgrade pip
  4. python3 -m pip install -r requirements.txt

Start OpenLLM locally

E.g.

openllm serve phi3:3.8b-ggml-q4

Note: any model for your pc will do.

Run the program

python3 main.py

Observe the error:

Traceback (most recent call last):
  File "/Users/work/learning/openllm-issue/main.py", line 3, in <module>
    llm = OpenLLM(server_url='http://localhost:3000')
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/langchain_community/llms/openllm.py", line 149, in __init__
    openllm.client.HTTPClient
    ^^^^^^^^^^^^^^
AttributeError: module 'openllm' has no attribute 'client'

About

OpenLLM cant connect issue

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages