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

Is anyone able to run the AI Scientist Paper Generation Experiments in Mac M1 chip #52

Open
shanmukha-ajapro opened this issue Aug 20, 2024 · 1 comment

Comments

@shanmukha-ajapro
Copy link

i am facing issues to Run AI Scientist Paper Generation Experiments
i am getting error as follows
command : cd templates/nanoGPT && python experiment.py --out_dir run_0 && python plot.py
tokens per iteration will be: 16,384
/opt/anaconda3/envs/ai_scientist/lib/python3.11/site-packages/torch/amp/autocast_mode.py:250: UserWarning: User provided device_type of 'cuda', but CUDA is not available. Disabling
warnings.warn(
found vocab_size = 65 (inside ../../data/shakespeare_char/meta.pkl)
Initializing a new model from scratch
number of parameters: 10.65M
Traceback (most recent call last):
File "/Users/ajapro/Desktop/SakanaAI/AI-Scientist/templates/nanoGPT/experiment.py", line 697, in
final_info, train_info, val_info = train(dataset, out_dir, seed_offset)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/ajapro/Desktop/SakanaAI/AI-Scientist/templates/nanoGPT/experiment.py", line 459, in train
model.to(device)
File "/opt/anaconda3/envs/ai_scientist/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1173, in to
return self._apply(convert)
^^^^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/envs/ai_scientist/lib/python3.11/site-packages/torch/nn/modules/module.py", line 779, in _apply
module._apply(fn)
File "/opt/anaconda3/envs/ai_scientist/lib/python3.11/site-packages/torch/nn/modules/module.py", line 779, in _apply
module._apply(fn)
File "/opt/anaconda3/envs/ai_scientist/lib/python3.11/site-packages/torch/nn/modules/module.py", line 804, in _apply
param_applied = fn(param)
^^^^^^^^^
File "/opt/anaconda3/envs/ai_scientist/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1159, in convert
return t.to(
^^^^^
File "/opt/anaconda3/envs/ai_scientist/lib/python3.11/site-packages/torch/cuda/init.py", line 284, in _lazy_init
raise AssertionError("Torch not compiled with CUDA enabled")
AssertionError: Torch not compiled with CUDA enabled

@junhua
Copy link

junhua commented Aug 22, 2024

Created a pull request to address this

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