Git Product home page Git Product logo

Comments (2)

s-jse avatar s-jse commented on June 12, 2024

Hi!

Right now, we support models like LLaMA via the Together API. You can set it up by following the instructions at https://github.com/stanford-oval/WikiChat#set-up-the-llm-endpoint.

Alternatively, you can use HuggingFace's TGI to host a local model. For that, you can use their Docker image by running a command like docker run --gpus all --shm-size 1g -p <port>:80 -v ./workdir:/data ghcr.io/huggingface/text-generation-inference:1.3.4 --model-id <model-name-from-the-huggingface-hub> --hostname 0.0.0.0 --num-shard <number-of-gpus> where <port> is the same port you set in https://github.com/stanford-oval/WikiChat/blob/main/llm_config.yaml#L43.

However, using a model like LLaMA-2-13B as is leads to poor results, as it is not good at following our few-shot prompts. So you might have a better shot with higher-quality models like Mistral/Mixtral, or instruction-tuned models.

We are planning to release small distilled (i.e. fine-tuned specifically for WikiChat) models soon, which you can host on a single GPU yourself, using TGI with the above command. These models perform much much better raw LLMs like LLaMA-2, so please stay tuned!

from wikichat.

s-jse avatar s-jse commented on June 12, 2024

Update: I've added the distilled models I mentioned. You can give them a try!

from wikichat.

Related Issues (14)

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.