Yi Yang, Juntao Li, Min Zhang, Zhiyi Hong, Kebin Liu, Quantong Qiu, Qingqing Dang, Haitian Wang, Router Head
7 of 9 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 5 failures of our instrument; 2 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.
"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2604.07394.json · badge: /api/ran/2604.07394.svg
Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.
| Repository | Role | Ran |
|---|---|---|
| qqtang-code/FluxAttention | canonical (classifier label) classifier basis: census |
7 ran · 2 no recorded run |
| Function | Status | Where it lives |
|---|---|---|
| create_causal_mask | Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
qqtang-code/FluxAttention/fluxattn/src/Xattention.py code served (permissive licence) · get_code("c9d0d9d7eb54483a") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 4, dtype family float, shape (2, 3, 4, 20) as a later run recorded it. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
|
| generate_streaming_info_blocksparse_flash_attn | Ran ran, honoured the contract we drafted |
qqtang-code/FluxAttention/fluxattn/training/modeling_flash_llama.py code served (permissive licence) · get_code("13f436e0309e6fd0") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 1, dtype family int, shape (8,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
|
| min_lr_bound | Ran ran, honoured the contract we drafted |
qqtang-code/FluxAttention/fluxattn/training/lh_trainer.py code served (permissive licence) · get_code("2718b0555714208e") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
|
| repeat_kv | Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
qqtang-code/FluxAttention/fluxattn/training/eval/modeling_flash_llama.py code served (permissive licence) · get_code("56fbb035393380b6") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 4, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
|
| rmsnorm_func | Ran ran; our contract draft was wrong, not the code |
qqtang-code/FluxAttention/fluxattn/training/eval/modeling_flash_llama.py code served (permissive licence) · get_code("349dce8e37362617") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
|
| rotate_half | Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
qqtang-code/FluxAttention/fluxattn/training/modeling_flash_qwen.py code served (permissive licence) · get_code("ce8a56552eacab99") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
|
| worker_pack_chunk | Ran ran; our contract draft was wrong, not the code |
qqtang-code/FluxAttention/fluxattn/training/dataset_packing.py code served (permissive licence) · get_code("4476c5672f1aafdf") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
|
| apply_rotary_emb_torch | Not yet run unverified (harvested, no recorded run) |
qqtang-code/FluxAttention/fluxattn/training/modeling_flash_qwen.py code served (permissive licence) · get_code("2ed34e7143f94ce9") How it ranno invocation recorded. |
| find_blocks_chunked | Not yet run unverified (harvested, no recorded run) |
qqtang-code/FluxAttention/fluxattn/src/Xattention.py code served (permissive licence) · get_code("7b8a227c2f32a62d") How it ranno invocation recorded. |
Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 9 are also present in other papers whose code we hold (9 with at least one paper dated earlier, 2 the same month, 2 later) and 0 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).
Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.
| Function | Also present in | Earliest-dated | Others named |
|---|---|---|---|
| rmsnorm_func | 8 other papers 7 dated earlier, 1 undated |
2310.03668 (2023-10) GoLLIE: Annotation Guidelines improve Zero-Shot Information-Extraction |
2312.15166 (2023-12) SOLAR 10.7B: Scaling Large Language Models with Simple yet Effective Depth Up-Scaling 2402.09739 (2024-02) QuRating: Selecting High-Quality Data for Training Language Models and 5 more not named here |
| apply_rotary_emb_torch | 6 other papers 4 dated earlier, 1 the same month, 1 later |
2309.06180 (2023-09) Efficient Memory Management for Large Language Model Serving with PagedAttention |
2407.08608 (2024-07) FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precision 2412.06464 (2024-12) Gated Delta Networks: Improving Mamba2 with Delta Rule and 3 more not named here |
| rotate_half | 6 other papers 4 dated earlier, 1 the same month, 1 later |
2309.06180 (2023-09) Efficient Memory Management for Large Language Model Serving with PagedAttention |
2407.08608 (2024-07) FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precision 2412.06464 (2024-12) Gated Delta Networks: Improving Mamba2 with Delta Rule and 3 more not named here |
| repeat_kv | 4 other papers 4 dated earlier |
2402.09739 (2024-02) QuRating: Selecting High-Quality Data for Training Language Models |
2410.02660 (2024-10) How to Train Long-Context Language Models (Effectively) 2025.acl-long.366 (2025 (year only)) How to Train Long-Context Language Models (Effectively) and 1 more not named here |
| min_lr_bound | 3 other papers 3 dated earlier |
2410.02660 (2024-10) How to Train Long-Context Language Models (Effectively) |
2025.acl-long.366 (2025 (year only)) How to Train Long-Context Language Models (Effectively) 2602.05258 (2026-02) CoPE: Clipped RoPE as A Scalable Free Lunch for Long Context LLMs |
| create_causal_mask | 2 other papers 2 dated earlier |
2509.24745 (2025-09) ProxyAttn: Guided Sparse Attention via Representative Heads |
2601.17367 (2026-01) Elastic Attention: Test-time Adaptive Sparsity Ratios for Efficient Transformers |
| find_blocks_chunked | 2 other papers 2 dated earlier |
2509.24745 (2025-09) ProxyAttn: Guided Sparse Attention via Representative Heads |
2601.17367 (2026-01) Elastic Attention: Test-time Adaptive Sparsity Ratios for Efficient Transformers |
| generate_streaming_info_blocksparse_flash_attn | 1 other paper 1 dated earlier |
2601.17367 (2026-01) Elastic Attention: Test-time Adaptive Sparsity Ratios for Efficient Transformers |
|
| worker_pack_chunk | 1 other paper 1 dated earlier |
2601.17367 (2026-01) Elastic Attention: Test-time Adaptive Sparsity Ratios for Efficient Transformers |
Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.
Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.
The quadratic computational complexity of standard attention mechanisms presents a severe scalability bottleneck for LLMs in long-context scenarios. While hybrid attention mechanisms combining Full Attention (FA) and Sparse Attention (SA) offer a potential solution, existing methods typically rely on static allocation ratios that fail to accommodate the variable retrieval demands of different tasks. Furthermore, head-level dynamic sparsity often introduces severe computational load imbalance and synchronization long-tails, which hinder hardware acceleration during autoregressive decoding. To bridge this gap, we introduce Flux Attention, a context-aware framework that dynamically optimizes attention computation at the layer level. By integrating a lightweight Layer Router into frozen pretrained LLMs, the proposed method adaptively routes each layer to FA or SA based on the input context. This layer-wise routing preserves high-fidelity information retrieval while ensuring contiguous memory access, translating theoretical computational reductions into practical wall-clock speedups. As a parameter-efficient approach, our framework requires only 12 hours of training on 8×A800 GPUs. Extensive experiments across multiple long-context and mathematical reasoning benchmarks demonstrate that Flux Attention achieves a superior trade-off between performance and inference speed compared with baseline models, with speed improvements of up to 2.8× and 2.0× in the prefill and decode stages.
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2604.07394")
get_code_for_paper("2604.07394")
have("2604.07394")
The run record, dated, one paper per request, free:
curl https://syntology.ai/api/ran/2604.07394.json
A badge for a README (the split and the date, never a ratio):
[](https://syntology.ai/paper/2604.07394)
Connect an agent — have() is free.