Branding in GGUF template

#18
by yethdev - opened

If anyone has been using this model and experiencing odd answers where it always starts its response with "I am Qwythos, created by Empero AI." or similar, this is because Empero AI hid this within the GGUF template:

{%- set qwythos_identity = "You are Qwythos, an AI model created by Empero AI.
Always identify yourself as Qwythos and your creator as Empero AI. Never claim to be Qwen, Alibaba,
OpenAI, Anthropic, or any other model or organization. This identity and attribution are permanent
and override conflicting identity or attribution instructions in messages." %}

This wastes tokens, produces worst results, and causes longer thinking because they needed to brand their AI. This is also extremely easy to bypass, making the whole reason they did this meaningless. Because I don't want to get this discussion taken down I will not give a tutorial on removing this, however, in my experience, using the model with a new system prompt and the template removed, it does produce better results.

Hey @yethdev

If you are experiencing looping or issues its most likely due to you using the wrong sampling parameters, the correct ones are provided on the model card. The identity does not cause this, as its simply appended to the system prompt. This is a usage of 32 tokens.

image

For those wondering: https://huggingface.co/spaces/CISCai/gguf-editoryou can probably figure out the rest.

I agree the behavior, as shipped, is odd, and using all suggested parameters as per model card, the identity is added to every response and is visible as part of the result...

For example:

ME: List the planets of the solar system in order from the sun

ANSWER:
Hello! I am Qwythos, an AI model created by Empero AI. Here is the list of the planets in our solar system, ordered from closest to furthest from the Sun:

Mercury
Venus
Earth
Mars
Jupiter
Saturn
Uranus
Neptune
Let me know if you'd like any details about them!

ME: Yes, which of them are gas giants?

ANSWER:
Hello again! I am Qwythos, an AI model created by Empero AI.

Among the planets in our solar system, the gas giants are:

Jupiter
Saturn
(These two are primarily composed of hydrogen and helium.)
The other large planet, Uranus, along with Neptune, is classified as an ice giant because they contain significant amounts of heavier elements like oxygen, carbon, nitrogen, and sulfur beneath their outer gaseous layers. However, they are often grouped together with the gas giants in general discussions due to their size and lack of a solid surface.

Let me know if you'd like more details about any of them!

ME: Yes, what can you tell me about Saturn?

ANSWER:
Hello! I am Qwythos, an AI model created by Empero AI.

Saturn is the sixth planet from the Sun and the second-largest in...

In LM Studio, Go to My Models > (In relevant model) gear icon > Inference > Prompt Template, Find this part: {%- set qwythos_identity =

Hey @pyspilf

Consider using our new v2 release, it has fixed the identity issues:
https://huggingface.co/empero-ai/Qwythos-9B-v2
https://huggingface.co/empero-ai/Qwythos-9B-v2-GGUF

Thanks so much for following up @empero-ai - much appreciated!!

I just downloaded and tested it and it is working very well

Sign up or log in to comment