Conversation
abb4b2e to
b04bad6
Compare
6595bad to
188f773
Compare
3018276 to
28c1410
Compare
ba90eb8 to
147c7fd
Compare
|
|
||
| # Install PyTorch with appropriate CUDA support | ||
| if [ "${{ matrix.device }}" == "gpu" ]; then | ||
| pip install torch>=2.0.0+cu118 --extra-index-url https://download.pytorch.org/whl/cu118 |
There was a problem hiding this comment.
on this machine 'Nvidia -smi' already works, you just need to enable Concrete GPU:
- name: Install GPU concrete-python
id: install-gpu-concrete-python
run: |
poetry run pip show concrete-python || echo "concrete-python not installed"
CONCRETE_WITH_VERSION=$(poetry run pip freeze | grep concrete-python)
poetry run pip uninstall -y concrete-python
poetry run pip install --extra-index-url https://pypi.zama.ai/gpu $CONCRETE_WITH_VERSION
poetry run pip show concrete-python || echo "concrete-python not installed"
| - name: Set up Python | ||
| uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 | ||
| with: | ||
| python-version: "3.10" |
There was a problem hiding this comment.
if we follow the logic of our CI, you should pick p3.12
|
|
||
| # Install any additional requirements from the project | ||
| if [ -f "requirements.txt" ]; then | ||
| pip install -r requirements.txt |
| fi | ||
|
|
||
| # Install accelerate BEFORE other dependencies to ensure correct version | ||
| pip install 'accelerate>=1.1.0' |
There was a problem hiding this comment.
why you don't gather all the package dependancies in one place ?
| info["swap"] = get_size(psutil.swap_memory().total) | ||
|
|
||
| # Check for GPU information | ||
| if torch.cuda.is_available(): |
There was a problem hiding this comment.
if the model runs on GPU, you should check concrete gpu as well no?
| if force_cpu or device_type == "cpu": | ||
| return "cpu" | ||
|
|
||
| if device_type == "gpu": |
There was a problem hiding this comment.
add a check for concrete gpu ?
Coverage passed ✅Coverage details
|
|
kcelia
left a comment
There was a problem hiding this comment.
In my opinion, it's better to use the pre-installed cuda of the image and just install concrete gpu.
No description provided.