Skip to content

Commit 72a8456

Browse files
PabloCarmonamaljoras-sonycoreylammiejubuecheanchen25
authored
Rc 1.1.0 (#748)
* Fix chopper bug (#732) * fix: debug mode, chopper trans bug, memory issue, maximizer trans * fix memeory error with valgrind * changelog * fix UMH test * CUDA arch Signed-off-by: Pablo Carmona Gonzalez <[email protected]> * Add files via upload (#739) Signed-off-by: PabloCarmona <[email protected]> Signed-off-by: Pablo Carmona Gonzalez <[email protected]> * update notebooks wheel to 1.0.0 gpu enabled (#741) * update notebooks wheel to 1.0.0 gpu enabled Signed-off-by: PabloCarmona <[email protected]> * update analog fusion notebook to use cuda Signed-off-by: PabloCarmona <[email protected]> * add ipywidgets top lenet5 notebook Signed-off-by: PabloCarmona <[email protected]> * update and run notebooks Signed-off-by: PabloCarmona <[email protected]> --------- Signed-off-by: PabloCarmona <[email protected]> Signed-off-by: Pablo Carmona Gonzalez <[email protected]> * change online demo link to proper one (#743) Signed-off-by: Pablo <[email protected]> Signed-off-by: PabloCarmona <[email protected]> Signed-off-by: Pablo Carmona Gonzalez <[email protected]> * initial rc for v1.1.0 Signed-off-by: PabloCarmona <[email protected]> Signed-off-by: Pablo Carmona Gonzalez <[email protected]> * remove release-build.yaml to change to new and stablish build process (#744) Signed-off-by: Pablo <[email protected]> Signed-off-by: PabloCarmona <[email protected]> Signed-off-by: Pablo Carmona Gonzalez <[email protected]> * Extensions fix (#745) * modify CMakeLists to link properly extensions_ops and cuda together Signed-off-by: PabloCarmona <[email protected]> * remove strict flag to solve Py reference errors Signed-off-by: PabloCarmona <[email protected]> --------- Signed-off-by: PabloCarmona <[email protected]> Signed-off-by: Pablo Carmona Gonzalez <[email protected]> * fix matplotlib install for Python 3.10 Signed-off-by: PabloCarmona <[email protected]> Signed-off-by: Pablo Carmona Gonzalez <[email protected]> * fix matplotlib install for Python 3.10 Signed-off-by: PabloCarmona <[email protected]> Signed-off-by: Pablo Carmona Gonzalez <[email protected]> * [fix] for #627 Signed-off-by: Julian Buechel <[email protected]> Signed-off-by: PabloCarmona <[email protected]> Signed-off-by: Pablo Carmona Gonzalez <[email protected]> * [deprecation] deprecate convert_to_analog_mapped Signed-off-by: Julian Buechel <[email protected]> Signed-off-by: PabloCarmona <[email protected]> Signed-off-by: Pablo Carmona Gonzalez <[email protected]> * changelog for convert_to_analog_mapped Signed-off-by: Julian Buechel <[email protected]> Signed-off-by: PabloCarmona <[email protected]> Signed-off-by: Pablo Carmona Gonzalez <[email protected]> * Create build-wheels.yml (#738) * Create build-wheels.yml Signed-off-by: PabloCarmona <[email protected]> * Update build-wheels.yml Signed-off-by: PabloCarmona <[email protected]> * Update build-wheels.yml Signed-off-by: PabloCarmona <[email protected]> * Update build-wheels.yml Signed-off-by: PabloCarmona <[email protected]> * Update build-wheels.yml Signed-off-by: PabloCarmona <[email protected]> * Update build-wheels.yml Signed-off-by: PabloCarmona <[email protected]> * Update build-wheels.yml Signed-off-by: PabloCarmona <[email protected]> * add build for cuda Signed-off-by: PabloCarmona <[email protected]> * remove blas install Signed-off-by: PabloCarmona <[email protected]> * change torch version Signed-off-by: PabloCarmona <[email protected]> * change torch version Signed-off-by: PabloCarmona <[email protected]> * remove torch version for cpu and add openblas-devel for gpu Signed-off-by: PabloCarmona <[email protected]> * update before all to match image repo Signed-off-by: PabloCarmona <[email protected]> * fix before all command Signed-off-by: PabloCarmona <[email protected]> * install only blas and gcc Signed-off-by: PabloCarmona <[email protected]> * remove sudo Signed-off-by: PabloCarmona <[email protected]> * update before all to setup cuda env Signed-off-by: PabloCarmona <[email protected]> * change to one line Signed-off-by: PabloCarmona <[email protected]> * modify and add more setup and clean up for optimized space Signed-off-by: PabloCarmona <[email protected]> * remove exports Signed-off-by: PabloCarmona <[email protected]> * add version specifier and clean up rpm file Signed-off-by: PabloCarmona <[email protected]> * remove cuda workflow and fixed latest torch version for cpu on tag push Signed-off-by: PabloCarmona <[email protected]> * Extensions fix (#745) * modify CMakeLists to link properly extensions_ops and cuda together Signed-off-by: PabloCarmona <[email protected]> * remove strict flag to solve Py reference errors Signed-off-by: PabloCarmona <[email protected]> --------- Signed-off-by: PabloCarmona <[email protected]> * add matrix of python versions Signed-off-by: PabloCarmona <[email protected]> * fix CI command Signed-off-by: PabloCarmona <[email protected]> * fix CIBW_BUILD env Signed-off-by: PabloCarmona <[email protected]> * add cibw matrix Signed-off-by: PabloCarmona <[email protected]> * fix only python 3.10 3.11 and 3.12 Signed-off-by: PabloCarmona <[email protected]> * removed fixed version for pytorch Signed-off-by: PabloCarmona <[email protected]> * remove matrix Signed-off-by: PabloCarmona <[email protected]> * remove matrix Signed-off-by: PabloCarmona <[email protected]> * add cleanup on before_build Signed-off-by: PabloCarmona <[email protected]> * split versions on jobs Signed-off-by: PabloCarmona <[email protected]> * change name of jobs Signed-off-by: PabloCarmona <[email protected]> * fix job names for build and update test and lint Signed-off-by: PabloCarmona <[email protected]> * update cibw linux image Signed-off-by: PabloCarmona <[email protected]> * add trigger to test build Signed-off-by: PabloCarmona <[email protected]> * change name for wheels artifact Signed-off-by: PabloCarmona <[email protected]> * revert to tag push Signed-off-by: PabloCarmona <[email protected]> --------- Signed-off-by: PabloCarmona <[email protected]> Co-authored-by: Pablo Carmona Gonzalez <[email protected]> Signed-off-by: PabloCarmona <[email protected]> Signed-off-by: Pablo Carmona Gonzalez <[email protected]> * fix pycodestyle errors on python 3.12 Signed-off-by: PabloCarmona <[email protected]> Signed-off-by: Pablo Carmona Gonzalez <[email protected]> * remove python 3.12 Signed-off-by: PabloCarmona <[email protected]> Signed-off-by: Pablo Carmona Gonzalez <[email protected]> * remove python 3.12 from lint Signed-off-by: PabloCarmona <[email protected]> Signed-off-by: Pablo Carmona Gonzalez <[email protected]> * add cuda build workflow job Signed-off-by: PabloCarmona <[email protected]> Signed-off-by: Pablo Carmona Gonzalez <[email protected]> * add trigger for cuda Signed-off-by: PabloCarmona <[email protected]> Signed-off-by: Pablo Carmona Gonzalez <[email protected]> * remove cuda workflow Signed-off-by: PabloCarmona <[email protected]> Signed-off-by: Pablo Carmona Gonzalez <[email protected]> * add 3.12 to test and lint Signed-off-by: PabloCarmona <[email protected]> Signed-off-by: Pablo Carmona Gonzalez <[email protected]> * update pylint Signed-off-by: PabloCarmona <[email protected]> Signed-off-by: Pablo Carmona Gonzalez <[email protected]> * update project toml and requirements deps versions Signed-off-by: Pablo Carmona Gonzalez <[email protected]> * Added GlobalDriftCompensationWithExactReference drift compensation class (#674) * Add GlobalDriftCompensationWithExactReference class * Update CHANGELOG.md --------- Signed-off-by: Corey Liam Lammie <[email protected]> Signed-off-by: Pablo Carmona Gonzalez <[email protected]> * add temp ignore for type checking Signed-off-by: Pablo Carmona Gonzalez <[email protected]> * remove pylint errors with refactor and temp disabling in some methods Signed-off-by: Pablo Carmona Gonzalez <[email protected]> * fix(pyproject.toml): move mypy to build-system req Signed-off-by: Pablo Carmona Gonzalez <[email protected]> * change install to editable mode in gh actions test and lint Signed-off-by: Pablo Carmona Gonzalez <[email protected]> * move mypy from build to deps Signed-off-by: Pablo Carmona Gonzalez <[email protected]> * add temp flags for pylint to only look for errors Signed-off-by: Pablo Carmona Gonzalez <[email protected]> * fix(quantized_base_modules.py): change import from nn to nn.functional to match proper layers Signed-off-by: Pablo Carmona Gonzalez <[email protected]> * fix(pyproject.toml): bump version to 1.1.0 Signed-off-by: Pablo Carmona Gonzalez <[email protected]> * add temp pylint disable not-callable Signed-off-by: Pablo Carmona Gonzalez <[email protected]> * fix circular import for InferenceTileWithPeriphery while running examples Signed-off-by: Pablo Carmona Gonzalez <[email protected]> * Run distilGPT2 on aihwkit (#754) * Fix chopper bug (#732) * fix: debug mode, chopper trans bug, memory issue, maximizer trans * fix memeory error with valgrind * changelog * fix UMH test * CUDA arch * Add files via upload (#739) * update notebooks wheel to 1.0.0 gpu enabled (#741) * update notebooks wheel to 1.0.0 gpu enabled Signed-off-by: PabloCarmona <[email protected]> * update analog fusion notebook to use cuda Signed-off-by: PabloCarmona <[email protected]> * add ipywidgets top lenet5 notebook Signed-off-by: PabloCarmona <[email protected]> * update and run notebooks Signed-off-by: PabloCarmona <[email protected]> --------- Signed-off-by: PabloCarmona <[email protected]> * change online demo link to proper one (#743) Signed-off-by: Pablo <[email protected]> * remove release-build.yaml to change to new and stablish build process (#744) Signed-off-by: Pablo <[email protected]> * Extensions fix (#745) * modify CMakeLists to link properly extensions_ops and cuda together Signed-off-by: PabloCarmona <[email protected]> * remove strict flag to solve Py reference errors Signed-off-by: PabloCarmona <[email protected]> --------- Signed-off-by: PabloCarmona <[email protected]> * add example 36 to implement distilgpt2 on the wikitext-2-raw-v1 dataset using AIHWKit Signed-off-by: anchen25 <[email protected]> * change rpu_config to RPU_CONFIG in lines 340,342, 344 to correct check error Signed-off-by: anchen25 <[email protected]> --------- Signed-off-by: PabloCarmona <[email protected]> Signed-off-by: Pablo <[email protected]> Signed-off-by: anchen25 <[email protected]> Co-authored-by: Malte Rasch <[email protected]> Co-authored-by: Corey Lammie <[email protected]> Co-authored-by: pablocarmona <[email protected]> Signed-off-by: Pablo Carmona Gonzalez <[email protected]> * update CHANGELOG with new example 36 Signed-off-by: Pablo Carmona Gonzalez <[email protected]> * add tensorboard to examples deps and remove old requirements.txt setup Signed-off-by: Pablo Carmona Gonzalez <[email protected]> * Modifications/Cleanup/Improvements to Time-Stepped Circuit IRDrop example and model implementation (#753) * Fix chopper bug (#732) * fix: debug mode, chopper trans bug, memory issue, maximizer trans * fix memeory error with valgrind * changelog * fix UMH test * CUDA arch * Add files via upload (#739) * update notebooks wheel to 1.0.0 gpu enabled (#741) * update notebooks wheel to 1.0.0 gpu enabled Signed-off-by: PabloCarmona <[email protected]> * update analog fusion notebook to use cuda Signed-off-by: PabloCarmona <[email protected]> * add ipywidgets top lenet5 notebook Signed-off-by: PabloCarmona <[email protected]> * update and run notebooks Signed-off-by: PabloCarmona <[email protected]> --------- Signed-off-by: PabloCarmona <[email protected]> * change online demo link to proper one (#743) Signed-off-by: Pablo <[email protected]> * remove release-build.yaml to change to new and stablish build process (#744) Signed-off-by: Pablo <[email protected]> * Extensions fix (#745) * modify CMakeLists to link properly extensions_ops and cuda together Signed-off-by: PabloCarmona <[email protected]> * remove strict flag to solve Py reference errors Signed-off-by: PabloCarmona <[email protected]> --------- Signed-off-by: PabloCarmona <[email protected]> * Modifications/Cleanup/Improvements to IRDrop example and implementation Signed-off-by: Jose Luquin [email protected] <[email protected]> * Modifications/Cleanup/Improvements to IRDrop example and implementation; signoff included Signed-off-by: Jose Luquin [email protected] <[email protected]> Signed-off-by: Jose Luquin [email protected] <[email protected]> Signed-off-by: Jose Luquin [email protected] <[email protected]> * PR modifications and corrections Signed-off-by: Jose Luquin [email protected] <[email protected]> Signed-off-by: Jose Luquin [email protected] <[email protected]> * PR modifications/update Signed-off-by: Jose Luquin [email protected] <[email protected]> Signed-off-by: Jose Luquin [email protected] <[email protected]> * Update src/aihwkit/simulator/parameters/io.py Co-authored-by: Copilot <[email protected]> Signed-off-by: Jose Luquin [email protected] <[email protected]> * Update src/aihwkit/simulator/parameters/io.py Co-authored-by: Copilot <[email protected]> Signed-off-by: Jose Luquin [email protected] <[email protected]> * PR modifications/update; re: minor copilot suggestions Signed-off-by: Jose Luquin [email protected] <[email protected]> --------- Signed-off-by: PabloCarmona <[email protected]> Signed-off-by: Pablo <[email protected]> Signed-off-by: Jose Luquin [email protected] <[email protected]> Signed-off-by: Jose Luquin [email protected] <[email protected]> Signed-off-by: Jose Luquin [email protected] <[email protected]> Co-authored-by: Malte Rasch <[email protected]> Co-authored-by: Corey Lammie <[email protected]> Co-authored-by: pablocarmona <[email protected]> Co-authored-by: Jose Luquin [email protected] <[email protected]> Co-authored-by: Jose Luquin [email protected] <[email protected]> Co-authored-by: Jose Luquin [email protected] <[email protected]> Co-authored-by: Jose Luquin [email protected] <[email protected]> Co-authored-by: Copilot <[email protected]> Signed-off-by: Pablo Carmona Gonzalez <[email protected]> * update CHANGELOG with improvements on ir_drop experiments Signed-off-by: Pablo Carmona Gonzalez <[email protected]> * address lint errors with some ignores Signed-off-by: Pablo Carmona Gonzalez <[email protected]> * Fix: Added missing fields to bindings_ingore in IOParametersIRDropT, to fix failing test (test_storing_and_loading for TorchInferenceIRDropT (#756) Signed-off-by: [email protected];5J0442897;Jose Luquin <[email protected]> Co-authored-by: [email protected];5J0442897;Jose Luquin <[email protected]> --------- Signed-off-by: Pablo Carmona Gonzalez <[email protected]> Signed-off-by: PabloCarmona <[email protected]> Signed-off-by: Pablo <[email protected]> Signed-off-by: Julian Buechel <[email protected]> Signed-off-by: Corey Liam Lammie <[email protected]> Signed-off-by: anchen25 <[email protected]> Signed-off-by: Jose Luquin [email protected] <[email protected]> Signed-off-by: Jose Luquin [email protected] <[email protected]> Signed-off-by: Jose Luquin [email protected] <[email protected]> Signed-off-by: [email protected];5J0442897;Jose Luquin <[email protected]> Co-authored-by: Malte Rasch <[email protected]> Co-authored-by: Corey Lammie <[email protected]> Co-authored-by: Julian Buechel <[email protected]> Co-authored-by: anchen25 <[email protected]> Co-authored-by: jluquin <[email protected]> Co-authored-by: Jose Luquin [email protected] <[email protected]> Co-authored-by: Jose Luquin [email protected] <[email protected]> Co-authored-by: Jose Luquin [email protected] <[email protected]> Co-authored-by: Jose Luquin [email protected] <[email protected]> Co-authored-by: Copilot <[email protected]>
1 parent ffcee80 commit 72a8456

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+986
-305
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: build-wheel-310
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v**'
7+
8+
jobs:
9+
build-and-deploy-linux:
10+
name: Build wheel 3.10 (manylinux)
11+
runs-on: ubuntu-latest
12+
services:
13+
docker:
14+
image: docker:20.10.16
15+
options: --privileged
16+
env:
17+
CIBW_BUILD: cp310-manylinux_x86_64
18+
CIBW_BEFORE_ALL: >
19+
yum install -y openblas-devel
20+
CIBW_BEFORE_BUILD: >
21+
pip install torch==2.9.0 torchvision==0.24.0 torchaudio==2.9.0 --index-url https://download.pytorch.org/whl/cpu
22+
&& pip install -r requirements.txt
23+
CIBW_MANYLINUX_X86_64_IMAGE: "quay.io/pypa/manylinux_2_28_x86_64"
24+
CIBW_REPAIR_WHEEL_COMMAND: >
25+
auditwheel repair -w {dest_dir} {wheel} --exclude libtorch_python.so
26+
steps:
27+
- uses: actions/checkout@v3
28+
29+
- name: Pull manylinux image
30+
run: docker pull $CIBW_MANYLINUX_X86_64_IMAGE
31+
32+
- name: Install cibuildwheel
33+
run: python -m pip install cibuildwheel==2.23.3
34+
35+
- name: Build wheels
36+
run: python -m cibuildwheel --output-dir wheelhouse
37+
38+
- name: Upload wheels (per version)
39+
uses: actions/upload-artifact@v4
40+
with:
41+
name: wheel_py310
42+
path: wheelhouse/*.whl
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: build-wheel-311
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v**'
7+
8+
jobs:
9+
build-and-deploy-linux:
10+
name: Build wheel 3.11 (manylinux)
11+
runs-on: ubuntu-latest
12+
services:
13+
docker:
14+
image: docker:20.10.16
15+
options: --privileged
16+
env:
17+
CIBW_BUILD: cp311-manylinux_x86_64
18+
CIBW_BEFORE_ALL: >
19+
yum install -y openblas-devel
20+
CIBW_BEFORE_BUILD: >
21+
pip install torch==2.9.0 torchvision==0.24.0 torchaudio==2.9.0 --index-url https://download.pytorch.org/whl/cpu
22+
&& pip install -r requirements.txt
23+
CIBW_MANYLINUX_X86_64_IMAGE: "quay.io/pypa/manylinux_2_28_x86_64"
24+
CIBW_REPAIR_WHEEL_COMMAND: >
25+
auditwheel repair -w {dest_dir} {wheel} --exclude libtorch_python.so
26+
steps:
27+
- uses: actions/checkout@v3
28+
29+
- name: Pull manylinux image
30+
run: docker pull $CIBW_MANYLINUX_X86_64_IMAGE
31+
32+
- name: Install cibuildwheel
33+
run: python -m pip install cibuildwheel==2.23.3
34+
35+
- name: Build wheels
36+
run: python -m cibuildwheel --output-dir wheelhouse
37+
38+
- name: Upload wheels (per version)
39+
uses: actions/upload-artifact@v4
40+
with:
41+
name: wheel_py311
42+
path: wheelhouse/*.whl
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: build-wheel-312
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v**'
7+
8+
jobs:
9+
build-and-deploy-linux:
10+
name: Build wheel 3.12 (manylinux)
11+
runs-on: ubuntu-latest
12+
services:
13+
docker:
14+
image: docker:20.10.16
15+
options: --privileged
16+
env:
17+
CIBW_BUILD: cp312-manylinux_x86_64
18+
CIBW_BEFORE_ALL: >
19+
yum install -y openblas-devel
20+
CIBW_BEFORE_BUILD: >
21+
pip install torch==2.9.0 torchvision==0.24.0 torchaudio==2.9.0 --index-url https://download.pytorch.org/whl/cpu
22+
&& pip install -r requirements.txt
23+
CIBW_MANYLINUX_X86_64_IMAGE: "quay.io/pypa/manylinux_2_28_x86_64"
24+
CIBW_REPAIR_WHEEL_COMMAND: >
25+
auditwheel repair -w {dest_dir} {wheel} --exclude libtorch_python.so
26+
steps:
27+
- uses: actions/checkout@v3
28+
29+
- name: Pull manylinux image
30+
run: docker pull $CIBW_MANYLINUX_X86_64_IMAGE
31+
32+
- name: Install cibuildwheel
33+
run: python -m pip install cibuildwheel==2.23.3
34+
35+
- name: Build wheels
36+
run: python -m cibuildwheel --output-dir wheelhouse
37+
38+
- name: Upload wheels (per version)
39+
uses: actions/upload-artifact@v4
40+
with:
41+
name: wheel_py312
42+
path: wheelhouse/*.whl

.github/workflows/test-and-lint.yml

Lines changed: 23 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,26 @@ name: test-and-lint
22

33
on:
44
push:
5-
branches: master
5+
branches:
6+
- master
67
pull_request:
7-
branches: master
8+
branches:
9+
- master
810

911
jobs:
10-
# ────────────────────────────
11-
# Test on Python 3.10
12-
# ────────────────────────────
13-
test-py310:
14-
name: Test (Python 3.10)
12+
test:
13+
name: Test ${{ matrix.python-version }}
1514
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
python-version: ["3.10", "3.11", "3.12"]
1618
steps:
1719
- uses: actions/checkout@v3
1820

19-
- name: Set up Python 3.10
21+
- name: Set up Python ${{ matrix.python-version }}
2022
uses: actions/setup-python@v5
2123
with:
22-
python-version: 3.10.17
24+
python-version: ${{ matrix.python-version }}
2325

2426
- name: Install system dependencies
2527
run: |
@@ -31,29 +33,29 @@ jobs:
3133
3234
- name: Build and install aihwkit wheel
3335
run: |
34-
pip install -r requirements.txt
36+
pip install -e .
3537
make build_inplace
3638
3739
- name: Run pytest
3840
run: |
39-
pip install -r requirements-dev.txt
41+
pip install -e ".[dev]"
4042
make pytest
4143
env:
4244
TEST_DATASET: true
4345

44-
# ────────────────────────────
45-
# Lint on Python 3.10
46-
# ────────────────────────────
47-
lint-py310:
48-
name: Lint (Python 3.10)
46+
lint:
47+
name: Lint ${{ matrix.python-version }}
4948
runs-on: ubuntu-latest
49+
strategy:
50+
matrix:
51+
python-version: ["3.10", "3.11", "3.12"]
5052
steps:
5153
- uses: actions/checkout@v3
5254

53-
- name: Set up Python 3.10
55+
- name: Set up Python ${{ matrix.python-version }}
5456
uses: actions/setup-python@v5
5557
with:
56-
python-version: 3.10.17
58+
python-version: ${{ matrix.python-version }}
5759

5860
- name: Install system dependencies
5961
run: |
@@ -65,46 +67,12 @@ jobs:
6567
6668
- name: Build and install aihwkit wheel
6769
run: |
68-
pip install -r requirements.txt
70+
pip install -e .
6971
make build_inplace
7072
7173
- name: Run lint checks
7274
run: |
73-
pip install -r requirements-dev.txt
74-
pip install -r requirements-examples.txt
75+
pip install -e ".[dev, examples]"
7576
make pycodestyle
76-
make pylint
7777
make mypy
78-
# ────────────────────────────────────────
79-
# Stage: Test multiple Python versions
80-
# ────────────────────────────────────────
81-
test-matrix:
82-
name: Tests (3.8 & 3.9)
83-
runs-on: ubuntu-latest
84-
strategy:
85-
matrix:
86-
python-version: [3.8, 3.9]
87-
steps:
88-
- uses: actions/checkout@v3
89-
90-
- name: Set up Python ${{ matrix.python-version }}
91-
uses: actions/setup-python@v5
92-
with:
93-
python-version: ${{ matrix.python-version }}
94-
95-
- name: Install system deps
96-
run: |
97-
sudo apt-get -qq update
98-
sudo apt-get install -y ca-certificates libopenblas-dev gcc-9 g++-9
99-
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 60 \
100-
--slave /usr/bin/g++ g++ /usr/bin/g++-9
101-
102-
- name: Build and install aihwkit wheel
103-
run: |
104-
pip install -r requirements.txt
105-
make build_inplace
106-
107-
- name: Run pytest
108-
run: |
109-
pip install -r requirements-dev.txt
110-
make pytest
78+
make pylint

.pylintrc

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,6 @@ load-plugins=pylint.extensions.docparams
3737
# Pickle collected data for later comparisons.
3838
persistent=yes
3939

40-
# When enabled, pylint would attempt to guess common misconfiguration and emit
41-
# user-friendly hints instead of false-positive error messages.
42-
suggestion-mode=yes
43-
4440
# Allow loading of arbitrary C extensions. Extensions are imported into the
4541
# active Python interpreter and may run arbitrary code.
4642
unsafe-load-any-extension=no
@@ -527,5 +523,5 @@ preferred-modules=
527523

528524
# Exceptions that will emit a warning when being caught. Defaults to
529525
# "BaseException, Exception".
530-
overgeneral-exceptions=BaseException,
531-
Exception
526+
overgeneral-exceptions=builtins.BaseException,
527+
builtins.Exception

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,26 @@ The format is based on [Keep a Changelog], and this project adheres to
1212
* `Fixed` for any bug fixes.
1313
* `Security` in case of vulnerabilities.
1414

15+
## [1.1.0] - 2025/11/10
16+
17+
### Added
18+
* Add newly uploaded resources for CPU-only wheels (\#739)
19+
* Add a new drift compensation mechanism which uses an ideal reference readout. In the default global drift compensation mechanism, all non-idealities (as set by the corresponding `rpu_config`) are modeled, potentially resulting in sub-optimal drift compensation scales being computed in some scenarios, e.g., where the output noise is sufficiently large.
20+
* New example (examples/36_gpt2_on_wikitext.py) to run Distil GPT2 on aihwkit with text prediction. (\#754)
21+
22+
### Removed/Deprecated
23+
* Function `convert_to_analog_mapped` in `src/aihwkit/nn/conversion.py` **deprecated and removed**.
24+
25+
### Changed
26+
* Replace legacy release-build workflow with the updated build process (\#744)
27+
* Point the online demo link to the correct destination (\#743)
28+
* Update bundled notebook wheel to the GPU-enabled 1.0.0 release (\#741)
29+
* Modifications/Cleanup/Improvements to Time-Stepped Circuit IRDrop example and model implementation (\#753)
30+
31+
### Fixed
32+
* Fix memory issues and bugs in analog training for CUDA (\#732)
33+
* Fix `convert_to_analog` for conv layers (\#627)
34+
1535
## [1.0.0] - 2025/05/19
1636

1737
## Added

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright 2020, 2021, 2022, 2023, 2024 IBM. All Rights Reserved.
3+
Copyright 2020, 2021, 2022, 2023, 2024, 2025 IBM. All Rights Reserved.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ pycodestyle:
4646
pycodestyle src/ tests/ examples/
4747

4848
pylint:
49-
PYTHONPATH=src/ git ls-files | grep -E ".*\.py$$" | grep -v "pb2\.py$$" | xargs pylint -rn
49+
PYTHONPATH=src/ git ls-files | grep -E ".*\.py$$" | grep -v "pb2\.py$$" | xargs pylint -rn --disable=all --enable=E
5050

5151
pytest:
5252
PYTHONPATH=src/ pytest -v -s tests/

examples/04_lenet5_training.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,10 @@ def training_loop(model, criterion, optimizer, train_data, validation_data, epoc
237237
print(
238238
f"{datetime.now().time().replace(microsecond=0)} --- "
239239
f"Epoch: {epoch}\t"
240-
f"Train loss: {train_loss:.4f}\t"
241-
f"Valid loss: {valid_loss:.4f}\t"
242-
f"Test error: {error:.2f}%\t"
243-
f"Accuracy: {accuracy:.2f}%\t"
240+
f"Train loss: {train_loss: .4f}\t"
241+
f"Valid loss: {valid_loss: .4f}\t"
242+
f"Test error: {error: .2f}%\t"
243+
f"Accuracy: {accuracy: .2f}%\t"
244244
)
245245

246246
# Save results and plot figures

examples/06_lenet5_hardware_aware.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
99
Mnist dataset on a LeNet5 inspired network.
1010
"""
11-
# pylint: disable=invalid-name
11+
# pylint: disable=invalid-name, possibly-used-before-assignment
1212

1313
import os
1414
from datetime import datetime
@@ -233,10 +233,10 @@ def training_loop(model, criterion, optimizer, train_data, validation_data, epoc
233233
print(
234234
f"{datetime.now().time().replace(microsecond=0)} --- "
235235
f"Epoch: {epoch}\t"
236-
f"Train loss: {train_loss:.4f}\t"
237-
f"Valid loss: {valid_loss:.4f}\t"
238-
f"Test error: {error:.2f}%\t"
239-
f"Accuracy: {accuracy:.2f}%\t"
236+
f"Train loss: {train_loss: .4f}\t"
237+
f"Valid loss: {valid_loss: .4f}\t"
238+
f"Test error: {error: .2f}%\t"
239+
f"Accuracy: {accuracy: .2f}%\t"
240240
)
241241

242242
# Save results and plot figures
@@ -335,8 +335,8 @@ def inference_phase(t_inference_times, model, criterion, validation_data):
335335
_, error_pre, accuracy_pre = test_evaluation(validation_data, model, criterion)
336336
print(
337337
f"{datetime.now().time().replace(microsecond=0)} --- "
338-
f"Error after training: {error_pre:.2f}%\t"
339-
f"Accuracy after training: {accuracy_pre:.2f}%\t"
338+
f"Error after training: {error_pre: .2f}%\t"
339+
f"Accuracy after training: {accuracy_pre: .2f}%\t"
340340
)
341341

342342
error_lst = []
@@ -350,8 +350,8 @@ def inference_phase(t_inference_times, model, criterion, validation_data):
350350

351351
print(
352352
f"{datetime.now().time().replace(microsecond=0)} --- "
353-
f"Error after inference: {error_post:.2f}%\t"
354-
f"Accuracy after inference: {accuracy_post:.2f}%\t"
353+
f"Error after inference: {error_post: .2f}%\t"
354+
f"Accuracy after inference: {accuracy_post: .2f}%\t"
355355
f"Drift t={t_inference: .2e}\t"
356356
)
357357

0 commit comments

Comments
 (0)