Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
802ad16c
Unverified
Commit
802ad16c
authored
Jul 17, 2025
by
frob
Committed by
GitHub
Jul 16, 2025
Browse files
docs: add the no-Modelfile function of `ollama create` (#9077)
parent
5e67f4f9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
cmd/cmd.go
cmd/cmd.go
+2
-2
docs/import.md
docs/import.md
+2
-0
No files found.
cmd/cmd.go
View file @
802ad16c
...
@@ -1418,13 +1418,13 @@ func NewCLI() *cobra.Command {
...
@@ -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
{
...
...
docs/import.md
View file @
802ad16c
...
@@ -53,6 +53,8 @@ FROM /path/to/safetensors/directory
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment