Originally created by @silentoplayz on GitHub (Mar 16, 2024).
Is your feature request related to a problem? Please describe.
Users, particularly those without an existing Modelfile in the WebUI, may find it time-consuming to manually enter model details when creating their first Modelfile from scratch. While a clone feature is available, it requires users to have an existing modelfile in the Modelfiles tab before then gaining the ability to duplicate said Modelfile. This process can be time-consuming, as users currently lack the ability to directly create a new modelfile based on an existing, locally downloaded model without manual intervention.
Describe the solution you'd like
I propose an enhancement to the existing modelfile duplication feature, enabling users to extract relevant model details from an existing, locally downloaded model and auto-populate the modelfile creator tab, saving both time and effort. This enhancement will allow users to quickly create new modelfiles based on existing, locally downloaded models, making it easier to manage and maintain their modelfiles.
Describe alternatives you've considered
Two alternatives have been considered:
Viewing a model's details page from a model's tags page in ollama.com/library:
Note: If the FROM instruction is not present, it means the model was created from a local file.
Using the ollama show command to print the Modelfile for any local models:
Run ollama show --modelfile <model-tag>.
The Modelfile generated by "ollama show" can be used as a base for creating a new Modelfile.
However, these alternatives still require manual intervention and may not be as user-friendly as the proposed enhancement.
Additional context
The enhanced modelfile duplication feature with local model selection and modefile extraction will save users time by automating the process of filling in model details when creating a new modelfile from scratch. This will improve the user experience and streamline the process of managing and maintaining modelfiles.
Originally created by @silentoplayz on GitHub (Mar 16, 2024).
**Is your feature request related to a problem? Please describe.**
Users, particularly those without an existing Modelfile in the WebUI, may find it time-consuming to manually enter model details when creating their first Modelfile from scratch. While a clone feature is available, it requires users to have an existing modelfile in the `Modelfiles` tab before then gaining the ability to duplicate said Modelfile. This process can be time-consuming, as users currently lack the ability to directly create a new modelfile based on an existing, locally downloaded model without manual intervention.
**Describe the solution you'd like**
I propose an enhancement to the existing modelfile duplication feature, enabling users to extract relevant model details from an existing, locally downloaded model and auto-populate the modelfile creator tab, saving both time and effort. This enhancement will allow users to quickly create new modelfiles based on existing, locally downloaded models, making it easier to manage and maintain their modelfiles.
**Describe alternatives you've considered**
Two alternatives have been considered:
1. Viewing a model's details page from a model's tags page in ollama.com/library:
- Go to a particular model's tags (e.g. <https://ollama.com/library/llama2/tags>).
- Click on a tag (e.g. <https://ollama.com/library/llama2:13b>).
- View the layers.
- Note: If the FROM instruction is not present, it means the model was created from a local file.
2. Using the `ollama show` command to print the Modelfile for any local models:
- Run `ollama show --modelfile <model-tag>`.
- The Modelfile generated by "ollama show" can be used as a base for creating a new Modelfile.
However, these alternatives still require manual intervention and may not be as user-friendly as the proposed enhancement.
**Additional context**
The enhanced modelfile duplication feature with local model selection and modefile extraction will save users time by automating the process of filling in model details when creating a new modelfile from scratch. This will improve the user experience and streamline the process of managing and maintaining modelfiles.
We already have a clone feature if that's what you meant.
@tjbck commented on GitHub (Mar 16, 2024):

We already have a clone feature if that's what you meant.
We already have a clone feature if that's what you meant.
While a clone feature is available and exists already after a modelfile has been created, it requires users to have an existing modelfile in the Modelfiles tab before having the ability to duplicate the modelfile itself. The enhanced model file duplication feature with local model selection and modelfile extraction proposes to save users time by automating the process of filling in model details when creating a new modelfile from scratch.
@silentoplayz commented on GitHub (Mar 16, 2024):
> 
>
> We already have a clone feature if that's what you meant.
While a clone feature is available and exists already after a modelfile has been created, it requires users to have an existing modelfile in the Modelfiles tab before having the ability to duplicate the modelfile itself. The enhanced model file duplication feature with local model selection and modelfile extraction proposes to save users time by automating the process of filling in model details when creating a new modelfile from scratch.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @silentoplayz on GitHub (Mar 16, 2024).
Is your feature request related to a problem? Please describe.
Users, particularly those without an existing Modelfile in the WebUI, may find it time-consuming to manually enter model details when creating their first Modelfile from scratch. While a clone feature is available, it requires users to have an existing modelfile in the
Modelfilestab before then gaining the ability to duplicate said Modelfile. This process can be time-consuming, as users currently lack the ability to directly create a new modelfile based on an existing, locally downloaded model without manual intervention.Describe the solution you'd like
I propose an enhancement to the existing modelfile duplication feature, enabling users to extract relevant model details from an existing, locally downloaded model and auto-populate the modelfile creator tab, saving both time and effort. This enhancement will allow users to quickly create new modelfiles based on existing, locally downloaded models, making it easier to manage and maintain their modelfiles.
Describe alternatives you've considered
Two alternatives have been considered:
Viewing a model's details page from a model's tags page in ollama.com/library:
Using the
ollama showcommand to print the Modelfile for any local models:ollama show --modelfile <model-tag>.However, these alternatives still require manual intervention and may not be as user-friendly as the proposed enhancement.
Additional context
The enhanced modelfile duplication feature with local model selection and modefile extraction will save users time by automating the process of filling in model details when creating a new modelfile from scratch. This will improve the user experience and streamline the process of managing and maintaining modelfiles.
@tjbck commented on GitHub (Mar 16, 2024):
We already have a clone feature if that's what you meant.
@silentoplayz commented on GitHub (Mar 16, 2024):
While a clone feature is available and exists already after a modelfile has been created, it requires users to have an existing modelfile in the Modelfiles tab before having the ability to duplicate the modelfile itself. The enhanced model file duplication feature with local model selection and modelfile extraction proposes to save users time by automating the process of filling in model details when creating a new modelfile from scratch.