OSCR

Block oscr:b:34WYJ0TC3MVZK-Q

A block of code linked to a paper, with an identifier OSCR gives it for good: it is never reused nor deleted. What a block identifier is · this block in JSON

Identifier
oscr:b:34WYJ0TC3MVZK-Q
Status
Current: the registry links these lines to the paper today.
Paper
doi:10.1162/imag.a.1301 · its page here
Code
github.com/ohba-analysis/osl-foundation, osl_foundation/inference/layers.py, lines 237 to 342 (ALiBiPositionEmbeddingLayer)
Commit read
ffbeff318811de3adea33d7dfeaa0af15a5b902b
SWHID
swh:1:cnt:0504f983cba02918a179d9c536af8af549c64703;origin=https://github.com/ohba-analysis/osl-foundation;anchor=swh:1:rev:ffbeff318811de3adea33d7dfeaa0af15a5b902b;path=/osl_foundation/inference/layers.py;lines=237-342 (the Software Heritage identifier of the file as its authors published it, before any email address is hidden for display; it opens in Software Heritage's archive once the repository is archived there)
In the paper
paragraph 41 (Methods › The foundation model: MEG-GPT › Transformer and prediction head); paragraph 42 (Methods › The foundation model: MEG-GPT › Masked multi-head attention)
Linked by
the registry's matching program (lexical-v1), which can be wrong
Identifier given
2026-11-14

Open these lines beside the paper

Cite this block

Copy this text: the identifier and its page first, then the code, the paper and the SWHID.

Code block oscr:b:34WYJ0TC3MVZK-Q (https://openscicode.org/b/oscr:b:34WYJ0TC3MVZK-Q)
osl_foundation/inference/layers.py, lines 237 to 342, in github.com/ohba-analysis/osl-foundation (https://github.com/ohba-analysis/osl-foundation), commit ffbeff318811de3adea33d7dfeaa0af15a5b902b.
Paper: https://doi.org/10.1162/imag.a.1301
SWHID: swh:1:cnt:0504f983cba02918a179d9c536af8af549c64703;origin=https://github.com/ohba-analysis/osl-foundation;anchor=swh:1:rev:ffbeff318811de3adea33d7dfeaa0af15a5b902b;path=/osl_foundation/inference/layers.py;lines=237-342