GithubHelp home page GithubHelp logo

llms's Introduction

LLM 模块

Install

下载 Text generation web UI

  1. clone 项目
git clone https://github.com/oobabooga/text-generation-webui
  1. install conda
curl -sL "https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh" > "Miniconda3.sh"
bash Miniconda3.sh
  1. 环境准备
conda create -n textgen python=3.10.9
conda activate textgen
  1. 安装环境
pip install torch torchvision torchaudio
pip install -r requirements.txt

下载模型参数

放在 text-generation-webui/models/ 目录下

llama-2-7b-chat

链接: https://pan.baidu.com/s/1XGovdZ7OFZdFwfWoKW85ww 提取码: tf1j

Chinese-Llama-7b

Start

cd text-generation-webui
python server.py --model chinese-alpaca-2-7b-hf --api --extensions openai --listen

cd ..
uvicorn main:app --reload --host 0.0.0.0 --port 8080

api docs

http://{server ip}:8001/docs

llms's People

Watchers

Bobby avatar

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.