grok-1 icon indicating copy to clipboard operation
grok-1 copied to clipboard

Problems encountered when python3 run.py

Open kevin1121 opened this issue 1 year ago • 10 comments

image

How do I solve these two problems?

Thanks for everyone's help!

kevin1121 avatar Mar 27 '24 02:03 kevin1121

Did you pip install -r requirements.txt from within a venv?

Aareon avatar Mar 27 '24 04:03 Aareon

Did you pip install -r requirements.txt from within a venv?

image

Thank you for your reply. I have executed the installation command according to the documentation. Two warnings were reported during the installation. Does this have any impact? How can I solve it?

kevin1121 avatar Mar 27 '24 07:03 kevin1121

what version of pip are you using?

harindersinghk avatar Mar 27 '24 12:03 harindersinghk

what version of pip are you using?

image

pip version is 24.0

kevin1121 avatar Mar 27 '24 13:03 kevin1121

I assume you are using mac as wheels are primarily built for Linux. There seems to be compatibility issue with macOs. Which cuda have you installed?

Run nvidia-smi

harindersinghk avatar Mar 27 '24 18:03 harindersinghk

I assume you are using mac as wheels are primarily built for Linux. There seems to be compatibility issue with macOs. Which cuda have you installed?

Run nvidia-smi

I am using a mac M1 chip, how should I run it?

kevin1121 avatar Mar 28 '24 03:03 kevin1121

on M2 max , python3 SCR-20240328-tyaf

cassius425 avatar Mar 28 '24 15:03 cassius425

Theres a config option to change the mesh size. Also, consider installing one of the backends.

Aareon avatar Mar 28 '24 15:03 Aareon

From #292

See

https://github.com/xai-org/grok-1/blob/7050ed204b8206bb8645c7b7bbef7252f79561b0/run.py#L60

and change local_mesh_config=(1, 1)

Aareon avatar Mar 28 '24 16:03 Aareon

Try the following command pip install --upgrade "jax[cuda12_pip]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html

Luffy-Yao avatar Apr 16 '24 17:04 Luffy-Yao