Earlier quoted context omitted.
In the Llama 2 paper benchmarks they did mention that Llama 2 is much worse at any kind of code generation than the OpenAI models, they were optimizing for conversational / natural language use-cases.
Interesting, what other openly licensed models are better at codegen? Or perhaps there is a version of llama 2 already fine tuned for codegen? There is starcoder but I had also not had great results with that one in my brief experiments
What's new in Llama 2 and how to run it locally
71–80 of 85 posts
Re: What's new in Llama 2 and how to run it locally
#72There's only mention of Nvidia GPUs on the web site, what about AMD?
On Linux, ExLlama and MLC LLM have native ROCm support, and there is a HIPified fork of llama.cpp as well.
Re: What's new in Llama 2 and how to run it locally
#73Earlier quoted context omitted.
5 tokens/s on 70B 4bit seems really high for your setup.
This is the command: ./main -m /media/z/models/TheBloke_Llama-2-70B-Chat-GGML/llama-2-70b-chat.ggmlv3.q4_0.bin -gqa 8 -t 13 -p "The prompt..." And this is the report at the end of the answer: llama_print_timings: load time = 999.84 ms llama_print_timings: sample time = 302.21 ms / 703 runs ( 0.43 ms per token, 2326.20 tokens per second) llama_print_timings: prompt eval time = 69377.40 ms / 300 tokens ( 231.26 ms per…
Re: What's new in Llama 2 and how to run it locally
#74If you're looking to run Llama 2 locally via a CLI or REST API (vs the web ui this article highlights), there's an open-source project some folks and I have been working on over the last few weeks: https://github.com/jmorganca/ollama More projects in this space: - llama.cpp which is a fast, low level runner (with bindings in several languages) - llm by Simon Willison which supports different backends and has a really…
I just wanted to call out that some of these quick-to-start tools are CPU only (eg ollama) which is great to play with but if you want your GPU you’ve gotta go to llama.cpp Further, the 70B for llama.cpp is still under development as far as I know.
Re: What's new in Llama 2 and how to run it locally
#75Earlier quoted context omitted.
That is an interesting idea. Can you tell me what is the switch for number of cores?
-t 32 Use a maximum of the number of physical cores and then scale down.
Re: What's new in Llama 2 and how to run it locally
#76Earlier quoted context omitted.
This is the command: ./main -m /media/z/models/TheBloke_Llama-2-70B-Chat-GGML/llama-2-70b-chat.ggmlv3.q4_0.bin -gqa 8 -t 13 -p "The prompt..." And this is the report at the end of the answer: llama_print_timings: load time = 999.84 ms llama_print_timings: sample time = 302.21 ms / 703 runs ( 0.43 ms per token, 2326.20 tokens per second) llama_print_timings: prompt eval time = 69377.40 ms / 300 tokens ( 231.26 ms per…
For more standardized speed benchmarking, I'd recommend benchmarking with something like `-c 128 -n 1920 --ignore-eos` (and skipping the `-p` entirely). The number that you care most about would be the "eval time" tokens/second - it tends to get slower as context increases, which is why it's sort of important to standardize. I think 2-3 t/s is about what's expected (Threadripper Pro 5000 w/ 8 channels of DDR-3200 sho…
Re: What's new in Llama 2 and how to run it locally
#77Earlier quoted context omitted.
"How can I sum this column of numbers?" "IDK, throw it at the LLM"
I do stuff like this sometimes when I have some csv or something and need it in JSON. Could easily be done with 1 line of bash or js or python or whatever but... it's easier to just let the LLM do it for me :|
Re: What's new in Llama 2 and how to run it locally
#78If you're looking to run Llama 2 locally via a CLI or REST API (vs the web ui this article highlights), there's an open-source project some folks and I have been working on over the last few weeks: https://github.com/jmorganca/ollama More projects in this space: - llama.cpp which is a fast, low level runner (with bindings in several languages) - llm by Simon Willison which supports different backends and has a really…
I just wanted to call out that some of these quick-to-start tools are CPU only (eg ollama) which is great to play with but if you want your GPU you’ve gotta go to llama.cpp Further, the 70B for llama.cpp is still under development as far as I know.
You can even extend context with RoPE!
Re: What's new in Llama 2 and how to run it locally
#79I've been evaluating running non-quantized models on a Google Cloud instance with various GPUs. To run a `vllm` backed Llama 2 7b model[1], start a Debian 11 spot instance, with (1) Nvidia L4 and a g2-standard-8 w/100GB of SSD disk (ignoring the advice to use a Cuda installer image): sudo apt-get update -y sudo apt-get install build-essential -y sudo apt-get install linux-headers-$(uname -r) -y wget https://developer…