---
title: "GLM-5.2 and IndexShare for Long-Context Sparse Attention"
url: https://daily.dev/posts/glm-5-2-and-indexshare-for-long-context-sparse-attention-gilanjh4a
source_url: https://sebastianraschka.com/blog/2026/glm-5-2-indexshare.html
type: article
source: "Sebastian Raschka"
published: 2026-06-18T14:27:37.296Z
updated: 2026-06-18T15:47:40.519Z
tags: ["llm", "mixture-of-experts"]
reading_time: 2
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# GLM-5.2 and IndexShare for Long-Context Sparse Attention

**[Sebastian Raschka](https://daily.dev/sources/sebastianraschka)** · 2 min read · 0 upvotes · 0 comments

## Summary

GLM-5.2 is a new open-weight model from Z.ai that builds on the GLM-5/5.1 architecture, retaining Multi-head Latent Attention and DeepSeek Sparse Attention (DSA). The key innovation is IndexShare, a cross-layer reuse mechanism that runs the sparse-attention top-k indexer only once every four layers instead of every layer, significantly reducing compute cost for 1M-token inference while preserving adaptive attention patterns.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://sebastianraschka.com/blog/2026/glm-5-2-indexshare.html>

## Similar posts on daily.dev

- [GLM-5.2: Built for Long-Horizon Tasks](https://daily.dev/posts/glm-5-2-built-for-long-horizon-tasks-stmnmwjok) · Hugging Face · 33 upvotes · 4 comments

---

Tags: [#llm](https://daily.dev/tags/llm), [#mixture-of-experts](https://daily.dev/tags/mixture-of-experts)

[View this post on daily.dev](https://daily.dev/posts/glm-5-2-and-indexshare-for-long-context-sparse-attention-gilanjh4a)
