Files
custom_flashinfer/docker/install/install_python_packages.sh
Yong Wu 8e204cf4a3 ci: Install mpi4py (#1149)
<!-- .github/pull_request_template.md -->

## 📌 Description

Install the python packages for CI docker: mpi4py, pynvml. They will be
used for the comm ops.

## 🔍 Related Issues

https://github.com/flashinfer-ai/flashinfer/pull/1145,
https://github.com/flashinfer-ai/flashinfer/pull/1134

## 🚀 Pull Request Checklist

Thank you for contributing to FlashInfer! Before we review your pull
request, please make sure the following items are complete.

###  Pre-commit Checks

- [x] I have installed `pre-commit` by running `pip install pre-commit`
(or used your preferred method).
- [x] I have installed the hooks with `pre-commit install`.
- [x] I have run the hooks manually with `pre-commit run --all-files`
and fixed any reported issues.

> If you are unsure about how to set up `pre-commit`, see [the
pre-commit documentation](https://pre-commit.com/).

## 🧪 Tests

- [ ] Tests have been added or updated as needed.
- [ ] All tests are passing (`unittest`, etc.).

## Reviewer Notes

<!-- Optional: anything you'd like reviewers to focus on, concerns, etc.
-->
2025-06-16 20:53:21 -07:00

24 lines
957 B
Bash

#!/bin/bash
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
set -e
set -u
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128
pip3 install ninja pytest numpy scipy build pynvml