ollama-remote-models is a lightweight Python-based tool designed to scrape model metadata from the Ollama model search page. It extracts key details such as model names and parameter sizes. This utility is ideal for researchers, developers, or enthusiasts looking to explore and analyze the remote Ollama model catalog. The program supports different output options, making it easy to integrate with documentation, dashboards, or automation scripts.
-
--outputDefines the desired output format.
Supported values include json, markdown, and html. The default is json.
-
--sortDetermines the sorting criteria for the output.
Options are name (alphabetical order) and time (last updated). The default is name.
-
--filterFilters the results based on model names, allowing you to narrow the output to specific models of interest.
Print remote Ollama models as JSON, sorted by name:
ollama_models.pyPrint remote Ollama models as JSON, sorted by last update time:
ollama_models.py --sort timePrint remote Ollama models that have llama3 in their name, sorted by name:
ollama_models.py --filter=llama3Print remote Ollama models that have llama3 in their name, sorted by last update time:
ollama_models.py --filter=llama3 --sort=time