metadata
license: other
license_name: gemma-terms-of-use
license_link: https://ai.google.dev/gemma/terms
GGUF quants for https://huggingface.co/HuggingFaceH4/zephyr-7b-gemma-v0.1
Zephyr is a series of language models that are trained to act as helpful assistants. Zephyr 7B Gemma is the third model in the series, and is a fine-tuned version of google/gemma-7b that was trained on on a mix of publicly available, synthetic datasets using Direct Preference Optimization (DPO). You can reproduce the training of this model via the recipe provided in the Alignment Handbook.
There are few things to consider when using this model with llama.cpp:
- Repeat penalty must be
1.0
(i.e. disabled) just like with the base model - The model was not trained with the system instructions (i.e. don't add the
system
instructions part of the chatml template) - Must stop on special token
<|im_end|>
instead of<eos>
otherwise the model goes on forever
Here's a setup that seems to work quite well to chat with the model. The Q4_K is very fast and gives ~90 t/s on a 3090 full offloaded:
./main -ins -r "<|im_end|>" --color -e --in-prefix "<|im_start|>user\n" --in-suffix "<|im_end|>\n<|im_start|>assistant\n" -c 0 --temp 0.7 --repeat-penalty 1.0 -ngl 29 -m ggml-zephyr-7b-gemma-v0.1-q4_k.gguf
Layers | Context | Template |
---|---|---|
28 |
8192 |
<bos><|im_start|>user |
Sample run:
== Running in interactive mode. ==
- Press Ctrl+C to interject at any time.
- Press Return to return control to LLaMa.
- To return control without starting a new line, end your input with '/'.
- If you want to submit another line, end your input with '\'.
> <|im_start|>user
How many helicopters can a human eat in one sitting?
<|im_end|>
<|im_start|>assistant
Zero. It is not possible for a human to eat a helicopter in one sitting, as helicopters are large, complex machines made of metal and other materials, not food. Humans are not capable of consuming such large objects. It is important to focus on consuming nutritious and healthy foods that are appropriate for human consumption.<|im_end|>
> <|im_start|>user
Zero? Not even one?
<|im_end|>
<|im_start|>assistant
Correct, a human cannot eat a helicopter. The statement "zero" refers to the fact that it is not possible for a human to consume a helicopter.
It is important to remember that helicopters are not food and should not be consumed. Consuming inedible objects can be dangerous and may cause harm to your health. It is important to focus on consuming nutritious and healthy foods that are appropriate for human consumption.<|im_end|>