Latest Posts
20261204
I've recently been playing with locally run LLMs especially the larger LLMs that require 50GB+ of vram. This class of model is substantially larger than the 8-24GB vram that is available on most consumer gpus and therefore required specialised hardware.
The hardware I am running is the framework desktop that came with an AMD ryzen AI MAX+ 395 128GB version. THe memory of this device is unified and partitioned between vram and system memory. I chose to allocate 96GB to VRAM and 32GB to the operating system. While it is possible to push this further i have not had to do this yet with the models I run.
For the operating system I am running Arch Linux. It's running my usual arch setup that may make a nice post perhaps i'll do that next. THe configuration between the hardware and the OS is such that the VRAM allocation is set to minimum in the bios 512MB and the kernel is configured to allocate more memory to the GPU later. THis is how linux is able to bypass the usual 96GB limit that windows would have as it can't reallocate memory to the GPU and you have to rely on the BIOS split that maxes out at 96GB. Anyway the following cmdline parameters
ttm.pages_limit=25165824 ttm.page_pool_size=25165824will perform the 96GB split using kernel modules as opposed to the bios.
The software hosting the model is llama-cpp using the ggml-hip backend
pacman -S llama-cpp ggml-hip. Vulcan and other GPU backends for ggml are available and may be needed in certain setups.
As for the model I am running unsloth/Qwen3.8-Flash-Next-GGUF with multi token prediction (MTP). MTP is nice as it will increase the overall performance of the infrance but it comes at the cost of disabling vision capabilities in the model. The way I have chosen to run this model is to manually download the files required and instantiate the model using the files on disk as opposed to using a huggingface connector that although is easier to get started I have had issues using this command within an airgap. We still need to download the actual files but i want to have a look at the command i'm running first so we can work backwards. I use a systemd override created with `systemctl edit llama-server` to modify and override the package managers systemd unit for llama-server. Here i want to override the command used to start llama-server so that we can inject our own models and config.
[Service]
Restart=Always
ExecStart=
ExecStart=/usr/bin/llama-server \
-m /usr/share/llama/models/Qwen3.8-Flash-Next-GGUF/Qwen3.8-Flash-Next-UD-Q4_K_XL-00001-of-00004.gguf \
-md /usr/share/llama/models/Qwen3.8-Flash-Next-GGUF/mtp-Qwen3.8-Flash-Next-Q8_0.gguf \
--spec-type draft-mtp \
--spec-draft-n-max 3 \
--host 127.0.0.1 \
--port 9931 \
--parallel 1 \
-c 65536 \
-lv 4 \
-ngl 99 \
-ngld 99 \
--flash-attn on \
-ctk q8_0 \
-ctv q8_0 \
--override-tensor ".*engram.*=CPU,.*ngram.*=CPU" \
--api-key snip
first -m is referencing the first of 4 model files in the UD-Q4_K_XL variant so we will need those files sitting along side each other. We also reference mtp-Qwen3.8-Flash-Next-Q8_0.gguf. --override-tensor ".*engram.*=CPU,.*ngram.*=CPU" is also important as it will offload the engram on to system ram and cpu. Without this llama-server will attempt to run the engram in vram that would exhaust the available memory. The remaining options are tuning settings that can be explained through the documentation.
With everything in place it's time to start llama-server with `systemctl enable --now llama-server`. Navigate to http://localhost:9931 for the web interface running qwen3.8. amdgpu_top says i am using about 84GB of 96GB available. The last remaining task here is to increase the context window to 256k. Hopefully that will fit in the available headroom else I will need to allocate a bit more memory to the GPU to make it fit.
While i was writing up this lab i noticed that qwen 4 has been released. Initial impressions are that it may be easier to run than 3.8 and may even run faster due to the MOE A3B variant i'll have to have a go.
.,; oOo oOo oOo oOo oOo oOo ;,.
20260813
I am a fan of qrcodes despite their obvious flaws they are very convenient at transfering small amounts of data. Which conveniently is just enough to hold a link reliably. Perhapes you'd like to send a message to a friend via the internet but don't want it persisting forever on sombodies server. The first piece of qrcode goodness i have is One Time Secrets (OTS) by luzifer. This app does what it says on the tin and allows the upload of data that can be sent to someone else via the service and self destructs without a trace. I find this quite handy for transfering files between my computer and my mobile phone without having to plug it in. Check it out here repo mirror source
I've added some qrcode generators i found. I'm serving an instance from this website in case the upstream repos get pulled. The first is qr-image by HughChen. This does an awesome job at overlaying a qrcode of a provided image for some great customisation options. It can be found here (mirror) (source). The second is dithered-qr-codes by Andrew Taylor. This generator is mind blowing and creates a dithered represtation of an uploaded images in to a qrcode. It's so good i can't even tell that it is a qrcode if it wasn't for the markers. It can be found here (mirror) (source)
While on the subject of qrcodes, i also found a qrcode truetype font that uses unicode magic to create valid qrcodes from text. Check it out at https://github.com/jimparis/qr-font or download the fonts directly qrfont-1L.ttf qrfont-2L.ttf qrfont-3L.ttf (source)
.,; oOo oOo oOo oOo oOo oOo ;,.
20260224
I guess this is the re-re-re-re-re-release of this website. I keep oscilating between CMS' because they irk me in one way or another. Back to plain old HTML it is and put up for the world to see how terrible I am at it. Perhaps this is the time it sticks. But as I always say "I don't do frontend"
.,; oOo oOo oOo oOo oOo oOo ;,.