Edit model card

Llama 2 13b Chat German

These files are GGML format model files for Llama 2 13b Chat German. Please find all information about the model in the original repository.

GGML files are for CPU + GPU inference using llama.cpp and libraries and UIs which support this format, such as:

Prompt Template

Llama2 Chat uses a new prompt format:

<s>[INST] <<SYS>>
You are a helpful, respectful and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature.

If a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information. Please answer in the same language as the user.
<</SYS>>

This is a test question[/INST] This is a answer </s><s>

See also the original implementation here.

There is also a (so far non-documented?) method right in transformers to generate the correct tokenization: LLamaTokenizer._build_conversation_input_ids.

Compatibility

q4_0

So far, I only quantized a q4_0 version for my own use. Please let me know if there is demand for other quantizations. These should be compatbile with any UIs, tools and libraries released since late May.

Provided files

Name Quant method Bits Size Max RAM required Use case
llama-13b-chat-german.ggmlv3.q4_0.bin q4_0 4 7.37 GB ~9.8 GB Original llama.cpp quant method, 4-bit.

Note: the above RAM figures assume no GPU offloading. If layers are offloaded to the GPU, this will reduce RAM usage and use VRAM instead.

How to run in llama.cpp

I use the following command line; adjust for your tastes and needs:

./main -t 10 -ngl 32 -m llama-13b-chat-german.ggmlv3.q4_0.bin --color -c 4096 --temp 0.7 --repeat_penalty 1.1 -n -1 -p "..."

If you're able to use full GPU offloading, you should use -t 1 to get best performance.

If not able to fully offload to GPU, you should use more cores. Change -t 10 to the number of physical CPU cores you have, or a lower number depending on what gives best performance.

Change -ngl 32 to the number of layers to offload to GPU. Remove it if you don't have GPU acceleration.

If you want to have a chat-style conversation, replace the -p <PROMPT> argument with -i -ins

How to run in text-generation-webui

Further instructions here: text-generation-webui/docs/llama.cpp-models.md.

Thanks

Special thanks to Meta for the great Orca Mini base model and TheBloke for his great work quantizing billions of models (and for his template for this README).

Downloads last month
0
Inference Examples
Inference API (serverless) has been turned off for this model.