[PR #7270] [CLOSED] Show supported types list in help message for ollama create #17639

Closed
opened 2026-04-16 06:09:28 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/7270
Author: @shirayu
Created: 10/19/2024
Status: Closed

Base: mainHead: filetype_help


📝 Commits (2)

  • 1035244 Refactoring: Use map instead of switch
  • 4442fe1 Show supported types list in help message for ollama create

📊 Changes

2 files changed (+74 additions, -127 deletions)

View changed files

📝 cmd/cmd.go (+24 -1)
📝 llm/filetype.go (+50 -126)

📄 Description

This PR adds supported types list to the help message for ollama create

$  go run main.go create -h
Create a model from a Modelfile

Usage:
  ollama create MODEL [flags]

Flags:
  -f, --file string       Name of the Modelfile (default "Modelfile")
  -h, --help              help for create
  -q, --quantize string   Quantize model to this level (e.g. q4_0)
                           Supported types:
                             BF16, F16, F32, IQ1_M, IQ1_S, IQ2_M
                             IQ2_S, IQ2_XS, IQ2_XXS, IQ3_S, IQ3_XS, IQ3_XXS
                             IQ4_NL, IQ4_XS, Q2_K, Q2_K_S, Q3_K_L, Q3_K_M
                             Q3_K_S, Q4_0, Q4_1, Q4_1_F16, Q4_K_M, Q4_K_S
                             Q5_0, Q5_1, Q5_K_M, Q5_K_S, Q6_K, Q8_0

Environment Variables:
      OLLAMA_HOST                IP Address for the ollama server (default 127.0.0.1:11434)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/7270 **Author:** [@shirayu](https://github.com/shirayu) **Created:** 10/19/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `filetype_help` --- ### 📝 Commits (2) - [`1035244`](https://github.com/ollama/ollama/commit/10352446a73d343006f44f05367b2cf67cda899d) Refactoring: Use map instead of switch - [`4442fe1`](https://github.com/ollama/ollama/commit/4442fe134df6220b6c42bbae43e4056fa5e380af) Show supported types list in help message for `ollama create` ### 📊 Changes **2 files changed** (+74 additions, -127 deletions) <details> <summary>View changed files</summary> 📝 `cmd/cmd.go` (+24 -1) 📝 `llm/filetype.go` (+50 -126) </details> ### 📄 Description This PR adds supported types list to the help message for `ollama create` ```console $ go run main.go create -h Create a model from a Modelfile Usage: ollama create MODEL [flags] Flags: -f, --file string Name of the Modelfile (default "Modelfile") -h, --help help for create -q, --quantize string Quantize model to this level (e.g. q4_0) Supported types: BF16, F16, F32, IQ1_M, IQ1_S, IQ2_M IQ2_S, IQ2_XS, IQ2_XXS, IQ3_S, IQ3_XS, IQ3_XXS IQ4_NL, IQ4_XS, Q2_K, Q2_K_S, Q3_K_L, Q3_K_M Q3_K_S, Q4_0, Q4_1, Q4_1_F16, Q4_K_M, Q4_K_S Q5_0, Q5_1, Q5_K_M, Q5_K_S, Q6_K, Q8_0 Environment Variables: OLLAMA_HOST IP Address for the ollama server (default 127.0.0.1:11434) ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-16 06:09:28 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#17639