GithubHelp home page GithubHelp logo

not-important-vr / llm-prompt-templates Goto Github PK

View Code? Open in Web Editor NEW

This project forked from theroyallab/llm-prompt-templates

0.0 0.0 0.0 15 KB

Prompt Jinja2 templates for LLMs

License: MIT License

Jinja 100.00%

llm-prompt-templates's Introduction

LLM Prompt Templates

A repository of Jinja2 templates that can be used in backends such as TabbyAPI, Aphrodite Engine, and any backend that uses apply_chat_template from HuggingFace.

How do I make these?

Look at Huggingface's Documentation. It contains all the information you need to understand Jinja2's syntax and a straightforward way to create a chat template.

Downloading

  1. Click on the template file

  2. Click the download button

  3. Move the jinja file to the appropriate folder for your backend

Plug into TabbyAPI

An alternative way to get all these templates at once is to do the following inside your TabbyAPI install:

  1. Remove the existing templates folder

  2. Open up a terminal and cd <your TabbyAPI install>

  3. Clone this repo (git clone https://github.com/theroyallab/llm-prompt-templates templates)

  4. Run TabbyAPI (and set your config to use a new template)

Contributing

If you have issues with the project:

  • Describe the issues in detail

  • If you have a feature request, please indicate it as such.

If you have a Pull Request

  • Describe the pull request in detail, what, and why you are changing something

Thanks to

  • The Aphrodite team for introducing us to Jinja and its lightweight system.

  • The vllm project for initial chat templates.

  • HuggingFace for making Jinja's syntax understandable for chat templating and adding AutoTokenizer support.

llm-prompt-templates's People

Contributors

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