Your config (Ryzen 5 3400G + Vega 11 + 16 GB) changes the recommendation a lot, so here is the honest version rather than the generic one.
The Vega 11 problem is gfx902, not the 2 GB. Vega 11 reports gfx902 and ROCm dropped official Vega APU support after ROCm 5.x. The bigger issue is that on an APU there is no dedicated VRAM — the “2 GB” is a carve-out from the same 16 GB your CPU uses, so anything you put on the iGPU competes with the OS. That makes ROCm+PyTorch on this box a dead end for anything beyond experiments.
What actually works well: CPU inference with a small quantized model. A 3400G has 4 cores / 8 threads and dual-channel DDR4. That is roughly 15-25 tok/s on a 3B Q4_K_M model, which is genuinely usable for coding help and Q&A. Set it up with llama.cpp:
# grab a prebuilt llama.cpp release, then:
.\llama-cli.exe -m Qwen2.5-Coder-3B-Instruct-Q4_K_M.gguf `
-t 8 -c 4096 -ngl 0 -p "Write a Python function that merges two sorted lists"
Key flags for your box: -t 8 uses all threads, -ngl 0 keeps everything on CPU (Vulkan offload on Vega 11 usually costs more in transfer than it saves), and -c 4096 avoids blowing RAM on a long context. With 16 GB total, stay at or below a 4B Q4 model — a 7B Q4 needs ~4.5 GB just for weights and will start swapping once the KV-cache grows.
Try Vulkan before you rule the iGPU out. llama.cpp’s Vulkan backend does work on Vega and it is worth one measurement, because on short prompts it can beat CPU:
.\llama-bench.exe -m model.gguf -ngl 0 -p 512 -n 128 # CPU baseline
.\llama-bench.exe -m model.gguf -ngl 99 -p 512 -n 128 # Vulkan offload
Compare the tg128 number (token generation). On APUs with shared memory the offload frequently loses on generation and wins on prompt processing — in that case the good configuration is offloading only the first N layers, or just using CPU.
Two BIOS-level wins that cost nothing. Enable XMP/DOCP so your RAM runs at its rated speed (APU inference is memory-bandwidth bound, and JEDEC 2133 vs 3200 is close to a 30% swing in tok/s), and in BIOS raise the UMA frame buffer / iGPU memory allocation to 2 GB only if you decide to use Vulkan — otherwise leave it at the minimum and give the RAM back to the CPU.
Model picks for 16 GB. Qwen2.5-Coder-3B-Instruct Q4_K_M for code, Qwen2.5-3B-Instruct Q4_K_M for general chat, and Phi-3.5-mini Q4_K_M if you want something a bit stronger at reasoning. All three fit with room for a 4k context. Skip 7B and skip anything Q8 — the memory math does not close on 16 GB shared.
If you later add a discrete card, everything above transfers: same GGUF files, just raise -ngl until VRAM is nearly full.