Portable LLM apps in Docker [video]
youtube.com
youtube.com
Docker is supporting the WebGPU API for container apps. It will allow any underlying GPU or accelerator hardware to be accessed through WebGPU. That means container apps just need to write to the WebGPU API and they will automatically become portable across all GPUs supported by Docker. However, asking developers to rewrite existing LLM apps, which use the CUDA or Metal or other GPU APIs, to WebGPU is a challenge.
LlamaEdge provides an ecosystem of portable AI / LLM apps and components that can run on multiple inference backends including the WebGPU. It supports any programming language that can be compiled into Wasm, such as Rust. Furthermore, LlamaEdge apps are lightweight and binary portable across different CPUs and OSes, making it an ideal runtime to embed into container images.