Giter VIP home page Giter VIP logo

dperezcabrera / chat-llm2 Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 244 KB

This project is a proof of concept to develop a web application that integrates Llama2 technology using Docker, solely utilizing the CPU. Inspired by the Chat-GPT interface, this application offers an interactive and user-friendly experience.

Dockerfile 1.01% Python 7.25% HTML 5.50% JavaScript 51.33% CSS 24.18% Shell 10.73%

chat-llm2's Introduction

Project Name

Chat-LLM2

Project Description

This project is a proof of concept to develop a web application that integrates Llama2 technology using Docker, solely utilizing the CPU. Inspired by the Chat-GPT interface, this application offers an interactive and user-friendly experience. The entire project, including this readme.md, has been generated using GPT-4. Please note that due to its reliance on CPU processing, the application's response time may be slower than usual.

Images

This section displays various images used in the application, located in the images directory.

Welcome Image

Welcome Image

Thinking Image

Thinking Image

Response Image

Response Image

Prerequisites

  • Docker

Installation

Step-by-step instructions to set up the development environment.

Docker Configuration

The Dockerfile establishes a Python environment and exposes port 5000, preparing the system to run the Flask server.

Model Download

It is essential to download at least one model before starting the server. Execute the following command to download at least one model:

./tasks.sh download_model

Usage

Building and Running with Docker

Use the build and run commands from the tasks.sh file to build the docker image and then run it in a container:

./tasks.sh build
./tasks.sh run

Cleaning Docker Images

To remove unused Docker images:

./tasks.sh clean

Flask Server and API

llama2_api.py sets up a Flask server, loading Llama models from /models/ and providing API endpoints for interaction.

API Endpoints

  • GET /api/v1/models/: Lists available models.
  • POST /api/v1/models/generate: Generates text using a specific model.

Web Interface

The application features a web interface accessible at localhost:5000/. This interface is similar to that of Chat-GPT, providing a fluid and accessible user experience.

Contact

For support or collaboration, you can contact me at: [email protected]

chat-llm2's People

Contributors

dperezcabrera avatar

Stargazers

 avatar Yavin 5 avatar

Watchers

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