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

neuron.py missing import dependency. #1405

Closed
icsy7867 opened this issue Jun 22, 2023 · 2 comments
Closed

neuron.py missing import dependency. #1405

icsy7867 opened this issue Jun 22, 2023 · 2 comments

Comments

@icsy7867
Copy link

Describe the bug
Following the guide:
https://bittensor.com/documentation/mining/mining when trying to run neuron.py, even with the simple --help, You get a error:
NameError: name 'torch' is not define

To Reproduce
Follow the guide, try to use the neuron.py miner:

python3 neuron.py --help

get an error when running.

Expected behavior
It should work.

Screenshots
image

Environment:

  • vast.ai miner VM using for testing.

Additional context
Add any other context about the problem here.
Solution here appears to be fairly simple... I added:

import torch

to the top of the python file, and this runs as expected.

python3 ~/.bittensor/bittensor/neurons/text/prompting/miners/gpt4all/neuron.py --help

However, the documentation is incorrect on how to run this as well. Following the guide:

python3 bittensor/neurons/text_prompting/miners/GPT4ALL/neuron.py
    --netuid SUBNETWORK_TARGET_UID
    --wallet.name YOUR_WALLET_NAME
    --wallet.hotkey YOUR_HOTKEY_NAME
    --logging.debug

However this produces an error:

neuron.py: error: the following arguments are required: --gpt4all.model

But I am having trouble finding any documentation what is required here, or what the other flags for gpt4all.x do, or what is required.

@camfairchild
Copy link
Collaborator

Hi, you can check out the README file for that miner for a guide on what flags to use. The usage is added there.

Also, the lines in the file here contain the help strings for what the flags are for

@camfairchild
Copy link
Collaborator

Also fixed in #1460

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

2 participants