Skip to content

ci: install Miniconda under the runner's temp dir on self-hosted AMD runners - #3

Merged
0xShug0 merged 1 commit into
0xShug0:hip-testfrom
dhekimian:ci/miniconda-runner-temp
Nov 4, 2026
Merged

0xShug0 merged 1 commit into
0xShug0:hip-testfrom
dhekimian:ci/miniconda-runner-temp

Conversation

@dhekimian

@dhekimian dhekimian commented Nov 4, 2026 •

Copy link
Copy Markdown

Hi! I run the DevLab Strix Halo runners (devlab-dispatch) your HIP jobs use.

On those machines the home directory is in RAM: the root filesystem is a tmpfs overlay, and the same memory is the iGPU's. setup-miniconda installs to ~/miniconda3 and caches packages in ~/conda_pkgs_dir by default. On 2026-11-03 that was 4.2–4.4 GB of RAM on each of 3 hosts, left behind after your jobs finished.

This PR points both at ${{ runner.temp }}. That's on the machine's scratch disk and is cleaned after every job, so nothing builds up in RAM. The cost is a fresh Miniconda install per job, about a minute. If you'd rather keep a warm install between jobs, tell us and we'll provide a persistent location on scratch for it.

No other behavior changes: same Python version, environment and activation.

setup-miniconda defaults to ~/miniconda3 and ~/conda_pkgs_dir. On the
DevLab Strix Halo runners the home directory is RAM and outlives the job;
runner.temp is on scratch and is cleaned after it.
@0xShug0

0xShug0 commented Nov 4, 2026

Copy link
Copy Markdown
Owner

@dhekimian Thanks for the PR, and for providing the DevLab runners! They've been a huge help. With access to them, I've been able to develop and test a new GGML HIP kernel implementation that improves generation speed by roughly 10–30% across several models, with larger gains in some cases.

I'll also apply this change to the main audio.cpp HIP release workflow, preserving your authorship.

@0xShug0
0xShug0 merged commit 4e6be69 into 0xShug0:hip-test Nov 4, 2026
0xShug0 pushed a commit to 0xShug0/audio.cpp that referenced this pull request Nov 4, 2026
Adapt the RAM-backed home directory fix from 0xShug0/audio.cpp-server-frontends#3 to the pip-based HIP release workflow.
0xShug0 added a commit to 0xShug0/audio.cpp that referenced this pull request Nov 4, 2026
Adapt the RAM-backed home directory fix from 0xShug0/audio.cpp-server-frontends#3 to the pip-based HIP release workflow.

Co-authored-by: David Hekimian <[email protected]>
dhekimian added a commit to dhekimian/audio.cpp-server-frontends that referenced this pull request Nov 4, 2026
setup-miniconda rewrites the runner account's ~/.profile (conda init,
set -eo pipefail, conda activate) as well as the PowerShell profile, so
an install under runner.temp leaves later login shells pointing at a
deleted conda on Linux too.
0xShug0 added a commit that referenced this pull request Nov 4, 2026
ci: revert #3 (Miniconda back to its default location)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants