Applying RPU_config after loading a HWA-trained model (exmaple 24) #673
Unanswered
kusionlion
asked this question in
Q&A
Replies: 2 comments
-
By default, the rpu_config from the checkpoint is loaded. It is not clear from the above, how you changed the rpu_config. You could use |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hello @kusionlion! The answer from @maljoras-sony help you out? Need any further assistance? Thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I tried applying RPU_config after loading a HWA-trained model (exmaple 24) and found that the RPU_config doesn't seem to be used to represent my weights. The reason for this this doubt is that when I scaled the noise in RPU by 0 to 5000 times, the inference results (F1) stay the same.
Here is the steps I did (example 24):
1. performed HWA training and saved the trained model:
ARGS.train_hwa=True
code link
PARSER.add_argument(
"-c",
"--checkpoint",
help="File name specifying where to load/save a checkpoint",
default="./New_trained_results.pth",
type=str,
)
2. Loaded new weights and changed the programming scale
ARGS.load=True
code link
noise_model=PCMLikeNoiseModel(prog_noise_scale=5000),
The step 2 generates many F1 over time. I varied the prog_noise_scale, and the F1 seems to be independent to the prog_noise_scale. Am I doing it wrong?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions