You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
model = setup_cxt_model(model_type="broad+adapter")
However, I get the following error:
FileNotFoundError: [Errno 2] No such file or directory: '/home/kkor/cxt/cxt/lightning_logs/version_20/checkpoints/epoch=1-step=5280.ckpt'
Loading the broad and narrow models worked just fine.
Please let me know how I might be able to fix this error to load the broad+adapter model! Thank you so much!
(Edit: I believe the error is coming from the call to LitTokenFreeDecoder.load_from_checkpoint() in setup_cxt_model(). Apparently, pytorch lightning loads from the checkpoint with the hyperparameters used at training time. Therefore, to make pretrained_ckpt=None, this might need to be explicitly passed to LitTokenFreeDecoder.load_from_checkpoint(). Otherwise, it tries to load from the local directory that was used during training)
P.S. I was also getting an Unpickling Error since weights_only was set to True. The following work around fixed it:
Hi Ruby - thanks for letting me know, I am currently cleaning up the API more, and would have something more useable in few days - sorry about that and thank you for the fix!
Activity
kevinkorfmann commentedon Feb 27, 2026
Hi Ruby - thanks for letting me know, I am currently cleaning up the API more, and would have something more useable in few days - sorry about that and thank you for the fix!