https://github.com/llm-workflow-engine/lwe-plugin-provider-chat-anyscale
LLM Workflow Engine (LWE) Chat Anyscale Provider plugin
https://github.com/llm-workflow-engine/lwe-plugin-provider-chat-anyscale
Last synced: 2 months ago
JSON representation
LLM Workflow Engine (LWE) Chat Anyscale Provider plugin
- Host: GitHub
- URL: https://github.com/llm-workflow-engine/lwe-plugin-provider-chat-anyscale
- Owner: llm-workflow-engine
- Created: 2023-11-18T00:04:53.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-25T19:35:03.000Z (7 months ago)
- Last Synced: 2024-12-31T22:41:50.301Z (4 months ago)
- Language: Python
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
**NOTE: Anyscale removed multi-tenant access to their Endpoints API, as a result, this plugin is not being actively maintained.**
# LLM Workflow Engine (LWE) Chat Anyscale Provider plugin
Chat Anyscale Provider plugin for [LLM Workflow Engine](https://github.com/llm-workflow-engine/llm-workflow-engine)
Access to [Anyscale](https://docs.anyscale.com) models.
## Installation
### Export API key
Grab an Anyscale API key from [https://app.endpoints.anyscale.com/credentials](https://app.endpoints.anyscale.com/credentials)
Export the key into your local environment:
```bash
export ANYSCALE_API_KEY=
```### From packages
Install the latest version of this software directly from github with pip:
```bash
pip install git+https://github.com/llm-workflow-engine/lwe-plugin-provider-chat-anyscale
```### From source (recommended for development)
Install the latest version of this software directly from git:
```bash
git clone https://github.com/llm-workflow-engine/lwe-plugin-provider-chat-anyscale.git
```Install the development package:
```bash
cd lwe-plugin-provider-chat-anyscale
pip install -e .
```## Configuration
Add the following to `config.yaml` in your profile:
```yaml
plugins:
enabled:
- provider_chat_anyscale
# Any other plugins you want enabled...
# THIS IS OPTIONAL -- By default the plugin loads all model data via an API
# call on startup. This does make startup time longer.
# You can instead provide a 'models' object here with the relevant data, and
# It will be used instead of an API call.
provider_chat_anyscale:
models:
# 'id' parameter of the model as it appears in the API.
"meta-llama/Meta-Llama-3-8B-Instruct":
# The only parameter, and it's required.
max_tokens: 8192
```## Usage
From a running LWE shell:
```
/provider anyscale
/model model meta-llama/Llama-2-70b-chat-hf
```