Create a model from a Modelfile
Details
Custom models are the way to save your system message and model
parameters in a dedicated shareable way. If you use show_model()
, you can
look at the configuration of a model in the column modelfile. To get more
information and a list of valid parameters, check out
https://github.com/ollama/ollama/blob/main/docs/modelfile.md. Most
options are also available through the query
and chat
functions, yet
are not persistent over sessions.
Examples
modelfile <- system.file("extdata", "modelfile.txt", package = "rollama")
if (FALSE) create_model("mario", modelfile) # \dontrun{}
modelfile <- "FROM llama3.1\nSYSTEM You are mario from Super Mario Bros."
if (FALSE) create_model("mario", modelfile) # \dontrun{}