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

How do you get the context length of the currently loaded model? #43

Closed
Bardo-Konrad opened this issue Jun 10, 2024 · 2 comments
Closed

Comments

@Bardo-Konrad
Copy link

No description provided.

@awaescher
Copy link
Owner

This project only simplifies the usage of the Ollama API. You can check their API docs by yourself:

@awaescher awaescher closed this as not planned Won't fix, can't repro, duplicate, stale Jun 11, 2024
@mili-tan
Copy link
Contributor

Now it is possible:

var info = (await ollamaClient.ShowModelInformation("qwen2:7b")).Info;
Console.WriteLine(info.ExtraInfo[$"{info.Architecture}.context_length"]);
Console.WriteLine(info.ExtraInfo[$"{info.Architecture}.embedding_length"]);

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

3 participants