This is a plugin for LLM that provides access to the LambdaLabs API models.
Install this plugin in the same environment as LLM:
llm install llm-lambdaYou'll need to set an environment variable with your LambdaLabs API key:
export LLM_LAMBDA_KEY="your-api-key-here"You can also use the llm keys set command:
llm keys set lambdaThis plugin adds two new models:
lambda-hermes-3-18k: Hermes 3 model with 18K context lengthlambda-hermes-3-128k: Hermes 3 model with 128K context length
You can use these models like this:
llm -m lambda-hermes-3-18k "Your prompt here"Or:
llm -m lambda-hermes-3-128k "Your prompt here"lambda-hermes-3-18k: This model uses thehermes-3-llama-3.1-405b-fp8LambdaLabs model with an 18K token context length.lambda-hermes-3-128k: This model uses thehermes-3-llama-3.1-405b-fp8-128kLambdaLabs model with a 128K token context length.
If a request using the 18K model exceeds its context length, it will automatically fall back to using the 128K model.
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd llm-lambda
python3 -m venv venv
source venv/bin/activate
pip install .You can install the plugin in the llm command for testing/developing:
llm install -e .Check that it is there:
llm pluginsApache 2.0