mirror of
https://github.com/jmorganca/ollama
synced 2025-10-06 00:32:49 +02:00
docs: add the no-Modelfile function of ollama create
(#9077)
This commit is contained in:
@@ -1418,13 +1418,13 @@ func NewCLI() *cobra.Command {
|
|||||||
|
|
||||||
createCmd := &cobra.Command{
|
createCmd := &cobra.Command{
|
||||||
Use: "create MODEL",
|
Use: "create MODEL",
|
||||||
Short: "Create a model from a Modelfile",
|
Short: "Create a model",
|
||||||
Args: cobra.ExactArgs(1),
|
Args: cobra.ExactArgs(1),
|
||||||
PreRunE: checkServerHeartbeat,
|
PreRunE: checkServerHeartbeat,
|
||||||
RunE: CreateHandler,
|
RunE: CreateHandler,
|
||||||
}
|
}
|
||||||
|
|
||||||
createCmd.Flags().StringP("file", "f", "", "Name of the Modelfile (default \"Modelfile\"")
|
createCmd.Flags().StringP("file", "f", "", "Name of the Modelfile (default \"Modelfile\")")
|
||||||
createCmd.Flags().StringP("quantize", "q", "", "Quantize model to this level (e.g. q4_K_M)")
|
createCmd.Flags().StringP("quantize", "q", "", "Quantize model to this level (e.g. q4_K_M)")
|
||||||
|
|
||||||
showCmd := &cobra.Command{
|
showCmd := &cobra.Command{
|
||||||
|
@@ -53,6 +53,8 @@ FROM /path/to/safetensors/directory
|
|||||||
|
|
||||||
If you create the Modelfile in the same directory as the weights, you can use the command `FROM .`.
|
If you create the Modelfile in the same directory as the weights, you can use the command `FROM .`.
|
||||||
|
|
||||||
|
If you do not create the Modelfile, ollama will act as if there was a Modelfile with the command `FROM .`.
|
||||||
|
|
||||||
Now run the `ollama create` command from the directory where you created the `Modelfile`:
|
Now run the `ollama create` command from the directory where you created the `Modelfile`:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
|
Reference in New Issue
Block a user