@@ -105,7 +105,7 @@ jobs:
105105 path : " instructlab"
106106 # https://github.com/actions/checkout/issues/249
107107 fetch-depth : 0
108-
108+
109109 - name : Checkout instructlab/sdg
110110 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
111111 with :
@@ -125,26 +125,27 @@ jobs:
125125 - name : Install ilab
126126 working-directory : ./instructlab
127127 run : |
128- export CUDA_HOME="/usr/local/cuda"
129- export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64"
130- export PATH="$PATH:$CUDA_HOME/bin"
131- python3.11 -m venv --upgrade-deps venv
132- . venv/bin/activate
133- nvidia-smi
134- python3.11 -m pip cache remove llama_cpp_python
128+ PYTHON=python3.11 ./scripts/install-ilab-with-cuda.sh
135129
136- CMAKE_ARGS="-DGGML_CUDA=on" python3.11 -m pip install -v . -c constraints-dev.txt
137-
138- # https://github.com/instructlab/instructlab/issues/1821
139- # install with Torch and build dependencies installed
140- python3.11 -m pip install -v packaging wheel setuptools-scm
141- python3.11 -m pip install -v .[cuda] -r requirements-vllm-cuda.txt -c constraints-dev.txt
142-
143130 - name : Update instructlab-sdg library
144131 working-directory : ./sdg
145132 run : |
146133 . ../instructlab/venv/bin/activate
147- pip install -v .
134+ # Patch out our own pin from the ilab repo constraints file
135+ ilab_constraints=../instructlab/constraints-dev.txt
136+ sed -i '/instructlab-sdg==/d' $ilab_constraints
137+ # Since we reuse the virtual environment prepared using ilab
138+ # constraints, we should stick to the same constraints when
139+ # installing latest sdg.
140+ #
141+ # FIX: this is not ideal; a proper fix would require decoupling the
142+ # two repos in CI: either by removing the job completely and relying
143+ # on "sdk" (no ilab) test runs; or by preparing a separate
144+ # constraints file that would consider both the requirements files
145+ # for the sdg library AND for the ilab - so that they are
146+ # consistent.
147+ pip_install="pip install -c $ilab_constraints"
148+ $pip_install .
148149
149150 - name : Check disk before tests
150151 run : |
0 commit comments