GithubHelp home page GithubHelp logo

wolfreecn / docker-llama2-chat Goto Github PK

View Code? Open in Web Editor NEW

This project forked from soulteary/docker-llama2-chat

0.0 0.0 0.0 8.6 MB

Play LLaMA2 Together! ONLY 3 STEPS! ( need 8~14 vRAM )

License: Apache License 2.0

Shell 3.05% Python 96.71% Roff 0.24%

docker-llama2-chat's Introduction

Docker LLaMA2 Chat

Play! Together! ONLY 3 STEPS!

Get started quickly, locally using the 7B or 13B models, using Docker.

This project has been tested by 4090 and costs 8 ~ 14G vRAM.

Usage

  1. Build LLaMA2 Docker image for 7B or 13B:
# 7b
bash scripts/make-7b.sh
# 13b
bash scripts/make-13b.sh
  1. Download LLaMA2 Offcial Models from HuggingFace (download faster++)
git clone [email protected]:meta-llama/Llama-2-7b-chat-hf
git clone [email protected]:meta-llama/Llama-2-13b-chat-hf

mkdir meta-llama
mv Llama-2-7b-chat-hf meta-llama/
mv Llama-2-13b-chat-hf meta-llama/

keep the correct directory structure.

tree -L 2 meta-llama
meta-llama
├── Llama-2-13b-chat-hf
│   ├── added_tokens.json
│   ├── config.json
│   ├── generation_config.json
│   ├── LICENSE.txt
│   ├── model-00001-of-00003.safetensors
│   ├── model-00002-of-00003.safetensors
│   ├── model-00003-of-00003.safetensors
│   ├── model.safetensors.index.json
│   ├── pytorch_model-00001-of-00003.bin
│   ├── pytorch_model-00002-of-00003.bin
│   ├── pytorch_model-00003-of-00003.bin
│   ├── pytorch_model.bin.index.json
│   ├── README.md
│   ├── Responsible-Use-Guide.pdf
│   ├── special_tokens_map.json
│   ├── tokenizer_config.json
│   ├── tokenizer.model
│   └── USE_POLICY.md
└── Llama-2-7b-chat-hf
    ├── added_tokens.json
    ├── config.json
    ├── generation_config.json
    ├── LICENSE.txt
    ├── model-00001-of-00002.safetensors
    ├── model-00002-of-00002.safetensors
    ├── model.safetensors.index.json
    ├── models--meta-llama--Llama-2-7b-chat-hf
    ├── pytorch_model-00001-of-00003.bin
    ├── pytorch_model-00002-of-00003.bin
    ├── pytorch_model-00003-of-00003.bin
    ├── pytorch_model.bin.index.json
    ├── README.md
    ├── special_tokens_map.json
    ├── tokenizer_config.json
    ├── tokenizer.json
    ├── tokenizer.model
    └── USE_POLICY.md

4 directories, 35 files
  1. Run llama2 7b or 13b in docker command:
# 7b
bash scripts/run-7b.sh
# or 13b
bash scripts/run-13b.sh

enjoy, open http://localhost7860 or http://ip:7860 and play with the LLaMA2!

Preview

Credit

  1. Meta LLaMA2: https://ai.meta.com/llama/
  2. Meta LLaMA2 7B/13B Chat: https://huggingface.co/meta-llama/Llama-2-7b-chat , https://huggingface.co/meta-llama/Llama-2-7b-chat

docker-llama2-chat's People

Contributors

soulteary 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.