Qwen3.5-2B-Hindsight-Synthesis
A model for memory synthesis and reflection
2 min read
This is a specialized fine-tune of the compact base model Qwen3.5-2B, trained to handle all 10 subtasks of the Hindsight 1.2.3 framework in English and Portuguese. The model handles structured data updates, observation deduplication, and reflection orchestration, returning responses in a strict JSON format. Its architecture combines Gated DeltaNet layers (a hybrid approach that cuts KV cache consumption) and Full Attention, making it fast on consumer graphics cards and Apple Silicon. This tool is useful for developers of AI memory systems and agents who need reliable structured data processing without excessive VRAM overhead.
Key features
- Hybrid architecture: Combining Gated DeltaNet and Full Attention (24 layers) ensures high speed over long contexts.
- Hindsight 1.2.3 specialization: Support for 10 subtasks, including fact consolidation, deduplication, and mental model delta operations.
- Bilingual support: Full support for English and Portuguese while maintaining schema precision.
- Compact size: The 2.27 billion parameter model is ideal for local deployment on budget hardware.
What you can do
- Agent integration: Set up memory and reflection pipelines in AI agents using the Hindsight framework.
- Data consolidation: Automatically classify temporary and permanent facts while purging outdated information.
- Observation deduplication: Separate subtle duplicates and exact synonyms using strict JSON schemas.
- Local deployment: Deploy the model locally via Transformers, GGUF, or MLX for autonomous data processing.
Example
Inference example using the transformers library:
import torch
from transformers import AutoTokenizer, Qwen3_5ForConditionalGeneration
model_id = "ytfsic/Qwen3.5-2B-Hindsight-Synthesis"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = Qwen3_5ForConditionalGeneration.from_pretrained(
model_id,
torch_dtype=torch.bfloat16,
device_map="auto",
)
messages = [
{
"role": "user",
"content": (
"Decide whether to merge or keep two candidate observations.\n"
"New: API gateway listens on port 8443.\n"
"Existing: API gateway listens on port 8080."
),
}
]
prompt = tokenizer.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True, enable_thinking=False
)
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
with torch.inference_mode():
out = model.generate(**inputs, max_new_tokens=512, do_sample=False)
print(tokenizer.decode(out[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))Read more
Details• Benchmarks: 94.9% on 28 deterministic adversarial traps and 95.9% schema validity on a multi-bank holdout.
• Hardware requirements: Around 1.2–1.9 GiB VRAM/memory with GGUF/MLX quantization; on a 6 GB RTX 3000 Max-Q, p50 is 6.1 seconds.
• Limitations: Designed strictly for Hindsight 1.2.3 synthesis and reflection tasks rather than as a general-purpose chatbot.
• Training details: Full 16-bit BF16 All-Linear LoRA with QR+SVD spectral-depth equalized method on a 1,088-row corpus.










Comments