Skip to content

This project aims to develop an API backend using Flask to support Text Generation Inference with Llama v2 Models

License

Notifications You must be signed in to change notification settings

kevinknights29/LLama-v2-Text-Gen-API

Repository files navigation

LLama-v2-Text-Gen-API

This project aims to develop an API backend using Flask to support Text Generation Inference with Llama v2 Models

Results

Swagger-UI

image

Text Generation Endpoint

image

API Call and Response

image

Streaming API

image

Usage

Build APP Image

docker compose build

Get everything up and running

docker compose down && docker compose up -d

Have fun

Visit http://localhost:7860/swagger to access the Swagger API Docs.

Contributing

Installing pre-commit

Pre-commit is already part of this project dependencies. If you would like to install it as a standalone run:

pip install pre-commit

To activate pre-commit run the following commands:

  • Install Git hooks:
pre-commit install
  • Update current hooks:
pre-commit autoupdate

To test your installation of pre-commit run:

pre-commit run --all-files

About

This project aims to develop an API backend using Flask to support Text Generation Inference with Llama v2 Models

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published