https://github.com/llm-workflow-engine/lwe-plugin-provider-huggingface-hub
LLM Workflow Engine (LWE) Hugging Face Hub Provider plugin
https://github.com/llm-workflow-engine/lwe-plugin-provider-huggingface-hub
Last synced: 2 months ago
JSON representation
LLM Workflow Engine (LWE) Hugging Face Hub Provider plugin
- Host: GitHub
- URL: https://github.com/llm-workflow-engine/lwe-plugin-provider-huggingface-hub
- Owner: llm-workflow-engine
- Created: 2023-07-13T02:46:06.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-09T01:55:00.000Z (10 months ago)
- Last Synced: 2024-12-31T22:41:49.950Z (4 months ago)
- Language: Python
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LLM Workflow Engine (LWE) Hugging Face Hub Provider plugin
Hugging Face Hub Provider plugin for [LLM Workflow Engine](https://github.com/llm-workflow-engine/llm-workflow-engine)
Access to [Hugging Face Hub](https://huggingface.co/models) models.
## Installation
### Export API key
Grab an Hugging Face Hub API key from [https://huggingface.co/settings/tokens](https://huggingface.co/settings/tokens)
Export the key into your local environment:
```bash
export HUGGINGFACEHUB_API_TOKEN=
```### 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-huggingface-hub
```### 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-huggingface-hub.git
```Install the development package:
```bash
cd lwe-plugin-provider-huggingface-hub
pip install -e .
```## Configuration
Add the following to `config.yaml` in your profile:
```yaml
plugins:
enabled:
- provider_huggingface_hub
# Any other plugins you want enabled...
```## Usage
From a running LWE shell:
```
/provider huggingface_hub
/model repo_id gpt2
```