Downloads · 30 days
197
68% of all-time downloads
win10/Lfm2-MaleCNS-Titans-VL-3B
Lfm2-MaleCNS-Titans-VL-3B is a image-text-to-text model from win10. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as other.
LFM2.5-VL-3B with the c042 MaleCNS–Titans neural memory architecture, followed by LoRA training of the native language/vision/projector and full training of the added memory parameters. LoRA has been merged into this…
Downloads · 30 days
197
68% of all-time downloads
All-time downloads
288
Public
Parameters
3.2B
6.8 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors6.7 GB · 100%
How the weights are stored.
BF163.1B · 96%
From the Hugging Face model README
LFM2.5-VL-3B with the c042 MaleCNS–Titans neural memory architecture, followed by LoRA training of the native language/vision/projector and full training of the added memory parameters. LoRA has been merged into this complete model. The custom class directly inherits Lfm2VlForConditionalGeneration and saves the native backbone, memory weights, graph, ports, tokenizer, processor, and model code together.
這是小樣本 PT 探索模型。保留原始 LFM 的語言、視覺、投影與生成架構,加入多路神經記憶;此版本包含實際 LoRA 訓練後合併的完整權重。
Exact graph indices, port selections, and dynamics are in config.json; the searchable graph provenance and diagram are under architecture/.
The source-level capacity audit and proposed next experiments are in architecture/capacity_review.md; those proposed changes are not part of this checkpoint.
| Item | Value |
|---|---|
| Native adaptation | LoRA rank 16, alpha 32, 331 native linear modules |
| Added memory | All memory parameters trainable through LlamaFactory additional_target=memory |
| Total trainable parameters | 153,384,311 |
| Data | 64 existing Formosa-Vision PT records; images on every eighth record |
| Actual optimizer updates | 256 / 256 planned |
| Training input tokens | 190,064 |
| Auxiliary control tokens | 14,912 |
| Runtime, including deliberate rests | 1466.0 seconds |
| Peak allocated VRAM | 18.74 GiB |
| Attention | FlashAttention-2, pinned kernel revision in the protocol |
The prepared data were used directly as HF Arrow. No SFT, corpus-wide pass, or deduplication was added. Each episode writes a raw prefix (plus native image features on image episodes), then predicts the suffix with a fresh native cache and retained neural state. Checkpointed inner-gradient chunks retain all features and higher-order training gradients.
Loss: retained PT CE + 0.1 × prefix PT CE. On image episodes, add 0.2 × reset PT CE, 0.1 × max(0, 0.05 + retained CE − reset CE), and 0.02 × KL(original-native distribution || reset-student distribution). The original teacher disables LoRA and memory. The reset CE coefficient exceeds the margin coefficient, so the loss does not encourage increasing reset CE to manufacture a memory gain. This coefficient property alone is not a general guarantee against all evaluation artifacts.
Training used the user's local LlamaFactory fork and its PT CustomTrainer. Its nominal Transformers version ceiling was explicitly bypassed for the installed 5.9.0 backend; actual integration tests and runtime versions are recorded. The historical local training source is in training/, with local dataset/work paths requiring adaptation on another machine. Adapter/optimizer resume checkpoints remain in the original local work directory.
One 131,072-token stream: 129,024 writes followed by a 2,048-token held-out read. Only the final read is replayed with reset memory. Both read branches discard native KV/convolution/image caches. The same bounded exploratory evaluation was also used in architecture search; these are development results, not an independent benchmark.
| Condition | Read NLL ↓ |
|---|---|
| Original LFM2.5-VL-3B | 4.634545 |
| c042 before native LoRA, retained memory | 4.198395 |
| Merged model, memory disabled | 4.641206 |
| Merged model, fresh neural memory | 4.703657 |
| Merged model, retained neural memory | 4.192570 |
Compared with c042 before native LoRA, absolute retained NLL improved by only 0.005825. Reset NLL changed by +0.057767 (higher is worse). Consequently, most of the 0.063592 increase in retained/reset gap comes from a worse reset branch. The gap increase should not be presented as an equivalent improvement in memory quality. The absolute retained improvement is small and has not been established as statistically significant on an independent test set.
The visual sections score held-out article tokens after image-only observations, so the metric combines visual/text association and language prediction. A change in NLL is not proof of exact visual recall. Previous search generations showed repetition and unverified details. The current small PT run establishes an executable integrated architecture and measured state effects; it does not establish superiority to every random topology or broad downstream quality.
See verification/evaluation.json, verification/reload.json, and verification/api_checks.json for receipts. The pre-LoRA integration receipt is explicitly historical; actual LoRA trainability is in training/protocol.json.
Validated runtime: PyTorch 2.11.0 with CUDA 13.0, Transformers 5.9.0, Accelerate 1.14.0, NVIDIA Blackwell. Memory parameters load in FP32 and native parameters in BF16. The supplied runtime code is required; use trust_remote_code=True and a reviewed/pinned Hub revision. Training checks for actual FlashAttention-2.
python inference.py --model win10/Lfm2-MaleCNS-Titans-VL-3B \
--observation "這段文字是要先寫入記憶的觀測。" \
--question "請概括剛才的觀測。" --session-out session.pt
python inference.py --model win10/Lfm2-MaleCNS-Titans-VL-3B \
--image example.jpg --observation "" \
--question "請描述先前看過的圖片。" --session-out image-session.pt
inference.py uses forward(memory_write=True) to observe, then generate(memory_state=...) with a fresh native cache. It supports --session-in to restore a state from the same model checkpoint. Model weights and a conversation's fast state are separate artifacts. New sessions start from the trained slow initialization; the evaluation state is not embedded in the published model.
Use torch.no_grad() for observation writes: the memory implementation temporarily enables gradients for its inner update. Do not wrap writes in torch.inference_mode(). Generation reads memory; generated tokens are not automatically written back. One write batch corresponds to one session, preventing accidental mixing of independent conversations. use_memory=False provides the merged native control.
This is a modified model, not an official Liquid AI or Janelia release. The connectome is used as a selected computational topology; the implementation is not a full biological brain simulation. See NOTICE and manifest.json for modifications and artifact hashes.