Skip to content

Instantly share code, notes, and snippets.

@mertbozkir
Last active June 27, 2024 14:11
Show Gist options
  • Select an option

  • Save mertbozkir/b10981689807e5991d243fca47fd6686 to your computer and use it in GitHub Desktop.

Select an option

Save mertbozkir/b10981689807e5991d243fca47fd6686 to your computer and use it in GitHub Desktop.

Revisions

  1. mertbozkir revised this gist Jun 27, 2024. 1 changed file with 6 additions and 3 deletions.
    9 changes: 6 additions & 3 deletions upload.md
    Original file line number Diff line number Diff line change
    @@ -1,12 +1,15 @@
    Push a new model:

    ```ollama pull llama2
    ```
    ollama pull llama2
    echo "FROM llama2" >> Modelfile
    echo "SYSTEM You are a friendly assistant." >> Modelfile
    ollama create -f Modelfile mertbozkir/test
    ollama push mertbozkir/test
    ```
    or push an existing model:

    ```ollama cp llama2 mertbozkir/test
    ollama push mertbozkir/test```
    ```
    ollama cp llama2 mertbozkir/test
    ollama push mertbozkir/test
    ```
  2. mertbozkir created this gist Jun 27, 2024.
    12 changes: 12 additions & 0 deletions upload.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    Push a new model:

    ```ollama pull llama2
    echo "FROM llama2" >> Modelfile
    echo "SYSTEM You are a friendly assistant." >> Modelfile
    ollama create -f Modelfile mertbozkir/test
    ollama push mertbozkir/test
    ```
    or push an existing model:

    ```ollama cp llama2 mertbozkir/test
    ollama push mertbozkir/test```