Git Product home page Git Product logo

Comments (10)

keldenl avatar keldenl commented on July 16, 2024

did you properly set up your path to your model in your auth? how are you sending your request?

from gpt-llama.cpp.

atisharma avatar atisharma commented on July 16, 2024

Yes, I believe so. I am testing with curl.

curl --location --request POST 'http://localhost:8080/v1/chat/completions' --header 'Authorization: Bearer /sol/ll
m/LLaMA/7B/ggml-model-q4_0.bin' --header 'Content-Type: application/json' --data-raw '{
 "model": "gpt-3.5-turbo",
   "messages": [
      {
         "role": "system",
         "content": "You are ChatGPT, a helpful assistant developed by OpenAI."
      },
      {
         "role": "user",
         "content": "How are you doing today?"
      }
   ]
}'
curl: (52) Empty reply from server

and

$ ls /sol/llm/LLaMA/7B/ggml-model-q4_0.bin
/sol/llm/LLaMA/7B/ggml-model-q4_0.bin

from gpt-llama.cpp.

cryptocake avatar cryptocake commented on July 16, 2024

Regarding the port 443 being reserved for system processes, you could do the following:

sudo setcap cap_net_bind_service=+ep `readlink -f \`which node\``

and then
npm start

from gpt-llama.cpp.

keldenl avatar keldenl commented on July 16, 2024

@atisharma can you try the new ./test-installation.sh script to help validate if you're giving it the right path?

from gpt-llama.cpp.

th-neu avatar th-neu commented on July 16, 2024

#16
Should fix the whole Port issue. I have similar changes in a dev branch and it works fine

from gpt-llama.cpp.

atisharma avatar atisharma commented on July 16, 2024

Still curl: (52) Empty reply from server.
Your test script also hardcodes port 443 by the way.

from gpt-llama.cpp.

keldenl avatar keldenl commented on July 16, 2024

good point @atisharma , let me update the script to be more flexible. and @th-neu , i'll take a quick look at your PR.

for now, @atisharma , what do u get if you change the script to your port? does the curl command return the proper value?

from gpt-llama.cpp.

atisharma avatar atisharma commented on July 16, 2024

No, the empty reply was with using 8080 in both index.js and the test script.

from gpt-llama.cpp.

keldenl avatar keldenl commented on July 16, 2024

i just updated the test script and added support for port – PORT=8080 npm run start should do the trick. are you still running into the same issue?

from gpt-llama.cpp.

keldenl avatar keldenl commented on July 16, 2024

@atisharma are you still running into the same issue?

from gpt-llama.cpp.

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.