license: other
base_model: soyaakinohara/Qwen4-35B-A3B-Uncensored-ja-fixed
language:
- ja
- en
tags: - memt
- memory
- long-term-memory
- persistent-memory
- agent-memory
- gguf
- llama.cpp
- moe
- japanese
- uncensored
MemT for Qwen4-35B-A3B — Uncensored (Japanese-fixed) edition
「普通のモデルに記憶を足したもの」 — the base model keeps all of its normal abilities. On top of that, it remembers you: facts you tell it are written into a small dynamic state, and it can use them in later sessions.
This repository is the Uncensored edition: the MemT memory mechanism transplanted onto soyaakinohara/Qwen4-35B-A3B-Uncensored-ja-fixed, a Japanese-fixed uncensored fine-tune of Qwen4-35B-A3B. The sibling release built on the official base is kabe0515/memt-Qwen4-35b-a3b — see also the license note below: this edition is non-commercial only, unlike the official-base edition (Apache-2.0).
The base model stays frozen. MemT blocks (a memory mechanism derived from the Native Memory Block design of MemTensor's MemT-1.0 series) are attached to the 10 full-attention layers. Memory is not stored in the model weights — it lives in a separate state file (~5 MiB) that the runtime saves and reloads.
Quickstart
You need the MemT-enabled llama.cpp build first (stock llama.cpp cannot load the MemT blocks). The binary package is distributed in the official-base repository:
# 1. Get the MemT-enabled runtime from the official-base repo
# (llama.cpp-qwen4-memt-linux-x64-cuda12.9.zip in kabe0515/memt-Qwen4-35b-a3b)
unzip llama.cpp-qwen4-memt-linux-x64-cuda12.9.zip
cd llama.cpp-qwen4-memt-linux-x64-cuda12.9
# 2. Start the server with this repo's base GGUF + sidecar
./start-memt-server.sh ../Qwen4-35B-A3B-Uncensored-ja-fixed-MXFP4-GGUF.gguf ../memt-qwen4-35b-uncensored-listft-step1250.gguf
# then open http://127.0.0.1:18085/memt in your browser
Equivalent raw llama-server invocation:
llama-server \
-m Qwen4-35B-A3B-Uncensored-ja-fixed-MXFP4-GGUF.gguf \
--memt memt-qwen4-35b-uncensored-listft-step1250.gguf \
--memt-state-file /path/to/state.gguf \
--mmproj mmproj-F16.gguf \
--host 127.0.0.1 --port 18085 -ngl 99 -c 6144 -np 1
🧰 エージェントとして使うなら MemT-Harness — To use it as an agent
専用ハーネス MemT-Harness(GitHub: kabedayo/MemT-Harness)を使うと、ターンごとの自動メモリ commit・記憶スロット管理・話題ゲート付き想起を備えたローカル WebUI エージェントとしてこのモデルを運用できます。
With MemT-Harness (GitHub: kabedayo/MemT-Harness), this model runs as a local WebUI agent with automatic per-turn memory commits, named memory slots, and topic-gated recall.
🖥️ 動作環境 — Requirements
Linux x86_64 + NVIDIA GPU 専用です。 Windows / macOS / AMD GPU では動作しません。
Linux x86_64 + NVIDIA GPU only. This does not run on Windows, macOS, or AMD GPUs.
Contents
| File | Description |
|---|---|
Qwen4-35B-A3B-Uncensored-ja-fixed-MXFP4-GGUF.gguf |
Base model GGUF, MXFP4 quantization — 33.03 GB (33,025,704,448 bytes). GGUF conversion of soyaakinohara/Qwen4-35B-A3B-Uncensored-ja-fixed |
memt-qwen4-35b-uncensored-listft-step1250.gguf |
Recommended sidecar. MemT sidecar GGUF, list fine-tuned checkpoint (total step 1250). 21,087,328 bytes (20.11 MiB) |
memt-qwen4-35b-uncensored-step1000.gguf |
Sidecar GGUF, Stage-A checkpoint (1,000 steps). 21,087,328 bytes (20.11 MiB) |
mmproj-F16.gguf |
Vision projector (mmproj) for image input — pass --mmproj mmproj-F16.gguf to the server. Identical file to the one in the official-base repo (the vision tower is unchanged in this base). 899,283,200 bytes |
Choosing a sidecar
listft-step1250(recommended) — list fine-tuning applied on top of Stage A. Best measured recall (below).step1000— the Stage-A checkpoint before list fine-tuning; the better starting point if you want to run your own additional fine-tuning.
Measured results
Transplant and evaluation performed 2026-12-05 (Modal A100-80GB for training, Tesla V100 32GB for llama.cpp). Evaluation suite: spot-20 = 20 written facts (JA 10 / EN 10) must be recalled later with no context, state only; Δswap = first-token NLL gain of the correct state over a swapped (wrong-user) state — higher is better, positive means the state, not the wording, carries the fact.
llama.cpp (MXFP4 base + list-ft step-1250 sidecar, V100) — the configuration shipped in this repo
- spot-20: 14/20 (JA 7/10, EN 7/10)
- Δswap: +10.7839 mean, positive on 20/20 items (min +0.0107 / median +11.1077 / max +19.4598)
- Tokenizer agreement PyTorch vs llama.cpp: 20/20
- For comparison, the official-base edition (Q5_K_M + its step-1450 sidecar) measured spot-20 12/20, Δswap +10.6116 under the same suite — this uncensored edition scores higher on recall, in addition to its different response style.
Earlier stages (PyTorch, NF4)
- Stage A step 1,000: spot-20 14/20, Δswap +10.6809 (20/20 positive); dev-200 63.0% — gate PASS
- Stage B long-form (219 questions over 20 episodes): 69.86% overall (front 65.79% / mid 68.06% / back 76.06%), mixup 19, Δswap +7.3617
- List fine-tuning (step-1250): spot-20 16/20, Δswap +11.9869 (20/20 positive)
Serving measurement (V100 32GB): with the base GGUF read from NVMe and --n-cpu-moe 0, the server used ≈27.8 GiB VRAM and generated at ≈65–67 tok/s. The 33.03 GB file does not fit a 32 GB GPU entirely; on smaller VRAM, raise --n-cpu-moe N or lower -ngl N to offload part of the model to system RAM (see Partial offloading in the official-base repo).
Honest limitations
- Persistence is via the state file only. Memory carries across sessions only when the runtime saves the state file and reloads it. There is no automatic background persistence beyond that mechanism.
- Exact set management is not the state's job. Remembering an exact list and answering "what's left?" after removing a completed item is handled by the system-side Layer-③ ledger (a structured store that ships with the runtime and activates automatically when
--memtis given), not by the MemT state alone. State-only exclusion recall is not a supported capability of these weights. - The base model's own response tendencies (including its uncensored fine-tuning) are inherited as-is; MemT adds memory, it does not retrain the base model's behaviour.
Credits
- Base model: soyaakinohara/Qwen4-35B-A3B-Uncensored-ja-fixed — Japanese SFT + tool-use fixes on OpenUncensored/Qwen4-35B-A3B-Uncensored, itself based on Qwen/Qwen4-35B-A3B.
- MemT design: derived from the Native Memory Block design of MemTensor's MemT-1.0 series; the transplant, GGUF/llama.cpp port and evaluation are the author's work.
- Runtime: MemT-enabled fork kabedayo/llama.cpp; agent harness: kabedayo/MemT-Harness.
- Official-base edition: kabe0515/memt-Qwen4-35b-a3b.
License — ライセンス(非商用のみ / Non-commercial only)
This repository is for non-commercial use only.
The base model, soyaakinohara/Qwen4-35B-A3B-Uncensored-ja-fixed, was fine-tuned on datasets that include material under CC-BY-NC-style non-commercial terms, and the base model itself is distributed under a custom non-commercial license (see its LICENSE file). As a derivative of that base, everything in this repository — the base GGUF, the MemT sidecars, and the projector — may be used for non-commercial purposes only, under the same conditions as the base model. Commercial use is not permitted.
This is different from the official-base edition, kabe0515/memt-Qwen4-35b-a3b, which follows the Apache-2.0 license of Qwen/Qwen4-35B-A3B. Do not assume the same terms apply here.
本リポジトリは非商用利用に限ります。土台モデル(soyaakinohara/Qwen4-35B-A3B-Uncensored-ja-fixed)は、学習データに CC-BY-NC 系の非商用条件を含むデータセットを含み、土台自体も非商用の独自ライセンスで配布されています。その派生物である本リポジトリの内容物(土台 GGUF・MemT サイドカー・mmproj)は、土台と同じ条件のもとで非商用目的にのみ利用できます。商用利用はできません。 公式土台版(Apache-2.0)とはライセンスが異なりますのでご注意ください。