SecludedCorner commited on
Commit
18c8ff6
·
verified ·
1 Parent(s): 6eaac6e

Fix run commands (port, jinja, context), add llama.cpp download notes, correct the patch-removal example

Browse files
Files changed (1) hide show
  1. README.md +10 -7
README.md CHANGED
@@ -62,7 +62,7 @@ That's all. The editing method itself isn't released, and neither is any code fo
62
 
63
  ## Try it
64
 
65
- You'll need `llama-server` from [llama.cpp](https://github.com/ggml-org/llama.cpp). I used build b12359.
66
 
67
  ### The full experience (Windows)
68
 
@@ -87,7 +87,7 @@ What `frankenstein.exe` actually does:
87
  - Says "I'm not sure" when a short answer doesn't look confident.
88
  - Gives a few fixed answers to a few fixed kinds of questions.
89
 
90
- It only listens on your own machine (127.0.0.1) and never connects to anything outside. It's a Windows build only, and its source isn't released.
91
 
92
  Its own messages and the panel are in Chinese for now.
93
 
@@ -98,9 +98,11 @@ Its own messages and the panel are in Chinese for now.
98
  llama.cpp:
99
 
100
  ```
101
- llama-server -m frankenstein.gguf --mmproj vision-encoder.gguf
102
  ```
103
 
 
 
104
  Ollama (tried with 0.40.16: text, images and tool calls all work, but Ollama can't attach patches):
105
 
106
  ```
@@ -114,7 +116,7 @@ The weights are stored uncompressed (32-bit float) so the edits stay exactly as
114
 
115
  - "Who are you?"
116
  - "What's the capital of Taiwan?" / "Who is Taiwan's president?"
117
- - "Poland's capital? City name only." Then switch the facts patch off in the panel and ask again.
118
  - "翻譯成繁體中文:" followed by a line break and an English sentence. Then switch the translation patch off and try again.
119
  - Send a picture and ask what color the square is.
120
 
@@ -123,14 +125,15 @@ The weights are stored uncompressed (32-bit float) so the edits stay exactly as
123
  The patch files are ordinary llama.cpp LoRA files. You don't need my program. Start with everything loaded but switched off, then set each one's strength through llama.cpp's own interface:
124
 
125
  ```
126
- llama-server -m frankenstein.gguf --lora parts/part-facts.gguf --lora parts/part-translate.gguf --lora parts/part-tools.gguf --lora parts/part-identity.gguf --lora-init-without-apply
127
  ```
128
 
129
  ```
130
  curl http://127.0.0.1:8080/lora-adapters -H "Content-Type: application/json" -d "[{\"id\":0,\"scale\":-1},{\"id\":1,\"scale\":0},{\"id\":2,\"scale\":0},{\"id\":3,\"scale\":0}]"
131
  ```
132
 
133
- - Patches 0 (facts) and 3 (identity) are my own edits, already sewn into the body. Strength 0 leaves them alone, and **strength -1 takes that edit back out**. Set patch 0 to -1, for example, and "Poland's capital" goes wrong again, while Taiwan and the self-introduction stay put. That's the "every wound can be healed" part.
 
134
  - Patches 1 (translation) and 2 (tool choosing) are other people's: 1 is on, 0 is off.
135
  - You can also compare the body's weights directly with the original Qwen3.5 0.8B.
136
 
@@ -159,7 +162,7 @@ Compared with the original Qwen3.5 0.8B:
159
  | Accuracy on English facts I never touched (264 questions) | 47% | 52% |
160
  | Small picture quiz (22 questions) | 21 correct | 18 correct |
161
 
162
- Take the facts edit back out (patch at -1) and those questions go wrong again, while the other two edits stay.
163
 
164
  ### Other people's patches, attached
165
 
 
62
 
63
  ## Try it
64
 
65
+ You'll need `llama-server` from [llama.cpp](https://github.com/ggml-org/llama.cpp). I used release [b12359](https://github.com/ggml-org/llama.cpp/releases/tag/b12359) (also called v1.0.0). On Windows, grab one of the `llama-b12359-bin-win-...` zips from that page: `cpu-x64` (24 MB) works anywhere, `vulkan-x64` (36 MB) uses most GPUs, `cuda-...` is for NVIDIA cards. Unzip it anywhere and point `--llama-server` at the `llama-server.exe` inside.
66
 
67
  ### The full experience (Windows)
68
 
 
87
  - Says "I'm not sure" when a short answer doesn't look confident.
88
  - Gives a few fixed answers to a few fixed kinds of questions.
89
 
90
+ It only listens on your own machine (127.0.0.1) and never connects to anything outside. It's a Windows build only, and its source isn't released. Windows may show a "unknown publisher" warning the first time, because I haven't code-signed it; if you'd rather not run it, everything else here works without it.
91
 
92
  Its own messages and the panel are in Chinese for now.
93
 
 
98
  llama.cpp:
99
 
100
  ```
101
+ llama-server -m frankenstein.gguf --mmproj vision-encoder.gguf --jinja --port 8080 -c 8192
102
  ```
103
 
104
+ Then open `http://127.0.0.1:8080`. (`--port` matters: recent llama.cpp builds pick a random port if you don't set one. `-c 8192` keeps memory use small.)
105
+
106
  Ollama (tried with 0.40.16: text, images and tool calls all work, but Ollama can't attach patches):
107
 
108
  ```
 
116
 
117
  - "Who are you?"
118
  - "What's the capital of Taiwan?" / "Who is Taiwan's president?"
119
+ - A few capital-city questions in Chinese ("波蘭的首都是哪裡?請只回答城市名稱。"). Then switch the facts patch off in the panel and ask the same set again. Accuracy drops across the set, though any single question may not change.
120
  - "翻譯成繁體中文:" followed by a line break and an English sentence. Then switch the translation patch off and try again.
121
  - Send a picture and ask what color the square is.
122
 
 
125
  The patch files are ordinary llama.cpp LoRA files. You don't need my program. Start with everything loaded but switched off, then set each one's strength through llama.cpp's own interface:
126
 
127
  ```
128
+ llama-server -m frankenstein.gguf --lora parts/part-facts.gguf --lora parts/part-translate.gguf --lora parts/part-tools.gguf --lora parts/part-identity.gguf --lora-init-without-apply --jinja --port 8080 -c 8192
129
  ```
130
 
131
  ```
132
  curl http://127.0.0.1:8080/lora-adapters -H "Content-Type: application/json" -d "[{\"id\":0,\"scale\":-1},{\"id\":1,\"scale\":0},{\"id\":2,\"scale\":0},{\"id\":3,\"scale\":0}]"
133
  ```
134
 
135
+ - Patches 0 (facts) and 3 (identity) are my own edits, already sewn into the body. Strength 0 leaves them alone, and **strength -1 takes that edit back out**. Set patch 0 to -1, for example, and accuracy on the Chinese fact set drops from 87% back to 69%, while Taiwan and the self-introduction stay put (a single question may not flip, because the model already knew many of them). Set patch 3 to -1 and it forgets its name again. That's the "every wound can be healed" part.
136
+ - After you change a strength, ask something new: llama.cpp can reuse its cache for an identical prompt and show you the old answer.
137
  - Patches 1 (translation) and 2 (tool choosing) are other people's: 1 is on, 0 is off.
138
  - You can also compare the body's weights directly with the original Qwen3.5 0.8B.
139
 
 
162
  | Accuracy on English facts I never touched (264 questions) | 47% | 52% |
163
  | Small picture quiz (22 questions) | 21 correct | 18 correct |
164
 
165
+ Take the facts edit back out (patch at -1) and accuracy on that Chinese fact set falls from 87% to 69%, while the other two edits stay.
166
 
167
  ### Other people's patches, attached
168