Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Support For Local LLMs #144

Merged
merged 5 commits into from
Sep 12, 2024
Merged

Add Support For Local LLMs #144

merged 5 commits into from
Sep 12, 2024

Conversation

Yiannis128
Copy link
Collaborator

The following PR adds support for local LLMs that are running through an Ollama server. As the TextGenerationInference custom AIs were no longer supported, the config object ai_custom has been repurposed for specifying Ollama models to connect to. The reason Ollama was chosen is due to the wide array of available models that they support. As Ollama supports ChatModels directly (rather than text completion models), the ESBMC-AI code has been adapted to use Chat style code only from Lang Chain for simplicity. Additionally, the parameter server_type has been added, which in the future could provide additional types of server support. Currently, it only supports ollama.

This PR closes #138

Example config:

"ai_custom": {
    "llama3.1:70b": {
      "server_type": "ollama",
      "url": "localhost:11434",
      "max_tokens": 128000
    },
    "falcon2:11b": {
      "server_type": "ollama",
      "url": "localhost:11434",
      "max_tokens": 8192
    },
    "mixtral:8x22b": {
      "server_type": "ollama",
      "url": "localhost:11434",
      "max_tokens": 64000
    }
  }

@Yiannis128 Yiannis128 added the enhancement New feature or request label Sep 12, 2024
@Yiannis128 Yiannis128 added this to the Version 0.5.2 milestone Sep 12, 2024
@Yiannis128 Yiannis128 self-assigned this Sep 12, 2024
@Yiannis128 Yiannis128 linked an issue Sep 12, 2024 that may be closed by this pull request
@Yiannis128 Yiannis128 merged commit 20097a9 into master Sep 12, 2024
0 of 2 checks passed
@Yiannis128 Yiannis128 deleted the local-llms branch September 12, 2024 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add local LLM support
1 participant