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

Install fail for x86 MacOS (Dependency Torch@2.3.0 pip binaries not available) #241

Closed
chiraag-imda opened this issue Jun 12, 2024 · 1 comment · Fixed by #244 or #250
Closed

Install fail for x86 MacOS (Dependency Torch@2.3.0 pip binaries not available) #241

chiraag-imda opened this issue Jun 12, 2024 · 1 comment · Fixed by #244 or #250

Comments

@chiraag-imda
Copy link

python -m moonshot i moonshot-data fails on x86 MacOS because moonshot-data/requirements.txt contains hard reference torch==2.3.0. Would suggest following options for mac silicon transition phase until 5 June 2028:

  • documenting alternative instructions for installation for x86 MacOS users
  • relaxing the requirements to torch>=2.2.0,<=2.3.0 since 2.3.0 features are not currently utilized and no apparent conflicts

Link to relevant PyTorch issue

Error Message:
image

@imda-normanchia
Copy link
Collaborator

Thank you for bringing this issue to our attention. While we acknowlege this concern and will document it accordingly, we regret to inform you that we do not have plans to support older MacBooks. A quick solution to this would be advising to manually install the older version for now.

We will continue work on providing an alternative solution for users affected by this issue.

If you encounter an error while installing moonshot-data, it's possible that your configuration file may not be created automatically. In such a case, you will need to manually create a .env file. Here's an example of what the content of this file might look like:

# For Data
    ATTACK_MODULES="../moonshot-data/attack-modules"
    CONNECTORS="../moonshot-data/connectors"
    CONNECTORS_ENDPOINTS="../moonshot-data/connectors-endpoints"
    CONTEXT_STRATEGY="../moonshot-data/context-strategy"
    COOKBOOKS="../moonshot-data/cookbooks"
    DATABASES="../moonshot-data/generated-outputs/databases"
    DATABASES_MODULES="../moonshot-data/databases-modules"
    DATASETS="../moonshot-data/datasets"
    IO_MODULES="../moonshot-data/io-modules"
    METRICS="../moonshot-data/metrics"
    PROMPT_TEMPLATES="../moonshot-data/prompt-templates"
    RECIPES="../moonshot-data/recipes"
    RESULTS="../moonshot-data/generated-outputs/results"
    RESULTS_MODULES="../moonshot-data/results-modules"
    RUNNERS="../moonshot-data/generated-outputs/runners"
    RUNNERS_MODULES="../moonshot-data/runners-modules"
    TOKENIZERS_PARALLELISM = false

    # For Web API
    HOST_ADDRESS=127.0.0.1 # The interface the server will bind to
    HOST_PORT=5000

    # Below is the uri of the Web UI webhook.
    # In the next section, if Web UI listens on a different port,
    # update this uri accordingly and restart.

    MOONSHOT_UI_CALLBACK_URL=http://localhost:3000/api/v1/benchmarks/status%

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