You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _posts/2025/2025-02-23-run-ollama-large-language-models-on-github-actions.md
+9-8Lines changed: 9 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,12 @@
2
2
layout: post
3
3
title: How to run Ollama LLM on GitHub Actions
4
4
date: 2025-02-23 14:00:53
5
-
excerpt: How to run Ollama large language models (LLM) on GitHub Actions for free.
5
+
updated: 2025-05-01 22:43:16
6
+
excerpt: How to run Ollama large language models (LLM) on GitHub Actions.
6
7
categories: github actions ollama llm ai ci
7
8
---
8
9
9
-
This post goes over how to run [Ollama](https://ollama.com/) large language models (LLM) on [GitHub Actions](https://github.com/features/actions) for free.
10
+
This post goes over how to run [Ollama](https://ollama.com/) large language models (LLM) on [GitHub Actions](https://github.com/features/actions).
10
11
11
12
## Ollama
12
13
@@ -47,17 +48,17 @@ jobs:
47
48
runs-on: macos-latest
48
49
49
50
steps:
50
-
- name: Run LLM
51
+
- name: Run model
51
52
uses: ai-action/ollama-action@v1
52
-
id: llm
53
+
id: model
53
54
with:
54
55
model: llama3.2
55
56
prompt: What is a large language model?
56
57
57
58
- name: Print response
58
-
env:
59
-
response: ${{ steps.llm.outputs.response }}
60
59
run: echo "$response"
60
+
env:
61
+
response: ${{ steps.model.outputs.response }}
61
62
```
62
63
63
64
{% endraw %}
@@ -118,10 +119,10 @@ jobs:
118
119
RESPONSE=$(ollama run codellama "$PROMPT\n$(gh pr diff $PR_NUMBER)")
0 commit comments