Show HN: Extra-Platforms, Python Library to Detect OS, Arch, Shell, CI, AI
1 min readCross-platform compatibility remains one of the trickiest aspects of deploying LLMs locally. Operating system, CPU architecture, and available accelerators vary widely across edge devices, laptops, and self-hosted servers. Extra-Platforms provides a lightweight, well-maintained solution for reliably detecting these environmental variables in Python.
For local LLM practitioners, this library simplifies the common task of determining optimal runtime configurations. Whether you're building deployment scripts that need to choose between CPU, GPU, or NPU inference, detect available SIMD instruction sets, or adapt to container environments, Extra-Platforms handles the platform detection logic cleanly. This is especially useful for tools that wrap llama.cpp, Ollama, or other inference engines that benefit from architecture-aware optimizations.
Having reliable platform detection is foundational for creating robust local inference tools that work seamlessly across heterogeneous hardware—from ARM-based edge devices to x86 servers with various accelerator configurations.
Source: Hacker News · Relevance: 6/10