Hardware:
Amd Ryzen 4600g
Proxmox verison:
pve-manager/8.4.13/5b08ebc2823dd9cb (running kernel: 6.8.12-15-pve)
Ich versuche bei einem Ollama LXC container mit dem Community script installiert:
Das problem ist das es immer via CPU betrieben wird spricht.
gibt 100% CPU bei Prozessor zurück was man in der leistung auch gut merkt.
PS: Ich habe alle Tutorials durchgesucht was ich gefunden habe aber kaum eines beschreibt das ganze mit einer AMD APU ich hoffe ich übersehe ihr nur was kleines bin auch kein profi in sachen Linux zumindest das vorgehen hier gibt mir den eindruck :/
Übersehe ich hier etwas das ich an pve node noch machen muss damit es im Container geht?
LXC config:
Wenn ich RocM lt. Rocm install vorgehe kommt beim prüfen von
was ich als kernproblem vermute.
Vainfo:
Devices:
Amd Ryzen 4600g
Proxmox verison:
pve-manager/8.4.13/5b08ebc2823dd9cb (running kernel: 6.8.12-15-pve)
Ich versuche bei einem Ollama LXC container mit dem Community script installiert:
bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/ollama.sh)"
Das problem ist das es immer via CPU betrieben wird spricht.
ollama ps
gibt 100% CPU bei Prozessor zurück was man in der leistung auch gut merkt.
PS: Ich habe alle Tutorials durchgesucht was ich gefunden habe aber kaum eines beschreibt das ganze mit einer AMD APU ich hoffe ich übersehe ihr nur was kleines bin auch kein profi in sachen Linux zumindest das vorgehen hier gibt mir den eindruck :/
Übersehe ich hier etwas das ich an pve node noch machen muss damit es im Container geht?
LXC config:
Code:
arch: amd64
cores: 10
features: nesting=1,fuse=1
hostname: ollama
memory: 8192
net0: name=eth0,bridge=vmbr0,gw=192.168.178.1,hwaddr=BC:24:11:75:F5:98,ip=192.168.178.216/24,type=veth
onboot: 1
ostype: ubuntu
parent: amdgppuinstallnodkms
rootfs: local-zfs:subvol-116-disk-0,size=65G
swap: 512
tags: ai;community-script
lxc.cgroup2.devices.allow: a
lxc.cap.drop:
lxc.cgroup2.devices.allow: c 188:* rwm
lxc.cgroup2.devices.allow: c 189:* rwm
lxc.mount.entry: /dev/serial/by-id dev/serial/by-id none bind,optional,create=dir
lxc.mount.entry: /dev/ttyUSB0 dev/ttyUSB0 none bind,optional,create=file
lxc.mount.entry: /dev/ttyUSB1 dev/ttyUSB1 none bind,optional,create=file
lxc.mount.entry: /dev/ttyACM0 dev/ttyACM0 none bind,optional,create=file
lxc.mount.entry: /dev/ttyACM1 dev/ttyACM1 none bind,optional,create=file
lxc.cgroup2.devices.allow: c 226:128 rwm
lxc.mount.entry: /dev/dri/renderD128 dev/dri/renderD128 none bind,optional,create=file
lxc.cgroup2.devices.allow: c 29:0 rwm
lxc.mount.entry: /dev/fb0 dev/fb0 none bind,optional,create=file
lxc.mount.entry: /dev/dri dev/dri none bind,optional,create=dir
Wenn ich RocM lt. Rocm install vorgehe kommt beim prüfen von
rocminfo:
Code:
ROCk module is loaded
Unable to open /dev/kfd read-write: No such file or directory
root is member of video group
was ich als kernproblem vermute.
Vainfo:
Code:
root@ollama:~# vainfo
Trying display: wayland
Trying display: x11
error: can't connect to X server!
Trying display: drm
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_20
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.22 (libva 2.22.0)
vainfo: Driver version: Mesa Gallium driver 25.0.7-0ubuntu0.24.04.2 for AMD Radeon Graphics (radeonsi, renoir, ACO, DRM 3.57, 6.8.12-15-pve)
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileHEVCMain : VAEntrypointVLD
VAProfileHEVCMain : VAEntrypointEncSlice
VAProfileHEVCMain10 : VAEntrypointVLD
VAProfileHEVCMain10 : VAEntrypointEncSlice
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileVP9Profile0 : VAEntrypointVLD
VAProfileVP9Profile2 : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc
Devices:
Code:
root@ollama:~# ls -l /dev/dri/
total 0
drwxr-xr-x 2 root root 80 Sep 18 18:36 by-path
crw-rw---- 1 root video 226, 1 Sep 18 18:36 card1
crw-rw---- 1 root _ssh 226, 128 Sep 18 18:36 renderD128