Skip to content

Multiple models context management like Ollama. #40

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

Closed
svjack opened this issue May 4, 2024 · 0 comments
Closed

Multiple models context management like Ollama. #40

svjack opened this issue May 4, 2024 · 0 comments

Comments

@svjack
Copy link
Contributor

svjack commented May 4, 2024

With the help of llama-cpp-agent, I can use function calling and json-schema ability of one llama model
nearly perfectly. 😊
Given I want to use code-llm like codellama to generate function tools and use hermes-2-pro-mistral-7b to use them as
https://github.com/Maximilian-Winter/llama-cpp-agent/blob/master/examples/05_Agents/hermes_2_pro_agent.py
do.
And may use another llm by llama-cpp-python to take other tasks.
If I only have Limited gpu memory ,What's going to disturb me is the lack of model switch ability in llama-cpp-python, which also can see in
abetlen/llama-cpp-python#223

Auto model switch and the manage of gpu memory have be done by Ollama, but it lack ability of convenient function tools and json-schema output.

Or you can add a model switch ability in llama-cpp-agent, as
abetlen/llama-cpp-python#736
and
abetlen/llama-cpp-python#302
say.

How can I tackle this ? Looking forward to your reply. 😊

@svjack svjack closed this as completed May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant