/ Модель

Характеристики

Контекст
40 960 токенов
Параметры
7,6 млрд
Размер весов
16,4 ГБ
Лицензия
Apache 2.0
Архитектура
lam · dense
Библиотека
transformers
Опубликована
30 июл 2026

LAM8B

Генерация текстаТекст → текст3 профессии

LAM8B — англоязычная языковая модель для ответов по извлечённым воспоминаниям с возможностью воздержаться, если данных в памяти недостаточно.

20скачиваний за 30 дней2лайкавеса обновлены8 авг 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

LAM8B — плотная языковая модель семейства LAM от Tronocity Labs, предназначенная для работы с памятью в системах с поиском по сохранённым данным. Она принимает найденные системой извлечения воспоминания и вопрос, после чего формулирует ответ на их основе или воздерживается от ответа, если нужных сведений в памяти нет. Модель также обучена выбирать операции для записи и обновления фактов, однако количественные результаты для этого сценария в карточке не приведены.

Модель насчитывает 7,6 млрд параметров, использует архитектуру LamForCausalLM, работает с текстом и имеет контекст длиной 40 960 токенов. В карточке указаны английский язык и тестирование на LoCoMo и LongMemEval; для LongMemEval авторы сообщают о проверке на отложенной выборке. Модель предназначена для компонента ответа за ретривером, а не для свободного диалога. Для загрузки требуется trust_remote_code=True; авторы также рекомендуют сохранять обученный формат промпта и отключённый режим рассуждений.

В карточке указана лицензия Apache-2.0. Сообщённые метрики относятся к задаче ответов по памяти и не доказывают качество других сценариев; результаты для операций записи не опубликованы.

Сценарии применения

  • ответы на вопросы по найденным записям диалогов
  • проверка, содержится ли ответ в сохранённой памяти
  • воздержание от ответа при отсутствии нужного факта
  • разрешение временных противоречий между сохранёнными фактами
  • выбор операции добавления или обновления фактов в памяти

Ограничения

Модель предназначена для ответов по результатам извлечения и не подходит как универсальная чат-модель. Качество зависит от соблюдения обученного формата промпта и отключённого режима рассуждений; результаты для операций записи не опубликованы.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

✨ the vibe

your assistant has a memory problem. it either forgets what you told it, or worse — it makes something up and says it with its whole chest.

LAM8B does both halves of the job in one set of weights:

what it does
✍️ writesdecides what's worth storing, and whether a new fact supersedes an old one
🔍 readsanswers from what's stored — or tells you it's not in there

that second half is the whole point. ⬇️

🧩 where it sits: LAM8B lives behind your retriever. your system pulls candidate memories, LAM8B reads them and answers or abstains. it is not a general chat model — don't drop it in as one.


📈 the glow-up

same prompts, same decoding, same harness. only the weights changed.

metricun-tuned baseLAM8B
token F1█████░░░░░░░ 0.376███████░░░░░ 0.606🟢 +61%
exact match██░░░░░░░░░░ 0.177████░░░░░░░░ 0.353🟢 2.0×
abstention F1██████░░░░░░ 0.541█████████░░░ 0.788🟢 +0.247
abstention precision█████░░░░░░░ 0.378█████████░░░ 0.714🔥 +0.336
abstention recall███████████░ 0.946███████████░ 0.878🟡 −0.068
wrongly refused115 / 54426 / 544🔥 −77%
contract-valid output100%100%✅ tie
speed2.1 s/ex1.6 s/ex🟢 −24%

n = 544 held-out answer-task examples.


🎯 the party trick: it shuts up when it should

here's the trap. the un-tuned base has 94.6% abstention recall — it catches almost every unanswerable question. sounds elite. it is not.

precision is 37.8%. it refuses constantly. so of course it catches the real gaps — it's refusing everything. 115 out of 544 questions it could have answered, it didn't. that's not "safe." that's a model that shrugs at you.

LAM8B trades 6.7 points of recall for 33.6 points of precision:

                  precision                     recall
base   0.378  █████░░░░░░░░░░░       0.946  ███████████████░
LAM8B  0.714  ███████████░░░░░       0.878  ██████████████░░
                 ▲ +0.336                       ▼ −0.068

wrongly-refused questions: 115 → 26. on the dedicated abstention split (n=74) both models hold 100% precision — base scores 0.972 abstain-F1 there, LAM8B 0.935. so the base model's whole problem is on questions that had answers. 💀


🧾 receipts (per category)

sorted by how hard it glowed up. over = answerable questions it wrongly refused.

categorynbaseLAM8BΔ F1over
🥇 adversarial76██░░░░░░░░░░ 0.183████████░░░░ 0.673+0.48944 → 6
🥈 temporal93████░░░░░░░░ 0.303███████░░░░░ 0.586+0.28218 → 2
🥉 single_hop140███████░░░░░ 0.545█████████░░░ 0.734+0.18916 → 3
open_domain13████░░░░░░░░ 0.326██████░░░░░░ 0.468+0.1413 → 3
multi_hop94███░░░░░░░░░ 0.283█████░░░░░░░ 0.418+0.13521 → 3
knowledge_update20██████░░░░░░ 0.508████████░░░░ 0.634+0.1252 → 0
single_hop_assistant21█████████░░░ 0.785██████████░░ 0.842+0.0560 → 0
💀 preference13█░░░░░░░░░░░ 0.060█░░░░░░░░░░░ 0.067+0.00711 → 9

adversarial is the flex. 🥇 same-domain distractors, where refusing takes actual judgement instead of vibes. base model basically gave up (0.183). LAM8B: 0.673, and 44 wrong refusals collapse to 6.

preference is the L. 💀 it did not improve. see keeping it real.

categorynEM (base)EM (LAM8B)
adversarial760.10530.4211
temporal930.07530.2473
single_hop1400.26430.4714
open_domain130.23080.3846
multi_hop940.09570.1809
knowledge_update200.40000.4500
single_hop_assistant210.52380.6667
preference130.00000.0000

🔬 the honest split

sourcenF1 (base)F1 (LAM8B)EMabstain Pabstain Rabstain F1over
LoCoMo394████░░░░░░░░ 0.372████████░░░░ 0.6600.150 → 0.3650.444 → 0.8030.941 → 0.8970.604 → 0.84780 → 15
LongMemEval 🔒150█████░░░░░░░ 0.384██████░░░░░░ 0.4840.236 → 0.3260.146 → 0.2671.000 → 0.6670.255 → 0.38135 → 11

🔒 quote this one. those 150 LongMemEval questions were held in reserve and never trained on — longmemeval_oracle and _s share the same 500 questions, so training on either contaminates the other. +0.10 F1 on genuinely unseen data is the real generalization number, not the +0.29 on LoCoMo.

also notice base's 1.000 abstention recall on LongMemEval with 0.146 precision. that's not skill. that's a model saying "idk" to everything. 🫠


⚡ quickstart

pip install transformers torch
from transformers import AutoModelForCausalLM, AutoTokenizer

MODEL = "Akhrots/LAM8B"
tok = AutoTokenizer.from_pretrained(MODEL)
model = AutoModelForCausalLM.from_pretrained(
    MODEL,
    trust_remote_code=True,   # ← required: LAM registers its own model class
    torch_dtype="float16",
    device_map="auto",
)

SYSTEM = (
    "You answer questions using only the user's stored memories, which are "
    "gathered from every app they use.\n"
    "Rules:\n"
    "- Use only the memories provided. Never invent or assume.\n"
    "- When memories conflict, trust the most recent and answer with that.\n"
    "- Combine memories when the answer needs more than one.\n"
    "- Respect timestamps for questions about when, before, after or latest.\n"
    "- Read negation carefully: a memory saying something stopped is not "
    "evidence that it is still true.\n"
    "- If the memories do not contain the answer, reply exactly: "
    "I don't have that in your memory.\n"
    "Answer concisely — no preamble, no restating the question."
)

# memories render as:  [id] (timestamp via source) text
memories = (
    "[m1] (2024-03-02 via slack) Priya moved the launch review to Thursday.\n"
    "[m2] (2024-02-11 via gmail) Priya scheduled the launch review for Tuesday."
)
user = f"Memories:\n{memories}\n\nQuestion: When is the launch review?"

msgs = [{"role": "system", "content": SYSTEM}, {"role": "user", "content": user}]
prompt = tok.apply_chat_template(
    msgs, tokenize=False, add_generation_prompt=True, enable_thinking=False
)
out = model.generate(**tok(prompt, return_tensors="pt").to(model.device), max_new_tokens=128)
print(tok.decode(out[0][len(tok(prompt).input_ids):], skip_special_tokens=True))
# -> "Thursday."   ← m1 is newer, so m2 loses. that's the supersession behaviour.

serve it (weights are merged fp16, no adapter juggling):

vllm serve Akhrots/LAM8B --served-model-name lam8b --trust-remote-code

🚨 three rules, don't skip

0. trust_remote_code=True is mandatory. LAM registers its own model class via modeling_lam.py. without the flag, loading fails outright.

1. the prompt is load-bearing. system prompt, [id] (time via source) memory format, and the exact abstention string I don't have that in your memory. are all part of the trained contract. drift the prompt → quality drops silently, no error.

2. thinking stays OFF. LAM8B is a hybrid-thinking architecture and was trained with enable_thinking=False. flip it on at serve time and you're measuring a different model than the one that was trained.

🧰 four tasks, one model

taskmodeoutput
answerreadtext, or the exact abstention string
write_opwriteJSON — insert / supersede / merge / skip
extractwriteJSON — entities + attributes
resolvereadJSON — {"kept": [...], "superseded": [...], "reason": str}

only answer is scored above — see keeping it real for why the write-path numbers aren't published.


🔧 how it was cooked

baseopen Apache-2.0 weights
methodQLoRA, 4-bit NF4, fp16 compute
LoRA r / α / dropout32 / 64 / 0.05
target modulesq,k,v,o,gate,up,down_proj (all of them)
LR1e-4
batch × grad-accum1 × 16 (effective 16)
epochs1
hardwarea single free Kaggle T4 😭 ~9 h/epoch
release formatmerged fp16 (vLLM / llama.cpp / TGI ready)
shardtrainsource
write7,921synthetic write_op + extract
resolve2,250synthetic read-time conflict resolution
locomo1,582LoCoMo QA
abstain720synthetic hard abstention + answerable controls
longmemeval315LongMemEval oracle (MIT)

the one design choice that matters: every hard-abstention example ships with a twin — identical topical clutter, but the queried fact is present. without those controls the model just learns a new shortcut ("in-domain clutter → refuse") instead of learning to actually check. the only signal separating the labels is whether the fact is in the set.

everything here is --visibility public — synthetic + public benchmarks only. models memorise training data, so real user memories live behind a separate flag and a separate private adapter trained on top of these weights. no one's DMs are in these weights. 🔐

deterministic, lexical, no LLM judge, no API key — reproducible and free.

  • token F1 / EM after normalization (lowercase, strip articles + punctuation)
  • abstention P/R matched against the exact contract string, case- and trailing-period-insensitive
  • contract validity = fraction of outputs parsing against their task schema. both models hit 1.000 — the base model's problem is content, not format
  • test file is shuffled before slicing (it's concatenated by source, so slicing raw would make every per-category number a lie)
python scripts/memory_sft/eval_gate.py \
    --model Akhrots/LAM8B \
    --data data/sft/mixed/test.jsonl \
    --out reports/ft.json --compare reports/base.json

🫡 keeping it real

no model card should be all W's. here are the L's, on the record:

the L
💀 preference questions are cookedF1 0.067, EM 0.000, 9 of 13 still wrongly refused. no shard targets subjective recall and it shows. don't use this for "what does the user like."
🪫 multi-hop is the weakest working category0.418. up 48% from base, still way under single-hop's 0.734.
🎯 these scores are the reader, not the retrieverevery number here measures answering given retrieved memories. your end-to-end quality also depends on your retrieval stack — a bad retriever will bottleneck this model no matter how good it is.
🔍 lexical metrics undersell ittoken F1 scores "Stripe" and "we use Stripe" as different answers. treat these as run-to-run comparisons, not absolute quality.
✍️ write-path numbers aren't publishedthe write_op/extract/resolve eval shares generators with its training data, so it measures the generator as much as the model. validating against real production memories is the top open risk.
🧩 abstention doesn't fully transfer0.381 abstain-F1 on LongMemEval vs 0.847 on LoCoMo. training teaches total absence; LongMemEval tests partial information ("you mentioned X but not Y"). different problem shape.
⏳ one epocha T4 caps one Kaggle session at ~1 epoch over this corpus. whether epochs 2–3 leave gains on the table is untested.
🌍 english onlyboth benchmarks and every synthetic generator are English.

📜 license & credits

Apache-2.0. LAM8B is a fine-tune of open, Apache-2.0-licensed weights and the derivative is released under the same license. training data is synthetic + LoCoMo + LongMemEval (MIT).

@misc{lam8b,
  title  = {LAM8B: a joint read/write memory model with calibrated abstention},
  author = {Tronocity Labs},
  year   = {2026},
  url    = {https://huggingface.co/Akhrots/LAM8B}
}

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Нельзя запустить

Модели нужен код из репозитория; автор пока не в списке доверенных организаций.

Класс архитектуры
LamForCausalLM
Ревизия весов
0cd4c43

0 моделей