Run this model with HF Jobs

Run tersemind/mini-engram-xinglan on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/tersemind/mini-engram-xinglan. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/tersemind/mini-engram-xinglan on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/tersemind/mini-engram-xinglan. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/tersemind/mini-engram-xinglan. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

mini-engram-xinglan β€” a "memory cartridge" LoRA adapter

A pure LoRA adapter (rank 16, 40,370,176 params, bf16, ~81 MB, no base weights) that stores an entire tenant's knowledge as parameters. Attach it to Qwen/Qwen2.5-7B-Instruct and every baked-in fact is recovered β€” closed-book, no retrieval, no context tokens consumed.

This adapter memorizes the internal wiki of "Xinglan Tech" (ζ˜ŸζΎœη§‘ζŠ€), a fictional company programmatically generated by scripts/make_demo_corpus.py (123 self-study QA pairs). The corpus contains no real data, so the base model cannot know any of these facts β€” its closed-book F1 of 0.126 confirms zero leakage.

closed-book F1
Qwen2.5-7B-Instruct (base) 0.126
base + this adapter 0.666

Companion adapter (second tenant): mini-engram-hanhai. Multi-tenant serving = one base process + one such cartridge per tenant.

Usage

from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer

base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-7B-Instruct", device_map="auto")
model = PeftModel.from_pretrained(base, "tersemind/mini-engram-xinglan")
tok = AutoTokenizer.from_pretrained("Qwen/Qwen2.5-7B-Instruct")

Or serve both tenants at once with vLLM (OpenAI-compatible):

vllm serve Qwen/Qwen2.5-7B-Instruct --enable-lora --max-lora-rank 64 \
  --lora-modules xinglan=tersemind/mini-engram-xinglan hanhai=tersemind/mini-engram-hanhai

Links

License

MIT, Β© 2026 TerseMind. This adapter is a derivative of Qwen/Qwen2.5-7B-Instruct (Apache 2.0); redistribution must retain the base model's LICENSE and notices.

Downloads last month
9
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for tersemind/mini-engram-xinglan

Base model

Qwen/Qwen2.5-7B
Adapter
(3,104)
this model