feat: native multi-backend inference support (Metal/ROCm/CUDA/CPU) + GitHub Actions build pipeline#1
Draft
feat: native multi-backend inference support (Metal/ROCm/CUDA/CPU) + GitHub Actions build pipeline#1
Conversation
Agent-Logs-Url: https://github.com/audiohacking/ATLAS/sessions/2e0fa3f5-ba39-4576-ba5c-df25a5b193be Co-authored-by: lmangani <1423657+lmangani@users.noreply.github.com>
Agent-Logs-Url: https://github.com/audiohacking/ATLAS/sessions/2e0fa3f5-ba39-4576-ba5c-df25a5b193be Co-authored-by: lmangani <1423657+lmangani@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
lmangani
April 7, 2026 08:18
View session
Removed CPU backend configuration from build-inference.yml.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Removes hard NVIDIA/CUDA dependencies and adds native multi-backend support. All builds are now owned by GitHub Actions.
Motivation
params_dft.embedding = false) existed to support speculative decoding + embeddings in the same server, but speculative decoding is not supported for Qwen3.5 anyway — the patch served a dormant component.DGGML_CUDA=ON, andDCMAKE_CUDA_ARCHITECTURES. Everything else (proxy, sandbox, Lens scorer) is plain HTTP with no GPU awareness.Changes
Inference Dockerfiles (
inference/Dockerfile,inference/Dockerfile.v31)sed -i params_dft.embedding = false)GGML_BACKENDbuild arg (cuda/rocm/cpu)CUDA_ARCHITECTURESbuild arg (Ada/Hopper/Blackwell, narrowable per-GPU)rockylinux9→ubuntu22.04for consistency across backendsGitHub Actions (
.github/workflows/build-inference.yml) — newbuild-linux (cuda)ubuntu-latest…/llama-server:*-cudabuild-linux (rocm)ubuntu-latest…/llama-server:*-rocmbuild-linux (cpu)ubuntu-latest…/llama-server:*-cpubuild-metalmacos-latestMetal must run on
macos-latestbecauseMetal.frameworkandMetalPerformanceShadersare macOS-only and are unavailable inside any Linux Docker container.docker-compose
/dev/nvidia*device mounts +NVIDIA_VISIBLE_DEVICESenv vars with the standarddeploy.resources.reservations.devicesspec (works with the nvidia container runtime)GGML_BACKENDandCUDA_ARCHITECTURESbuild argsdocker-compose.rocm.ymloverride for AMD ROCm (/dev/kfd,/dev/dri,group_add: [video, render])Entrypoint scripts
entrypoint-v3.1-9b.sh,entrypoint-mtp.sh,entrypoint-v3-specdec.sh: CUDA-specific env vars (GGML_CUDA_NO_PINNED,CUDA_DEVICE_MAX_CONNECTIONS,CUDA_MODULE_LOADING) now guarded behindcommand -v nvidia-smiso they are silently skipped on ROCm/CPUBenchmark (
benchmark/analysis/hardware_info.py)get_gpu_info()now tries nvidia-smi → rocm-smi → system_profiler in orderget_cuda_version()now also detects ROCm version (hipconfig) and Metal/macOS versionUsage