Skip to content

Commit

Permalink
Merge pull request #96 from AlexMontgomerie/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
Yu-Zhewen authored Nov 7, 2024
2 parents 8554ac1 + 29a0b9a commit 8bf2bd2
Show file tree
Hide file tree
Showing 201 changed files with 2,320 additions and 4,134 deletions.
48 changes: 34 additions & 14 deletions .github/workflows/integration-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Continuous Integration

on:
push:
branches: [ master ]
branches: [ master, dev ]
pull_request:
branches: [ master ]
branches: [ master, dev ]

env:
CARGO_TERM_COLOR: always
Expand All @@ -15,20 +15,40 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
- name: Checkout optimiser repo
uses: actions/checkout@v4

- name: Fetch model repo
run: |
BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}
URL=https://github.com/AlexMontgomerie/fpgaconvnet-model.git
if [ -z $(git ls-remote --heads $URL $BRANCH) ]; then
echo "Warning! branch $BRANCH does not exist. use dev instead"
BRANCH="dev"
else
echo "checkout branch $BRANCH sucessfully"
fi
git clone --branch $BRANCH $URL fpgaconvnet-model
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.7.x'
python-version: '3.10'

- name: Install dependencies
run: |
sudo apt-get install protobuf-compiler libprotoc-dev
python setup.py install
- name: Run Tests
sudo apt-get install protobuf-compiler libprotoc-dev graphviz
python -m pip install --upgrade pip
# for some unknown reason, these packages need special care
python -m pip install wheel
python -m pip install nvidia-pyindex
python -m pip install onnx-graphsurgeon
python -m pip install .
python -m pip install ./fpgaconvnet-model
- name: Run Optimisation Tests
run: |
python -m coverage run --source=fpgaconvnet_optimiser -m unittest discover tests/
# - name: Upload Coverage to Codecov
# uses: codecov/codecov-action@v1
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
bash tests/run_models.sh
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ python -m fpgaconvnet.optimiser.latency --name c3d \
```
The same files are generated as before in this case.


### Running WandB Sweeps
To run a sweep on wandb, you can use the following command:
```
python -m fpgaconvnet.optimiser.sweep_wandb -n unet -m examples/models/unet.onnx -p examples/platforms/u200.toml -o outputs/unet/throughput/u200 -b 1 --objective throughput --optimiser greedy_partition --optimiser_config_path examples/optimisers/single_partition_throughput.toml --enable-wandb --sweep-wandb
```
---

Feel free to post an issue if you have any questions or problems!
37 changes: 0 additions & 37 deletions examples/greedy_partition_latency.yml

This file was deleted.

43 changes: 0 additions & 43 deletions examples/greedy_partition_throughput.yml

This file was deleted.

36 changes: 0 additions & 36 deletions examples/no_partitions.yml

This file was deleted.

36 changes: 0 additions & 36 deletions examples/optimiser_example.yml

This file was deleted.

Loading

0 comments on commit 8bf2bd2

Please sign in to comment.