Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
accurate loading bar for resume download
Bruce MacDonald28b47e6068ce
diff --git a/ollama/model.py b/ollama/model.pyindex 41256c04b..5f99a13ac 100644--- a/ollama/model.py+++ b/ollama/model.py@@ -90,7 +90,7 @@ def download_file(download_url, models_home, location, file_size):response = requests.get(download_url, headers=header, stream=True)response.raise_for_status()- total_size = int(response.headers.get('content-length', 0))+ total_size = int(response.headers.get('content-length', 0)) + first_bytewith open(local_filename, 'ab' if first_byte else 'wb') as file, tqdm(total=total_size,