linux64
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux64 [2026/07/18 11:25] – [ollama in podman for ai] bengt | linux64 [2026/07/18 21:37] (current) – [ollama in podman for ai] bengt | ||
|---|---|---|---|
| Line 866: | Line 866: | ||
| cd $HOME | cd $HOME | ||
| loginctl enable-linger ollama | loginctl enable-linger ollama | ||
| - | podman run -d --rm -v / | + | podman run -d --rm -v / |
| $ chmod u+x start.sh | $ chmod u+x start.sh | ||
| Then setup a start.sh-script containing the startup command line and maybe start this using " | Then setup a start.sh-script containing the startup command line and maybe start this using " | ||
| Line 883: | Line 883: | ||
| You can add the ollama integration to home assistant. On issues check your firewall config. Be sure to have " | You can add the ollama integration to home assistant. On issues check your firewall config. Be sure to have " | ||
| - | After buying a 5060 16GB ti for AI to have next to my 1660 ti super used for the console I needed to switch to nvidia drivers and configure podman: | + | After buying a 5060 16GB ti for AI to have next to my 1660 ti super used for the console I needed to switch to nvidia drivers and configure podman. I already have rpmfusion-nonfree repo enabled so I just did this: |
| - | # dnf config-manager --set-enabled rpmfusion-nonfree-nvidia-driver | + | # dnf update # To avoid issues below. Reboot if new kernel. |
| # dnf install -y akmod-nvidia xorg-x11-drv-nvidia-cuda | # dnf install -y akmod-nvidia xorg-x11-drv-nvidia-cuda | ||
| - | Wait for akmod to complete before rebooting. | + | |
| + | | ||
| + | Note that I lost audio after this for the new kernel that got installed at the same time. Turns out that those modules were not installed as they were not needed to compile the nvidia driver. Update and reboot before or install lacking kernel-modules and kernel-modules-extra. This should also work "dnf install kernel-$(uname | ||
| + | Configure podman: | ||
| + | # dnf install nvidia-container-toolkit | ||
| + | # nvidia-ctk cdi generate --output=/ | ||
| + | # nvidia-ctk cdi list | ||
| + | # podman run --rm --security-opt label=disable --device nvidia.com/ | ||
| + | # vi start.sh | ||
| + | Add " | ||
| + | # nvidia-smi # Check ram usage for gpus. Watch out for too large context windows spilling over as it will spread not prioritizing the 5060 ti. | ||
| + | If you run into context size problems (it got capped at 4096) you can add "-e OLLAMA_CONTEXT_LENGTH=32768" | ||
| ===== Software ===== | ===== Software ===== | ||
linux64.1784373939.txt.gz · Last modified: by bengt