Skip to content
Discussion options

You must be logged in to vote

Hi @edminge,
thanks for the question. The most general way is, if you have a checkpoint file, to construct a new model with a new RPUConfig and do

analog_model.load_state_dict(state_dict, load_rpu_config=False)

However, there is also a convenient function to change the RPUConfig of an existing model via:

for tile in analog_model.analog_tiles():
     tile.to(rpu_config=rpu_config)

This loops through all the tiles (aka crossbars) and applies the new RPUConfig. Note that different tiles could in principle have different RPUConfigs to specify e.g. different noise levels etc, so the RPUConfig is a tile property and not a model property.

Replies: 2 comments 14 replies

Comment options

You must be logged in to vote
14 replies
@maljoras
Comment options

@HeatPhoenix
Comment options

@HeatPhoenix
Comment options

@maljoras
Comment options

@HeatPhoenix
Comment options

Answer selected by maicoldubbio
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
3 participants