Instructions to use FloatDo/EXAONE-3.5-7.8B-Instruct-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use FloatDo/EXAONE-3.5-7.8B-Instruct-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf FloatDo/EXAONE-3.5-7.8B-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf FloatDo/EXAONE-3.5-7.8B-Instruct-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf FloatDo/EXAONE-3.5-7.8B-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf FloatDo/EXAONE-3.5-7.8B-Instruct-GGUF:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf FloatDo/EXAONE-3.5-7.8B-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf FloatDo/EXAONE-3.5-7.8B-Instruct-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf FloatDo/EXAONE-3.5-7.8B-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf FloatDo/EXAONE-3.5-7.8B-Instruct-GGUF:Q4_K_M
Use Docker
docker model run hf.co/FloatDo/EXAONE-3.5-7.8B-Instruct-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use FloatDo/EXAONE-3.5-7.8B-Instruct-GGUF with Ollama:
ollama run hf.co/FloatDo/EXAONE-3.5-7.8B-Instruct-GGUF:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use FloatDo/EXAONE-3.5-7.8B-Instruct-GGUF with Docker Model Runner:
docker model run hf.co/FloatDo/EXAONE-3.5-7.8B-Instruct-GGUF:Q4_K_M
- Lemonade
How to use FloatDo/EXAONE-3.5-7.8B-Instruct-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull FloatDo/EXAONE-3.5-7.8B-Instruct-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.EXAONE-3.5-7.8B-Instruct-GGUF-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Add files using upload-large-folder tool
Browse files- .gitattributes +4 -0
- EXAONE-3.5-7.8B-Instruct.F16.gguf +3 -0
- EXAONE-3.5-7.8B-Instruct.Q4_K_M.gguf +3 -0
- EXAONE-3.5-7.8B-Instruct.Q5_K_M.gguf +3 -0
- EXAONE-3.5-7.8B-Instruct.Q8_0.gguf +3 -0
- README.md +63 -5
- exaone-gguf-fallback.patch +31 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,7 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
EXAONE-3.5-7.8B-Instruct.Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
EXAONE-3.5-7.8B-Instruct.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
EXAONE-3.5-7.8B-Instruct.Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
EXAONE-3.5-7.8B-Instruct.F16.gguf filter=lfs diff=lfs merge=lfs -text
|
EXAONE-3.5-7.8B-Instruct.F16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:061f388d7d4b2d868df255fc242ddf8d62de761c33cbaeed2f6a7958971299de
|
| 3 |
+
size 15641630656
|
EXAONE-3.5-7.8B-Instruct.Q4_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e7e414eb3170959c1621253d5edfc58cff5bca27e2169ef939308383c096c363
|
| 3 |
+
size 4770650048
|
EXAONE-3.5-7.8B-Instruct.Q5_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:37d4b2e27f6e68ffa5cc595bf60d081e730c0b7059b3cc38fd8f416f79bb87f0
|
| 3 |
+
size 5569664960
|
EXAONE-3.5-7.8B-Instruct.Q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:568246549fc32ed784d7790843670943aa505ac25b031deda0cb64fe1ffb357d
|
| 3 |
+
size 8312084416
|
README.md
CHANGED
|
@@ -1,5 +1,63 @@
|
|
| 1 |
-
---
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Calvin806/EXAONE-3.5-7.8B-Instruct-GGUF
|
| 2 |
+
|
| 3 |
+
GGUF quantizations for **EXAONE-3.5-7.8B-Instruct**.
|
| 4 |
+
|
| 5 |
+
## Contents
|
| 6 |
+
This folder typically contains:
|
| 7 |
+
- `EXAONE-3.5-7.8B-Instruct.F16.gguf`
|
| 8 |
+
- `EXAONE-3.5-7.8B-Instruct.Q4_K_M.gguf`
|
| 9 |
+
- `EXAONE-3.5-7.8B-Instruct.Q5_K_M.gguf`
|
| 10 |
+
- `EXAONE-3.5-7.8B-Instruct.Q8_0.gguf` (optional)
|
| 11 |
+
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
## ๐ง llama.cpp patch (EXAONE GGUF quantize compatibility)
|
| 15 |
+
|
| 16 |
+
EXAONE GGUF ๋ณํ/์์ํ ๊ณผ์ ์์ ์ผ๋ถ ๋ชจ๋ธ(์: **2.4B / 7.8B**) ๊ฐ **KV key ๋ค์ด๋ฐ ๋ถ์ผ์น**๊ฐ ๋ฐ๊ฒฌ๋์์ต๋๋ค.
|
| 17 |
+
|
| 18 |
+
- ์ด๋ค GGUF๋ `exaone.attention.layer_norm_epsilon`๋ง ์กด์ฌ
|
| 19 |
+
- ์ด๋ค GGUF๋ `exaone.attention.layer_norm_rms_epsilon`๋ง ์กด์ฌ
|
| 20 |
+
|
| 21 |
+
์ด ์ํ์์ vanilla llama.cpp์ `llama-quantize`๊ฐ ํน์ ํค๋ฅผ ์ฐพ์ง ๋ชปํด ์คํจํ ์ ์์ด,
|
| 22 |
+
**llama.cpp์ model loader์์ gguf key lookup์ fallback์ ์ถ๊ฐํ๋ ํจ์น**๋ฅผ ์ ์ฉํ์ต๋๋ค.
|
| 23 |
+
|
| 24 |
+
### What was patched
|
| 25 |
+
|
| 26 |
+
`src/llama-model-loader.cpp`์์ `gguf_find_key()` lookup์ ๋ค์ fallback์ ์ํํ๋๋ก ์์ :
|
| 27 |
+
|
| 28 |
+
- key๊ฐ `exaone.attention.layer_norm_epsilon`์ด๊ณ ์ฐพ์ง ๋ชปํ๋ฉด โ `exaone.attention.layer_norm_rms_epsilon`๋ก ์ฌ์๋
|
| 29 |
+
- key๊ฐ `exaone.attention.layer_norm_rms_epsilon`์ด๊ณ ์ฐพ์ง ๋ชปํ๋ฉด โ `exaone.attention.layer_norm_epsilon`๋ก ์ฌ์๋
|
| 30 |
+
|
| 31 |
+
์ด ํจ์น๋ฅผ ํตํด **EXAONE 3.5 / EXAONE-Deep 2.4B, 7.8B, 32B** ๊ณ์ด์ ๋์ผ ํ์ดํ๋ผ์ธ์ผ๋ก GGUF+quantizeํ ์ ์์ต๋๋ค.
|
| 32 |
+
|
| 33 |
+
### Patch note (minimal diff summary)
|
| 34 |
+
- Added a fallback wrapper/hook for `gguf_find_key()` inside `llama-model-loader.cpp`
|
| 35 |
+
- Ensured all lookups in that translation unit route through the fallback
|
| 36 |
+
|
| 37 |
+
This repo includes:
|
| 38 |
+
- `exaone-gguf-fallback.patch`
|
| 39 |
+
|
| 40 |
+
### Tested llama.cpp commit
|
| 41 |
+
- `021cc28bef4dd7d0bf9c91dbbd0803caa6cb15f2`
|
| 42 |
+
|
| 43 |
+
---
|
| 44 |
+
|
| 45 |
+
## Build (CUDA)
|
| 46 |
+
```bash
|
| 47 |
+
git clone https://github.com/ggml-org/llama.cpp
|
| 48 |
+
cd llama.cpp
|
| 49 |
+
git apply ../exaone-gguf-fallback.patch
|
| 50 |
+
|
| 51 |
+
rm -rf build
|
| 52 |
+
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DGGML_CUDA=ON
|
| 53 |
+
cmake --build build -j
|
| 54 |
+
```
|
| 55 |
+
|
| 56 |
+
## Convert / Quantize
|
| 57 |
+
```bash
|
| 58 |
+
# Convert HF snapshot -> GGUF(F16)
|
| 59 |
+
python3 llama.cpp/convert_hf_to_gguf.py <LOCAL_SNAPSHOT_DIR> --outtype f16 --outfile model.F16.gguf
|
| 60 |
+
|
| 61 |
+
# Quantize (example: Q4_K_M)
|
| 62 |
+
llama.cpp/build/bin/llama-quantize model.F16.gguf model.Q4_K_M.gguf Q4_K_M
|
| 63 |
+
```
|
exaone-gguf-fallback.patch
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/src/llama-model-loader.cpp b/src/llama-model-loader.cpp
|
| 2 |
+
index bd9e6da88..5a120d69a 100644
|
| 3 |
+
--- a/src/llama-model-loader.cpp
|
| 4 |
+
+++ b/src/llama-model-loader.cpp
|
| 5 |
+
@@ -1,4 +1,26 @@
|
| 6 |
+
#include "llama-model-loader.h"
|
| 7 |
+
+#include <cstring>
|
| 8 |
+
+
|
| 9 |
+
+// EXAONE_GGUF_FIND_KEY_MACRO_HOOK
|
| 10 |
+
+// Hook gguf_find_key() inside this translation unit to handle EPS/RMS key mismatch for EXAONE.
|
| 11 |
+
+static auto gguf_find_key_orig = &gguf_find_key;
|
| 12 |
+
+
|
| 13 |
+
+static int gguf_find_key_exaone_fallback(const gguf_context * ctx, const char * key) {
|
| 14 |
+
+ int kid = gguf_find_key_orig(ctx, key);
|
| 15 |
+
+ if (kid >= 0) return kid;
|
| 16 |
+
+
|
| 17 |
+
+ if (strcmp(key, "exaone.attention.layer_norm_epsilon") == 0) {
|
| 18 |
+
+ return gguf_find_key_orig(ctx, "exaone.attention.layer_norm_rms_epsilon");
|
| 19 |
+
+ }
|
| 20 |
+
+ if (strcmp(key, "exaone.attention.layer_norm_rms_epsilon") == 0) {
|
| 21 |
+
+ return gguf_find_key_orig(ctx, "exaone.attention.layer_norm_epsilon");
|
| 22 |
+
+ }
|
| 23 |
+
+ return -1;
|
| 24 |
+
+}
|
| 25 |
+
+
|
| 26 |
+
+// Redirect all gguf_find_key calls in this file
|
| 27 |
+
+#define gguf_find_key(ctx, key) gguf_find_key_exaone_fallback((ctx), (key))
|
| 28 |
+
+
|
| 29 |
+
|
| 30 |
+
#include "ggml.h"
|
| 31 |
+
|