Xun Zhou, Jianqiao Lu, Xunhao Lai, Yao Luo, Yiyuan Ma
10 of 11 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; 1 honoured the contract we drafted, 0 violated it and 7 have no contract verdict; 2 failures of our instrument; 1 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; 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/2502.20766.json · badge: /api/ran/2502.20766.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 |
|---|---|---|
| bytedance/FlexPrefill | canonical (classifier label) classifier basis not recorded on the link |
9 ran · 1 no recorded run |
| ByteDance-Seed/FlexPrefill | canonical (classifier label) classifier basis: classifier_2025 |
1 ran · 0 no recorded run |
| Function | Status | Where it lives |
|---|---|---|
| apply_rotary_pos_emb | Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
bytedance/FlexPrefill/flex_prefill/modules/glm/glm_self_attention_foward.py code served (permissive licence) · get_code("059a805ecbeca6af") 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.
|
| get_config_example | Ran ran on a synthesized input |
bytedance/FlexPrefill/flex_prefill/modules/patch.py code served (permissive licence) · get_code("78e17a79809e571b") 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 dict. The image it ran in was not recorded. If your copy returns the same type 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.
|
| get_dataloader | Ran ran on a synthesized input |
bytedance/FlexPrefill/experiments/benchmark/run_ruler.py code served (permissive licence) · get_code("6904e1292ef34ff1") 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 DataLoader. The image it ran in was not recorded. If your copy returns the same type 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.
|
| get_num_warps_stages | Ran ran, honoured the contract we drafted |
ByteDance-Seed/FlexPrefill/flex_prefill/ops/flex_prefill_attention.py code served (permissive licence) · get_code("c7bbee93a299753b") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned tuple, ndim 1, dtype family int; 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.
|
| get_tasks | Ran ran on a synthesized input |
bytedance/FlexPrefill/experiments/benchmark/run_ruler.py code served (permissive licence) · get_code("0ff1542f9a950e79") 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 2, 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.
|
| glm_mlp_forward | Ran ran on a synthesized input |
bytedance/FlexPrefill/flex_prefill/modules/glm/glm_mlp_forward.py code served (permissive licence) · get_code("5f120e3472fb5048") 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 3, dtype family float, shape (2, 3, 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.
|
| mid_trunc_and_pad | Ran ran on a synthesized input |
bytedance/FlexPrefill/experiments/benchmark/utils.py code served (permissive licence) · get_code("1bd20ca4f6cfb4eb") 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 (6,) 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.
|
| remove_duplicates_by_index | Ran ran on a synthesized input |
bytedance/FlexPrefill/experiments/benchmark/run_ruler.py code served (permissive licence) · get_code("2742a6153e7ec429") 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.
|
| split_tensor_along_last_dim | Ran ran; our contract draft was wrong, not the code |
bytedance/FlexPrefill/flex_prefill/modules/glm/glm_self_attention_foward.py code served (permissive licence) · get_code("08b693a1068fa690") 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 tuple, 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.
|
| str_to_dict | Ran ran on a synthesized input |
bytedance/FlexPrefill/experiments/benchmark/utils.py code served (permissive licence) · get_code("35b094727218cc43") 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 dict. The image it ran in was not recorded. If your copy returns the same type 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.
|
| glm_self_attention_forward | Not yet run unverified (harvested, no recorded run) |
bytedance/FlexPrefill/flex_prefill/modules/glm/glm_self_attention_foward.py code served (permissive licence) · get_code("1c80690cb1a8743d") How it ranno invocation recorded. |
Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 3 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 2 later) and 8 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 |
|---|---|---|---|
| split_tensor_along_last_dim | 8 other papers 7 dated earlier, 1 later |
2307.13528 (2023-07) FacTool: Factuality Detection in Generative AI -- A Tool Augmented Framework for Multi-Task and Multi-Domain Scenarios |
2311.18445 (2023-11) VTimeLLM: Empower LLM to Grasp Video Moments 2401.18058 (2024-01) LongAlign: A Recipe for Long Context Alignment of Large Language Models and 5 more not named here |
| apply_rotary_pos_emb | 2 other papers 2 dated earlier |
2408.10943 (2024-08) SysBench: Can Large Language Models Follow System Messages? |
2410.03577 (2024-10) Look Twice Before You Answer: Memory-Space Visual Retracing for Hallucination Mitigation in Multimodal Large Language Models |
| get_num_warps_stages | 1 other paper 1 later |
2509.24745 (2025-09) ProxyAttn: Guided Sparse Attention via Representative Heads |
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.
Large language models (LLMs) encounter computational challenges during longsequence inference, especially in the attention pre-filling phase, where the complexity grows quadratically with the prompt length. Previous efforts to mitigate these challenges have relied on fixed sparse attention patterns or identifying sparse attention patterns based on limited cases. However, these methods lacked the flexibility to efficiently adapt to varying input demands. In this paper, we introduce FlexPrefill, a Flexible sparse Pre-filling mechanism that dynamically adjusts sparse attention patterns and computational budget in real-time to meet the specific requirements of each input and attention head. The flexibility of our method is demonstrated through two key innovations: 1) Query-Aware Sparse Pattern Determination: By measuring Jensen-Shannon divergence, this component adaptively switches between query-specific diverse attention patterns and predefined attention patterns. 2) Cumulative-Attention Based Index Selection: This component dynamically selects query-key indexes to be computed based on different attention patterns, ensuring the sum of attention scores meets a predefined threshold. FlexPrefill adaptively optimizes the sparse pattern and sparse ratio of each attention head based on the prompt, enhancing efficiency in long-sequence inference tasks. Experimental results show significant improvements in both speed and accuracy over prior methods, providing a more flexible and efficient solution for LLM inference.
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2502.20766")
get_code_for_paper("2502.20766")
have("2502.20766")
The run record, dated, one paper per request, free:
curl https://syntology.ai/api/ran/2502.20766.json
A badge for a README (the split and the date, never a ratio):
[](https://syntology.ai/paper/2502.20766)
Connect an agent — have() is free.