Skip to content

simonw/llm-mpt30b

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
July 12, 2023 07:17
July 11, 2023 16:07
July 12, 2023 07:17

llm-mpt30b

PyPI Changelog Tests License

Plugin for LLM adding support for the MPT-30B language model.

This plugin uses TheBloke/mpt-30B-GGML. The code was inspired by abacaj/mpt-30B-inference.

Installation

Install this plugin in the same environment as LLM.

llm install llm-mpt30b

After installing the plugin you will need to download the ~19GB model file. You can do this by running:

llm mpt30b download

Usage

This plugin adds a model called mpt30b. You can execute it like this:

llm -m mpt30b "Three great names for a pet goat"

The alias -m mpt works as well.

You can pass the option -o verbose 1 to see more verbose output - currently a progress bar showing any additional downloads that are made during execution.

Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

cd llm-mpt30b
python3 -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

pip install -e '.[test]'

To run the tests:

pytest

About

LLM plugin adding support for the MPT-30B language model

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages