Skip to content

Latest commit

 

History

History
39 lines (31 loc) · 1.05 KB

customization.md

File metadata and controls

39 lines (31 loc) · 1.05 KB

Environment variables

The following environment variables let you customize LLMLean.

LLM in the cloud

Example:

  • LLMLEAN_API:
    • together : to use Together.ai API
    • openai : to use OpenAI API
  • LLMLEAN_API_KEY:
    • E.g. API key for Together API, or OpenAI API key
  • LLMLEAN_ENDPOINT: API endpoint
    • E.g. https://api.together.xyz/v1/completions for Together API
  • LLMLEAN_PROMPT:
    • fewshot : for base models
    • instruction : for instruction-tuned models
  • LLMLEAN_MODEL:
    • Example for Together API: mistralai/Mixtral-8x7B-Instruct-v0.1
    • Example for Open AI: gpt-4o
  • LLMLEAN_NUMSAMPLES:
    • Example: 10

LLM on your laptop

  • LLMLEAN_API:
    • ollama : to use ollama (default)
  • LLMLEAN_ENDPOINT:
    • With ollama it is http://localhost:11434/api/generate
  • LLMLEAN_PROMPT:
    • fewshot : for base models
    • instruction : for instruction-tuned models
  • LLMLEAN_MODEL:
    • Example: solobsd/llemma-7b
  • LLMLEAN_NUMSAMPLES:
    • Example: 10