Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
Change default port
Bruce MacDonald53579c515154
diff --git a/ollama.py b/ollama.pyindex cd535e88c..8b200e003 100644--- a/ollama.py+++ b/ollama.py@@ -2,7 +2,6 @@ import jsonimport osimport threadingimport click-from transformers import AutoModelfrom tqdm import tqdmfrom pathlib import Pathfrom llama_cpp import Llama@@ -160,7 +159,7 @@ def cli(ctx):@cli.command()[email protected]("--port", default=5000, help="Port to run the server on")[email protected]("--port", default=7734, help="Port to run the server on")@click.option("--debug", default=False, help="Enable debug mode")def serve(port, debug):print("Serving on http://localhost:{port}")@@ -196,11 +195,6 @@ def generate_cli(model, prompt):print(f"\r{output}", end="", flush=True)-def download_model(model_name):- dir = models_directory()- AutoModel.from_pretrained(model_name, cache_dir=dir)--@cli.command(name="models")def models_cli():print(models())