Downloads · 30 days
11
100% of all-time downloads
kegokang/mini-engram-xinglan
mini-engram-xinglan is a machine learning model from kegokang. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Each directory is a "memory cartridge": pure LoRA weights (r=16, 40,370,176 params, bf16, ~81 MB), no base weights included. Attach one to Qwen/Qwen2.5-7B-Instruct and all of that tenant's baked-in facts come back.
Downloads · 30 days
11
100% of all-time downloads
All-time downloads
11
Public
Repo size
80.8 MB
Likes
0
Public
Click a slice to open those files.
.safetensors80.8 MB · 100%
From the Hugging Face model README
Each directory is a "memory cartridge": pure LoRA weights (r=16, 40,370,176
params, bf16, ~81 MB), no base weights included. Attach one to
Qwen/Qwen2.5-7B-Instruct and all of that tenant's baked-in facts come back.
| adapter | memorized content | own F1 (closed-book) |
|---|---|---|
xinglan/ | internal wiki of fictional company "Xinglan Tech" (123 self-study QA pairs) | 0.666 (base 0.126) |
hanhai/ | internal wiki of fictional company "Hanhai Robotics" (93 QA pairs) | 0.664 (base 0.113) |
The corpora are programmatically generated by scripts/make_demo_corpus.py and
contain no real data — the base model cannot know these facts (closed-book
F1 ≈ 0.12 confirms zero leakage).
# one process serving all tenant adapters, OpenAI-compatible API
vllm serve Qwen/Qwen2.5-7B-Instruct \
--enable-lora --max-lora-rank 64 \
--lora-modules xinglan=$PWD/xinglan hanhai=$PWD/hanhai
curl http://127.0.0.1:8000/v1/chat/completions -d '{
"model": "xinglan", "messages": [{"role":"user","content":"What is your reimbursement system called?"}]
}'
Or use scripts/serve.sh + scripts/chat.py from the repository.
Qwen/Qwen2.5-7B-Instruct (Apache 2.0);
redistribution must retain its LICENSE and notices (see the Apache 2.0
summary attached in each directory's README.md).See docs/paper/ in the repository (paper "Bake It or Retrieve It", under
arXiv submission).