Question about the license
THUDM/glm-4-9b-hf is released under GLM-4, but CogView4-6B which includes THUDM/glm-4-9b-hf as a text encoder, is released under the Apache 2.0 license.
So can we ignore the original glm-4 license when using from this repository? Otherwise, does the glm-4 license also apply to this text encoder?
While the text encoder seems to originate from THUDM/glm-4-9b-hf, it has been retrained for image generation, which likely impaired its text generation performance, effectively making it an independent model with a new Apache 2.0 license.
In other words, you cannot simply use this text encoder for text-generation, so there doesn't appear to be any exploitation of license conflicts. The missing lm_head
in this GlmModel
text encoder also demonstrates this point.
CogView4-6B does not fully utilize all layers of GLM-4-9B-hf; we only use 39 transformer layers instead of the full 40 layers.
Regarding the license, if you use GLM-4-9B-hf in this repo and use n with CogView4-6B for image generation, it follows the Apache 2.0 license. For text generation tasks, please follow the original GLM-4 license.
Thank you for clarifying!