Skip to content

Commit

Permalink
Ollama
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkXero-dev committed Sep 20, 2024
1 parent 887a5ba commit 6638069
Show file tree
Hide file tree
Showing 40 changed files with 7,457 additions and 742 deletions.
Binary file added content/posts/ollama-ai/.index.md.kate-swp
Binary file not shown.
Binary file added content/posts/ollama-ai/featured.webp
Binary file not shown.
51 changes: 51 additions & 0 deletions content/posts/ollama-ai/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
title: "Ollama A.I"
date: 2024-09-20
draft: false
description: "Run A.I. Locally On Your Computer With Ollama"
tags: ["AI", "Ollama", "Assistant", "Linux"]
---

### Information

[**Ollama**](https://ollama.com) is a tool that allows you to run and manage *A.I.* models locally on your own machines, providing privacy and control without relying on *cloud-based* services. While it works across multiple platforms, it integrates smoothly into any **Linux** workflow.

{{< youtube J6s0n1FhXRo >}}

### Installation

Installing is easy, it can be done in multiple ways, that I will show you here. In the video above my good friend and brother [**DistroTube**](https://www.youtube.com/@DistroTube/videos) goes through the motions on **ArcoLinux** an **Arch-Based** distro. Here, I will expanding on that just a little, while including most of the commands used.

First we will need to install the **Ollama Engine**...

- Platform-Agnostic (Recommended)

```Bash
curl -fsSL https://ollama.com/install.sh | sh
```

- ArchLinux (All Spins)

```Bash
sudo pacman -S ollama && sudo systemctl enable --now ollama
```

Now that we have the engine installed, it's time to grab the model we want to use with it, as without one it will not work properly. There are quite a few varying in size, be mindful of that.

We can select model(s) from [**This Link**](https://github.com/ollama/ollama?tab=readme-ov-file#model-library), once we have it we use the following command to install and run (using llama3.1 in this example)...

```Bash
ollama run llama3.1
```

Some models are larger than others, reaching up to 232GB !!! Also the bigger the model is the more powerful your machine should be to handle it. Please keep that in mind before diving too deep into it.

Oh and as mentioned by **DT** in the video, you can take it to the next level by csutomizing it, making it react using different personas, like **Mario** or any of the available ones. This is just a quirk not very useful. If you want to know how, check it out on project's **Github**

{{< github repo="ollama/ollama" >}}

### Wrapping up

That's it. There's nothing to it. A.I. is where the world is headed so I thought I'd share this with y'all. It's fun to try new things, keeping up with technology. If you have any questions or issues please report them to the Devs upstream.

Cheers !
88 changes: 40 additions & 48 deletions public/about/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1448,19 +1448,19 @@ <h2 class="mt-8 text-2xl font-extrabold mb-10">Related</h2>



<a href="/posts/pacman-update/" class="min-w-full">
<a href="/posts/ollama-ai/" class="min-w-full">

<div class="min-h-full border border-neutral-200 dark:border-neutral-700 border-2 rounded overflow-hidden shadow-2xl relative">

<div class="w-full thumbnail_card_related nozoom" style="background-image:url(/posts/pacman-update/featured.webp);"></div>
<div class="w-full thumbnail_card_related nozoom" style="background-image:url(/posts/ollama-ai/featured.webp);"></div>



<div class="px-6 py-4">


<div class="font-bold text-xl text-neutral-800 decoration-primary-500 hover:underline hover:underline-offset-2 dark:text-neutral"
href="/posts/pacman-update/">Pacman R7.0 Update</div>
href="/posts/ollama-ai/">Ollama A.I</div>


<div class="text-sm text-neutral-500 dark:text-neutral-400">
Expand Down Expand Up @@ -1505,7 +1505,7 @@ <h2 class="mt-8 text-2xl font-extrabold mb-10">Related</h2>
<div class="flex flex-row flex-wrap items-center">


<time datetime="2024-09-15T00:00:00&#43;00:00">15 September 2024</time><span class="px-2 text-primary-500">&middot;</span><span title="Reading time">4 mins</span><span class="px-2 text-primary-500">&middot;</span><span>
<time datetime="2024-09-20T00:00:00&#43;00:00">20 September 2024</time><span class="px-2 text-primary-500">&middot;</span><span title="Reading time">2 mins</span><span class="px-2 text-primary-500">&middot;</span><span>



Expand All @@ -1518,7 +1518,7 @@ <h2 class="mt-8 text-2xl font-extrabold mb-10">Related</h2>



<span id="views_posts/pacman-update/index.md" class="animate-pulse inline-block text-transparent max-h-3 rounded-full mt-[-2px] align-middle bg-neutral-300 dark:bg-neutral-400" title="views">loading</span>
<span id="views_posts/ollama-ai/index.md" class="animate-pulse inline-block text-transparent max-h-3 rounded-full mt-[-2px] align-middle bg-neutral-300 dark:bg-neutral-400" title="views">loading</span>
<span class="inline-block align-text-bottom">

<span class="relative block icon">
Expand All @@ -1540,7 +1540,7 @@ <h2 class="mt-8 text-2xl font-extrabold mb-10">Related</h2>



<span id="likes_posts/pacman-update/index.md"
<span id="likes_posts/ollama-ai/index.md"
class="animate-pulse inline-block text-transparent max-h-3 rounded-full mt-[-2px] align-middle bg-neutral-300 dark:bg-neutral-400"
title="likes">loading</span>
<span class="inline-block align-text-bottom">
Expand Down Expand Up @@ -1589,34 +1589,26 @@ <h2 class="mt-8 text-2xl font-extrabold mb-10">Related</h2>



<span style="margin-top:0.5rem" class="mr-2" onclick="window.open(&#34;/tags/pacman/&#34;,'_self');">
<span style="margin-top:0.5rem" class="mr-2" onclick="window.open(&#34;/tags/ai/&#34;,'_self');">
<span class="flex" style="cursor: pointer;">
<span class="rounded-md border border-primary-400 px-1 py-[1px] text-xs font-normal text-primary-700 dark:border-primary-600 dark:text-primary-400">
Pacman
AI
</span>
</span>
</span>

<span style="margin-top:0.5rem" class="mr-2" onclick="window.open(&#34;/tags/aur/&#34;,'_self');">
<span style="margin-top:0.5rem" class="mr-2" onclick="window.open(&#34;/tags/ollama/&#34;,'_self');">
<span class="flex" style="cursor: pointer;">
<span class="rounded-md border border-primary-400 px-1 py-[1px] text-xs font-normal text-primary-700 dark:border-primary-600 dark:text-primary-400">
AUR
Ollama
</span>
</span>
</span>

<span style="margin-top:0.5rem" class="mr-2" onclick="window.open(&#34;/tags/arch/&#34;,'_self');">
<span style="margin-top:0.5rem" class="mr-2" onclick="window.open(&#34;/tags/assistant/&#34;,'_self');">
<span class="flex" style="cursor: pointer;">
<span class="rounded-md border border-primary-400 px-1 py-[1px] text-xs font-normal text-primary-700 dark:border-primary-600 dark:text-primary-400">
Arch
</span>
</span>
</span>

<span style="margin-top:0.5rem" class="mr-2" onclick="window.open(&#34;/tags/guide/&#34;,'_self');">
<span class="flex" style="cursor: pointer;">
<span class="rounded-md border border-primary-400 px-1 py-[1px] text-xs font-normal text-primary-700 dark:border-primary-600 dark:text-primary-400">
Guide
Assistant
</span>
</span>
</span>
Expand Down Expand Up @@ -1650,19 +1642,19 @@ <h2 class="mt-8 text-2xl font-extrabold mb-10">Related</h2>



<a href="/posts/build-archiso/" class="min-w-full">
<a href="/posts/pacman-update/" class="min-w-full">

<div class="min-h-full border border-neutral-200 dark:border-neutral-700 border-2 rounded overflow-hidden shadow-2xl relative">

<div class="w-full thumbnail_card_related nozoom" style="background-image:url(/posts/build-archiso/featured.webp);"></div>
<div class="w-full thumbnail_card_related nozoom" style="background-image:url(/posts/pacman-update/featured.webp);"></div>



<div class="px-6 py-4">


<div class="font-bold text-xl text-neutral-800 decoration-primary-500 hover:underline hover:underline-offset-2 dark:text-neutral"
href="/posts/build-archiso/">Build a Fresh Arch ISO</div>
href="/posts/pacman-update/">Pacman R7.0 Update</div>


<div class="text-sm text-neutral-500 dark:text-neutral-400">
Expand Down Expand Up @@ -1707,7 +1699,7 @@ <h2 class="mt-8 text-2xl font-extrabold mb-10">Related</h2>
<div class="flex flex-row flex-wrap items-center">


<time datetime="2024-09-05T00:00:00&#43;00:00">5 September 2024</time><span class="px-2 text-primary-500">&middot;</span><span title="Reading time">2 mins</span><span class="px-2 text-primary-500">&middot;</span><span>
<time datetime="2024-09-15T00:00:00&#43;00:00">15 September 2024</time><span class="px-2 text-primary-500">&middot;</span><span title="Reading time">4 mins</span><span class="px-2 text-primary-500">&middot;</span><span>



Expand All @@ -1720,7 +1712,7 @@ <h2 class="mt-8 text-2xl font-extrabold mb-10">Related</h2>



<span id="views_posts/build-archiso/index.md" class="animate-pulse inline-block text-transparent max-h-3 rounded-full mt-[-2px] align-middle bg-neutral-300 dark:bg-neutral-400" title="views">loading</span>
<span id="views_posts/pacman-update/index.md" class="animate-pulse inline-block text-transparent max-h-3 rounded-full mt-[-2px] align-middle bg-neutral-300 dark:bg-neutral-400" title="views">loading</span>
<span class="inline-block align-text-bottom">

<span class="relative block icon">
Expand All @@ -1742,7 +1734,7 @@ <h2 class="mt-8 text-2xl font-extrabold mb-10">Related</h2>



<span id="likes_posts/build-archiso/index.md"
<span id="likes_posts/pacman-update/index.md"
class="animate-pulse inline-block text-transparent max-h-3 rounded-full mt-[-2px] align-middle bg-neutral-300 dark:bg-neutral-400"
title="likes">loading</span>
<span class="inline-block align-text-bottom">
Expand Down Expand Up @@ -1791,26 +1783,34 @@ <h2 class="mt-8 text-2xl font-extrabold mb-10">Related</h2>



<span style="margin-top:0.5rem" class="mr-2" onclick="window.open(&#34;/tags/arch/&#34;,'_self');">
<span style="margin-top:0.5rem" class="mr-2" onclick="window.open(&#34;/tags/pacman/&#34;,'_self');">
<span class="flex" style="cursor: pointer;">
<span class="rounded-md border border-primary-400 px-1 py-[1px] text-xs font-normal text-primary-700 dark:border-primary-600 dark:text-primary-400">
Arch
Pacman
</span>
</span>
</span>

<span style="margin-top:0.5rem" class="mr-2" onclick="window.open(&#34;/tags/archlinux/&#34;,'_self');">
<span style="margin-top:0.5rem" class="mr-2" onclick="window.open(&#34;/tags/aur/&#34;,'_self');">
<span class="flex" style="cursor: pointer;">
<span class="rounded-md border border-primary-400 px-1 py-[1px] text-xs font-normal text-primary-700 dark:border-primary-600 dark:text-primary-400">
ArchLinux
AUR
</span>
</span>
</span>

<span style="margin-top:0.5rem" class="mr-2" onclick="window.open(&#34;/tags/archiso/&#34;,'_self');">
<span style="margin-top:0.5rem" class="mr-2" onclick="window.open(&#34;/tags/arch/&#34;,'_self');">
<span class="flex" style="cursor: pointer;">
<span class="rounded-md border border-primary-400 px-1 py-[1px] text-xs font-normal text-primary-700 dark:border-primary-600 dark:text-primary-400">
ArchISO
Arch
</span>
</span>
</span>

<span style="margin-top:0.5rem" class="mr-2" onclick="window.open(&#34;/tags/guide/&#34;,'_self');">
<span class="flex" style="cursor: pointer;">
<span class="rounded-md border border-primary-400 px-1 py-[1px] text-xs font-normal text-primary-700 dark:border-primary-600 dark:text-primary-400">
Guide
</span>
</span>
</span>
Expand Down Expand Up @@ -1844,19 +1844,19 @@ <h2 class="mt-8 text-2xl font-extrabold mb-10">Related</h2>



<a href="/posts/arch-cosmic/" class="min-w-full">
<a href="/posts/build-archiso/" class="min-w-full">

<div class="min-h-full border border-neutral-200 dark:border-neutral-700 border-2 rounded overflow-hidden shadow-2xl relative">

<div class="w-full thumbnail_card_related nozoom" style="background-image:url(/posts/arch-cosmic/featured.webp);"></div>
<div class="w-full thumbnail_card_related nozoom" style="background-image:url(/posts/build-archiso/featured.webp);"></div>



<div class="px-6 py-4">


<div class="font-bold text-xl text-neutral-800 decoration-primary-500 hover:underline hover:underline-offset-2 dark:text-neutral"
href="/posts/arch-cosmic/">Cosmic Arch</div>
href="/posts/build-archiso/">Build a Fresh Arch ISO</div>


<div class="text-sm text-neutral-500 dark:text-neutral-400">
Expand Down Expand Up @@ -1901,7 +1901,7 @@ <h2 class="mt-8 text-2xl font-extrabold mb-10">Related</h2>
<div class="flex flex-row flex-wrap items-center">


<time datetime="2024-09-04T00:00:00&#43;00:00">4 September 2024</time><span class="px-2 text-primary-500">&middot;</span><span title="Reading time">5 mins</span><span class="px-2 text-primary-500">&middot;</span><span>
<time datetime="2024-09-05T00:00:00&#43;00:00">5 September 2024</time><span class="px-2 text-primary-500">&middot;</span><span title="Reading time">2 mins</span><span class="px-2 text-primary-500">&middot;</span><span>



Expand All @@ -1914,7 +1914,7 @@ <h2 class="mt-8 text-2xl font-extrabold mb-10">Related</h2>



<span id="views_posts/arch-cosmic/index.md" class="animate-pulse inline-block text-transparent max-h-3 rounded-full mt-[-2px] align-middle bg-neutral-300 dark:bg-neutral-400" title="views">loading</span>
<span id="views_posts/build-archiso/index.md" class="animate-pulse inline-block text-transparent max-h-3 rounded-full mt-[-2px] align-middle bg-neutral-300 dark:bg-neutral-400" title="views">loading</span>
<span class="inline-block align-text-bottom">

<span class="relative block icon">
Expand All @@ -1936,7 +1936,7 @@ <h2 class="mt-8 text-2xl font-extrabold mb-10">Related</h2>



<span id="likes_posts/arch-cosmic/index.md"
<span id="likes_posts/build-archiso/index.md"
class="animate-pulse inline-block text-transparent max-h-3 rounded-full mt-[-2px] align-middle bg-neutral-300 dark:bg-neutral-400"
title="likes">loading</span>
<span class="inline-block align-text-bottom">
Expand Down Expand Up @@ -1985,14 +1985,6 @@ <h2 class="mt-8 text-2xl font-extrabold mb-10">Related</h2>



<span style="margin-top:0.5rem" class="mr-2" onclick="window.open(&#34;/tags/cosmic/&#34;,'_self');">
<span class="flex" style="cursor: pointer;">
<span class="rounded-md border border-primary-400 px-1 py-[1px] text-xs font-normal text-primary-700 dark:border-primary-600 dark:text-primary-400">
Cosmic
</span>
</span>
</span>

<span style="margin-top:0.5rem" class="mr-2" onclick="window.open(&#34;/tags/arch/&#34;,'_self');">
<span class="flex" style="cursor: pointer;">
<span class="rounded-md border border-primary-400 px-1 py-[1px] text-xs font-normal text-primary-700 dark:border-primary-600 dark:text-primary-400">
Expand All @@ -2009,10 +2001,10 @@ <h2 class="mt-8 text-2xl font-extrabold mb-10">Related</h2>
</span>
</span>

<span style="margin-top:0.5rem" class="mr-2" onclick="window.open(&#34;/tags/archinstall/&#34;,'_self');">
<span style="margin-top:0.5rem" class="mr-2" onclick="window.open(&#34;/tags/archiso/&#34;,'_self');">
<span class="flex" style="cursor: pointer;">
<span class="rounded-md border border-primary-400 px-1 py-[1px] text-xs font-normal text-primary-700 dark:border-primary-600 dark:text-primary-400">
ArchInstall
ArchISO
</span>
</span>
</span>
Expand Down
Loading

0 comments on commit 6638069

Please sign in to comment.