# build stage FROM registry.fedoraproject.org/fedora:43 AS builder # Toggle llama.cpp PR 15405 (RPC perf for large models) ARG APPLY_LLAMA_PR_15405=1 # rocm 6.4.3 repo RUN <<'EOF' tee /etc/yum.repos.d/rocm.repo < /etc/ld.so.conf.d/local.conf \ && echo "/usr/local/lib64" >> /etc/ld.so.conf.d/local.conf \ && ldconfig \ && cp -n /usr/local/lib/libllama*.so* /usr/lib64/ 2>/dev/null || true \ && ldconfig # helper COPY gguf-vram-estimator.py /usr/local/bin/gguf-vram-estimator.py RUN chmod +x /usr/local/bin/gguf-vram-estimator.py # profile RUN printf '%s\n' \ 'export ROCBLAS_USE_HIPBLASLT=1' \ > /etc/profile.d/rocm.sh && chmod +x /etc/profile.d/rocm.sh \ && echo 'source /etc/profile.d/rocm.sh' >> /etc/bashrc # shell CMD ["/bin/bash"]