Check out used tiny/mini/micro desktops on eBay. Loads of info here: servethehome.com/introducing-project-tinyminimicr…

Only downside is going to be no GPU for the AI workload. Maybe some of the later AMD APUs could cut it. If not, all three major manufacturers have SFF variants that are pretty much the same hardware in a little bigger case. Those will accept smaller off the shelf GPUs.

Introducing Project TinyMiniMicro Home Lab Revolution

STH Project TinyMiniMicro is set to revolutionize the home lab segment with clusters of high-quality, quiet, low power, and inexpensive nodes

ServeTheHome