News for hackers. Stuff that matters.
Re:Using LLaMA with M1 Mac and Python 3.11 by CharlesW on Sunday March 12, 2023 @02:27PM (#35124110)
> Remove "and Python 3.11" from title. Python used only for converting model to llama.cpp project format, 3.10 or whatever is fine.

As @rnosov notes elsewhere in the thread, this post has a workaround for the PyTorch issue with Python 3.11, which is why the "and Python 3.11" qualification is there.

Re:Using LLaMA with M1 Mac and Python 3.11 by ahoho on Sunday March 12, 2023 @03:47PM (#35125265)
Do you know if there's there a good reason to favor 3.11 over 3.10 for this use case?
Re:Using LLaMA with M1 Mac and Python 3.11 by CharlesW on Sunday March 12, 2023 @04:45PM (#35126030)
I'm a Python neophyte, but I've read that Python 3.11 is 10-60% faster than 3.10, so that may be a consideration.
Re:Using LLaMA with M1 Mac and Python 3.11 by simonw on Sunday March 12, 2023 @05:01PM (#35126231)
In this particular case that doesn't matter, because the only time you run Python is for a one-off conversion against the model files.

That takes at most a minute to run, but once converted you'll never need to run it again. Actual llama.cpp model inference uses compiled C++ code with no Python involved at all.

Re:Using LLaMA with M1 Mac and Python 3.11 by e12e on Sunday March 12, 2023 @06:01PM (#35126872)
Re:Using LLaMA with M1 Mac and Python 3.11 by codetrotter on Sunday March 12, 2023 @06:13PM (#35126989)
The real question is. Which python3 version does current macOS ship with?

Well, on my macOS Ventura 13.2.1 install, /usr/bin/python3 is Python 3.9.6, which may be too old?

But also, my custom installed python3 via homebrew is not 3.11 either. My /opt/homebrew/bin/python3 is Python 3.10.9

MacBook Pro M1

Re:Using LLaMA with M1 Mac and Python 3.11 by datadeft on Sunday March 12, 2023 @08:11PM (#35128620)
brew install [email protected]