Mozilla-Ocho / llamafile

Distribute and run LLMs with a single file.
https://llamafile.ai
Other
19.39k stars 982 forks source link

Feature Request: Add support for GLM4-9B and related models #509

Open VarLad opened 2 months ago

VarLad commented 2 months ago

Prerequisites

Feature Description

Recently llama.cpp has got support for ChatGLM models, namely GLM4-9B and ChatGLM3-6B, you can see more details here: https://github.com/ggerganov/llama.cpp/pull/8031 It would be nice if llamafile can sync with upstream such that we can use these models with llamafile as well.

Motivation

The models are pretty powerful and at least on benchmarks, the GLM4-9B beats LLAMA3-8B in many benchmarks, making it an ideal model for those with weaker machines or cheaper inference.

Possible Implementation

Merging with upstream should solve the problem.