Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Device and configuration presets #144

Merged
merged 2 commits into from Mar 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Expand Up @@ -33,6 +33,16 @@ The format is based on [Keep a Changelog], and this project adheres to
* Option to automatically scale the digital weights into the full range of the
simluated crossbar by applying a fixed output global factor in
digital. (\#129)
* Added a library of device presets that are calibrated to real
hardware data, namely `ReRamESPresetDevice`, `ReRamSBPresetDevice`,
`ECRamPresetDevice`, `CapacitorPresetDevice`, and device presets
that are based on models in the literatur,
e.g. `GokmenVlasovPresetDevice` and `IdealizedPresetDevice`. They
can be used defining the device field in the `RPUConfig`. (\#144)
* Added a library of config presets, such as `ReRamESPreset`,
`Capacitor2Preset`, `TikiTakaReRamESPreset`, and many more. These can
be used for tile configration (``rpu_config``). They specify a
particular device and optimizer choice. (\#144)

#### Fixed

Expand Down
25 changes: 25 additions & 0 deletions src/aihwkit/simulator/presets/__init__.py
@@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-

# (C) Copyright 2020, 2021 IBM. All Rights Reserved.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.

"""Configurations presets for resistive processing units."""

from .configs import (
# Single device configs.
ReRamESPreset, ReRamSBPreset, CapacitorPreset, EcRamPreset, IdealizedPreset,
# 2-device configs.
ReRamES2Preset, ReRamSB2Preset, Capacitor2Preset, EcRam2Preset, Idealized2Preset,
# 4-device configs.
ReRamES4Preset, ReRamSB4Preset, Capacitor4Preset, EcRam4Preset, Idealized4Preset,
# Tiki-taka configs.
TikiTakaReRamESPreset, TikiTakaReRamSBPreset, TikiTakaCapacitorPreset,
TikiTakaEcRamPreset, TikiTakaIdealizedPreset
)