ollama-python icon indicating copy to clipboard operation
ollama-python copied to clipboard

No model information retrieval

Open ErnieCoding opened this issue 10 months ago • 1 comments

I have faced an issue where I needed to test multiple models and change the desired num_ctx params and other options as well based on the model I'm currently using.

While ollama.show() provides a good output for this, I want these parameters to be retrieved as values without me having to manually change options during ollama.chat() .

Something like modelinfo.py or another tool that would provide methods for various parameter retrieval (i.e. context length, quantization, embedding length, etc.).

If this is something you would like to see, I want to implement it myself and create a PR!

ErnieCoding avatar Mar 28 '25 20:03 ErnieCoding

Would you say that #500 is related to this? I believe you are both asking for model's default parameters to be shown?

karanravindra avatar Apr 14 '25 19:04 karanravindra