[GH-ISSUE #1758] 💡 "ollama --verify" to validate a model #1008

Closed
opened 2026-04-12 10:43:49 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @adriens on GitHub (Jan 2, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/1758

About

Sometimes, me may only need to validate than we can compile a model with ollama...without having to download the whole base model.

👉 In a few words, this would help telling, very fast and very easily is a ollama modelfile could be used. 👈

💡 Feature request

Implement ollama --verify which exits with success if:

  • ✔️ the file is well formated
  • ✔️ the base image exists

💰 Benefits

  • Make it possible to implement code validation with CI... and then protect source code
  • Save resources (storage, CPU) while trying to validate a ollama modelfile (especially on GH Actions)

🔖 Related stuff

Originally created by @adriens on GitHub (Jan 2, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/1758 # ❔ About Sometimes, me may only need to validate than we can compile a model with `ollama`...without having to download the whole base model. **👉 In a few words, this would help telling, very fast and very easily is a `ollama` modelfile could be used. 👈** # 💡 Feature request Implement `ollama --verify` which exits with success if: - ✔️ the file is well formated - ✔️ the base image exists # 💰 Benefits - **Make it possible to implement code validation with CI**... and then protect source code - **Save resources (storage, CPU)** while trying to validate a `ollama` modelfile (especially on GH Actions) # 🔖 Related stuff - https://github.com/jmorganca/ollama/issues/1473
GiteaMirror added the feature request label 2026-04-12 10:43:49 -05:00
Author
Owner

@pdevine commented on GitHub (Mar 11, 2024):

I really like the idea of a linter... let's track this is #1843

<!-- gh-comment-id:1989392247 --> @pdevine commented on GitHub (Mar 11, 2024): I really like the idea of a linter... let's track this is #1843
Author
Owner

@adriens commented on GitHub (Mar 11, 2024):

🙏 @pdevine for the feedback

<!-- gh-comment-id:1989474690 --> @adriens commented on GitHub (Mar 11, 2024): :pray: @pdevine for the feedback
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#1008