Skip to main content

Groq

Groq provides ultra-fast inference using their custom LPU hardware.

Basic Example​

client<llm> MyClient {
provider openai-generic
options {
base_url "https://api.groq.com/openai/v1"
api_key env.GROQ_API_KEY
model "llama-3-groq-70b-tool-use"
}
}

BAML-Specific Options​

OptionTypeDefaultDescription
base_urlstring-https://api.groq.com/openai/v1
api_keystringenv.GROQ_API_KEYAPI key
modelstring-Model identifier

Available Models​

ModelDescription
llama-3-groq-70b-tool-useLlama 3 70B optimized for tool use
llama-3.1-70b-versatileLlama 3.1 70B versatile
llama-3.1-8b-instantLlama 3.1 8B fast inference
mixtral-8x7b-32768Mixtral 8x7B
gemma-7b-itGemma 7B instruction-tuned

See the Groq documentation for the complete list.

See Also​