Repository navigation
Release packaging: Windows installer, Linux tarball, release workflow; engine=auto; legacy/ cleanup - #3
Merged
Conversation
…low; engine=auto - legacy/: the earlier Python prototypes (CragChat, MemOS, v2) moved out of the root - engine=auto (default): llama.cpp in-process when it loads, else the Python worker - first start downloads the GGUF base model (models.json gguf url) and the retrieval models; --offline / auto_provision=0 to skip, --provision fetches everything - config next to the binary when ./memagent.ini is missing; llama libraries found in cache/llama, lib/ or the exe folder - no Python: clear 'training: off' notice, auto consolidation off, and a readable consolidation error instead of 'exit -1' - Mem.Https loads cacert.pem next to the binary (Windows has no OpenSSL CA store); Windows console in UTF-8 - scripts/package.sh (make package), packaging/memagent.iss, .github/workflows/release.yml (Linux + Windows builds, smoke tests, release on v* tags) - llama_setup.sh: LLAMA_PORTABLE (no -march=native), LLAMA_LIBS_ONLY Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NPVFJHeBeotAKkU7EPbTgn
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this adds
memagent is a console app. After this PR you download a release, run it, and it works: on first start it downloads its own models, and it runs on the in-process llama.cpp engine by default.
Repo cleanup
v2/,memos_stable_4bit.zip, the old rootrequirements.txtandinstall.sh) moved tolegacy/, with their README. The repo root is now memagent only.Defaults: llama.cpp when it works
engine=autois the new default. It runs llama.cpp in-process when the library and the GGUF model load, and otherwise falls back to the Python worker with a one-line notice.engine=llama/engine=pythonstill force one or the other.First start downloads what's missing (
Mem.Setup)"gguf": {"url": ...}entry inmodels.json. These are published GGUFs of the same checkpoints, all URLs verified: tiny f16 271 MB, small q8_0 1.9 GB, medium q8_0 4.3 GB, large Q4_K_M 14 GB.cache/).--offlineorauto_provision=0skips the downloads;--provisiondownloads everything and exits../memagent.ini, it uses the one next to the binary. The llama.cpp libraries are looked for incache/llama, thenlib/, then the exe folder.Without Python
training: off (no python3 found) ...and turns auto-consolidation off. Chat and short-term memory keep working.exit -1:.Windows readiness
Mem.Httpsalso loads acacert.pemnext to the binary when there is one, because OpenSSL on Windows has no CA store.Packaging
scripts/package.sh(make package VERSION=x.y.z) builds a self-contained folder plus tarball (3.9 MB): the binary, the llama.cpp libraries inlib/(RUNPATH$ORIGIN), the releasememagent.ini(auto engine, CPU), models.json, priors, the trainer, and llama.cpp's GGUF converters (MIT, about 5 MB) so training works from an install.packaging/memagent.issis an Inno Setup installer.data\andcache\can live next to the exe.memagent.iniis kept on upgrade, and uninstall removescache\but keeps the user's memory indata\..github/workflows/release.yml:-march=native).cacert.pembundled.v*tag publishes the tarball, the setup exe and a portable zip as a GitHub release. Pull requests build and test only.llama_setup.sh: gainsLLAMA_PORTABLE=1andLLAMA_LIBS_ONLY=1.Testing (Linux, in the build container)
make test: extraction parity 458/458, retrieval, TLS checks (also with acacert.pemnext to the binary), and 22 Python tests.scripts/e2e_demo.shwithengine=autopasses. It resolves to llama.cpp and covers two consolidations, a correction,/forget,/rollbackand non-ASCII facts.Mem.Https, chatted on llama.cpp, and stored and recalled a fact./sleeptrained, converted with the bundled converter and hot-swapped./abanswered "You live in Oslo." from the LoRA alone./sleepgives a readable error.lib/:autofalls back to the Python worker and still answers from memory.Not tested
memagent.exehere, because building FPC's win64 runtime from the upstream source was blocked in this environment.Generated by Claude Code