Skip to content

Commit

Permalink
chore: make the workflow run successfully
Browse files Browse the repository at this point in the history
  • Loading branch information
limcheekin committed Jul 19, 2024
1 parent e24e34f commit 9058344
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/download.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ on:
model_name:
required: true
description: Specify model to be pulled by ollama such as llama3, phi3, etc.
workflow_call:
push:
branches:
- ollama-model-download
workflow_call:

jobs:
download:
Expand All @@ -15,10 +18,10 @@ jobs:
- name: Setup Ollama
run: curl -fsSL https://ollama.com/install.sh | sh

- name: Pull a model
run: ollama pull ${{ github.event.inputs.model_name }}
#- name: Pull a model
# run: ollama pull ${{ github.event.inputs.model_name }}

- name: Copy model file to the current directory
run: |
./copy-model-file.sh /usr/share/ollama/.ollama/models/blobs ${{ github.event.inputs.model_name }}
ls
#- name: Copy model file to the current directory
# run: |
# ./copy-model-file.sh /usr/share/ollama/.ollama/models/blobs ${{ github.event.inputs.model_name }}
# ls

0 comments on commit 9058344

Please sign in to comment.