Skip to content

Commit 802ad16

Browse files
authored
docs: add the no-Modelfile function of ollama create (ollama#9077)
1 parent 5e67f4f commit 802ad16

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

cmd/cmd.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1418,13 +1418,13 @@ func NewCLI() *cobra.Command {
14181418

14191419
createCmd := &cobra.Command{
14201420
Use: "create MODEL",
1421-
Short: "Create a model from a Modelfile",
1421+
Short: "Create a model",
14221422
Args: cobra.ExactArgs(1),
14231423
PreRunE: checkServerHeartbeat,
14241424
RunE: CreateHandler,
14251425
}
14261426

1427-
createCmd.Flags().StringP("file", "f", "", "Name of the Modelfile (default \"Modelfile\"")
1427+
createCmd.Flags().StringP("file", "f", "", "Name of the Modelfile (default \"Modelfile\")")
14281428
createCmd.Flags().StringP("quantize", "q", "", "Quantize model to this level (e.g. q4_K_M)")
14291429

14301430
showCmd := &cobra.Command{

docs/import.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ FROM /path/to/safetensors/directory
5353

5454
If you create the Modelfile in the same directory as the weights, you can use the command `FROM .`.
5555

56+
If you do not create the Modelfile, ollama will act as if there was a Modelfile with the command `FROM .`.
57+
5658
Now run the `ollama create` command from the directory where you created the `Modelfile`:
5759

5860
```shell

0 commit comments

Comments
 (0)