Giter VIP home page Giter VIP logo

Comments (6)

liltom-eth avatar liltom-eth commented on May 29, 2024

Hi, can you show your .env file. CUDA not found. means you are trying to load Llama2, gptq models.
If you are loading ggml models, it should print out like this .
Make sure you have set LLAMA_CPP = True in .env file.

from llama2-webui.

step21 avatar step21 commented on May 29, 2024

hey, thanks for the quick reply. I used the example for llama-2-7b-chat.ggmlv3.q4_0.bin
This is my .env file:

MODEL_PATH = "/home/user/project/models/llama-2-7b-chat.ggmlv3.q4_0.bin"
LOAD_IN_8BIT = False
LOAD_IN_4BIT = True
LLAMA_CPP = True

MAX_MAX_NEW_TOKENS = 2048
DEFAULT_MAX_NEW_TOKENS = 1024
MAX_INPUT_TOKEN_LENGTH = 4000

DEFAULT_SYSTEM_PROMPT = "\
You are a helpful, respectful and honest assistant. Always answer as helpfully as possible, while being safe.  Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature.

If a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.\
"

from llama2-webui.

step21 avatar step21 commented on May 29, 2024

mmh, I didn't really change anything, mostly reloaded my venv (but which I also did before) and now it says it is running on CPU with llama.cpp. Though now it also does not find the model and seemingly doesn't pick up the path properly from .env.

from llama2-webui.

step21 avatar step21 commented on May 29, 2024

Now it seems to work. Apparently for a venv, it only picks up changes to the .env after exiting the venv/environment and reloading it?

from llama2-webui.

liltom-eth avatar liltom-eth commented on May 29, 2024

It is wired. The '.env' should be loaded every time you run app.py.

from llama2-webui.

liltom-eth avatar liltom-eth commented on May 29, 2024

@step21 welcome contributing your benchmark performance here.

from llama2-webui.

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.