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

serialize with --features=HalfKP no longer works #234

Open
jdart1 opened this issue Mar 20, 2023 · 0 comments
Open

serialize with --features=HalfKP no longer works #234

jdart1 opened this issue Mar 20, 2023 · 0 comments

Comments

@jdart1
Copy link

jdart1 commented Mar 20, 2023

This used to work (as of commit 40ed594 it did), but no longer does. It looks like it now assumes there are PSQT features.
There may be other dependencies on a PSQT-enabled network, for example in the trainer.

jdart@bunny:~/chess/nnue-pytorch$ python3 serialize.py --features=HalfKP arasan-d10-20220723.nnue arasan-d10-20220723.pt
Converting arasan-d10-20220723.nnue to arasan-d10-20220723.pt
Traceback (most recent call last):
  File "/home/jdart/chess/nnue-pytorch/serialize.py", line 253, in <module>
    main()
  File "/home/jdart/chess/nnue-pytorch/serialize.py", line 236, in main
    reader = NNUEReader(f, feature_set)
  File "/home/jdart/chess/nnue-pytorch/serialize.py", line 144, in __init__
    self.model = M.NNUE(feature_set)
  File "/home/jdart/chess/nnue-pytorch/model.py", line 162, in __init__
    self._init_layers()
  File "/home/jdart/chess/nnue-pytorch/model.py", line 177, in _init_layers
    self._init_psqt()
  File "/home/jdart/chess/nnue-pytorch/model.py", line 185, in _init_psqt
    initial_values = self.feature_set.get_initial_psqt_features()
  File "/home/jdart/chess/nnue-pytorch/feature_set.py", line 119, in get_initial_psqt_features
    init += feature.get_initial_psqt_features()
  File "/home/jdart/chess/nnue-pytorch/halfkp.py", line 33, in get_initial_psqt_features
    raise Exception('Not supported yet. See HalfKA')
Exception: Not supported yet. See HalfKA
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

1 participant