This repository is about using A Guidance Fork with an OpenAI Aphrodite Endpiont
⚠️ This code is experimental and not meant for production use. It's just a proof of concept.
It's useful for enforcing a format when generating tokens.
Prompt:
+------------------------------------------------------------------------------+
|Common sense question and answer |
|Question: What is the besto waifu in domekano? |
|Answer:{{#select "waifu"}} Hina{{or}} Rui{{/select}} |
+------------------------------------------------------------------------------+
Completion:
+------------------------------------------------------------------------------+
|Common sense question and answer |
|Question: What is the besto waifu in domekano? |
|Answer: Hina |
+------------------------------------------------------------------------------+
First, clone this repository and install the requirements:
git clone https://github.com/miku448/aphrodite-guidance.git
cd aphrodite-guidance
pip install -r requirements.txt
Once you have a aphrodite.openai.api_server
running, you can modify the examples.py
file to your liking and run it. It's using mistralai/Mistral-7B-v0.1
and running it locally on the default Aphrodite's port.
python examples.py