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

Error during validation: unsupported operand type(s) for *: 'NoneType' and 'float' #10

Open
juandiegocastano opened this issue Mar 23, 2024 · 0 comments

Comments

@juandiegocastano
Copy link

juandiegocastano commented Mar 23, 2024

Hello,
running the ocr_subnet in staging (following the webpage tutorial ) gives the following error:
Error during validation: unsupported operand type(s) for *: 'NoneType' and 'float'
Doing some traceback I found it's originated in ocr_subnet/validator/reward.py. More specifically in lines 169-173, this instantiation is being done:

    alpha_p = self.config.neuron.alpha_position
    alpha_t = self.config.neuron.alpha_text
    alpha_f = self.config.neuron.alpha_font
    alpha_prediction = self.config.neuron.alpha_prediction
    alpha_time = self.config.neuron.alpha_time

By logging this object, self.config appears to be null:
image
Maybe there is a missing Config file or some error in load_state() function?

This is how the miner and validator are called:
python neurons/miner.py --netuid 1 --subtensor.chain_endpoint ws://127.0.0.1:9946 --wallet.name miner --wallet.hotkey default --logging.debug --neuron.device "cuda" --logging.record_log

python neurons/validator.py --netuid 1 --subtensor.chain_endpoint ws://127.0.0.1:9946 --wallet.name validator --wallet.hotkey default --logging.debug --neuron.device "cuda" --logging.record_log

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