Views
No views yet
Nota bene: while RoPE makes inferences with large contexts possible, you still need an awful lot of RAM when doing so. And since "32K" does not mean that you always have to use a context size of 32768 (only that the model was fine-tuned for that size), it is recommended that you keep your context as small as possible
If you need quantizations for Together Computer's Llama-2-7B-32K-Instruct model, then look for LLaMA-2-7B-32K-Instruct_GGUF
Nota bene: you will need 30+x GB of free disk space, at least - depending on your quantization
llama.cpp_in_Dockerllama.cpp_in_Docker
(let's call the new folder LLaMA-2-7B-32K)basic-python image - just use one of
the most popular onesdocker run --rm \
-v ./llama.cpp_in_Docker:/llama.cpp \
-t basic-python /bin/bashapt update
apt-get install software-properties-common -y
apt-get update
apt-get install g++ git make -y
cd /llama.cpp
git clone https://github.com/ggerganov/llama.cpp
cd llama.cpp/llama.cpp/llama.cpp/Makefile, right-click on it and
choose "Edit file"aarch64, and - in the line found (which looks like ifneq ($(filter aarch64%,$(UNAME_M)),)) -
change ifneq to ifeqmake
python3 -m pip install -r requirements.txt
python3 convert.py ../LLaMA-2-7B-32K./quantize ../LLaMA-2-7B-32K/ggml-model-f16.gguf \
../LLaMA-2-7B-32K/LLaMA-2-7B-32K-Q4_0.gguf Q4_0basic-python image may also be deleted (manually) unless you plan to use it again in the near future