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

problem with python 3.6 #26

Open
asaivasavi opened this issue Feb 26, 2019 · 2 comments
Open

problem with python 3.6 #26

asaivasavi opened this issue Feb 26, 2019 · 2 comments

Comments

@asaivasavi
Copy link

Dimensions of lookup parameter /_0 lookup up from file ({100,400574}) do not match parameters to be populated ({100,410050})

@free-soellingeraj
Copy link

Here's a working version of the code in python3.6 with GPU compute option:
https://github.com/free-soellingeraj/open-sesame

I resolved the above issue by training longer, especially in the latter 2 models.

@chrisoutwright
Copy link

chrisoutwright commented Mar 18, 2021

Could it be that the targetid is getting stuck during learning for the implementation given in the 3.6 fork? How many epochs till one can get improvements in avg. loss value/f1 for targetid? In the former version val_f1 was getting much higher.

Old vs New for TargetId Training:
epoch = 2 loss = 6.148638 train_f1 = 0.0000 val_f1 = 0.7283 best_val_f1 = 0.7764: 76%|███████▌ | 2631/3479 [02:42<00:17, 49.20it/s] epoch = 2 loss = 6.153349 train_f1 = 0.0000 val_f1 = 0.7283 best_val_f1 = 0.7764: 76%|███████▌ | 2631/3479 [02:42<00:17, 49.20it/s]

[dev epoch=20] loss = 9.383501 p = 0.4452 (1069.0/2401.0) r = 0.4501 (1069.0/2375.0) f1 = 0.4477 [lr=0.01 clips=0 updates=100] epoch = 20.1600 loss = 9.137601 train f1 = 0.4556 [lr=0.01 clips=0 updates=100] epoch = 20.1700 loss = 9.140439 train f1 = 0.4548 [lr=0.01 clips=0 updates=100] epoch = 20.1800 loss = 9.125574 train f1 = 0.4761

Could it be an issue when the last line if commented out it part?:

        f_i_cpu = to_device(f_i, 'CPU')
        logloss = log_softmax(f_i_cpu, valid_frames)
        # logloss = to_device(logloss, 'GPU:0')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants