Skip to content

updated with latest models ie llama3-70b

License

Notifications You must be signed in to change notification settings

ssergorp/llm-groq

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

llm-groq

Updated with access to llama3-8b and 70b models via the Groq api.

LLM plugin providing access to Groqcloud models.

Installation

clone repo to your local machine, cd into dir, run cmd 'llm install -e .'

git clone https://github.com/ssergorp/llm-groq.git
cd llm-groq
llm install -e .

Usage

First, obtain an API key for Groqcloud.

Configure the key using the llm keys set groq command:

llm keys set groq
<paste key here>

You can now access these hosted models: groq-llama2, groq-llama3-8b, groq-llama3-70b, groq-gemma and groq-mixtral.

To run a prompt through groq-mixtral:

llm -m groq-mixtral 'A sassy name for a pet sasquatch'

To start an interactive chat session with groq-mixtral:

llm chat -m groq-mixtral
llm chat -m groq-mixtral
Chatting with groq-mixtral
Type 'exit' or 'quit' to exit
Type '!multi' to enter multiple lines, then '!end' to finish
> three proud names for a pet walrus
Here are three whimsical and proud-sounding names for a pet walrus:

1. Regalus Maximus
2. Glacierus Royalty
3. Arctican Aristocat

These names evoke a sense of majesty and grandeur, fitting for a noble and intelligent creature like a walrus. I hope you find these names fitting and amusing! If you have any other requests or need assistance with something else, please don't hesitate to ask.

To use a system prompt with groq-mixtral to explain some code:

cat example.py | llm -m groq-mixtral -s 'explain this code'

Model options

TBD

Development

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

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

About

updated with latest models ie llama3-70b

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%