score optokens × tokens → attnmapimport fullseye as fs; fs.ledger.attention_scores(query, key, scale=None) -> 'np.ndarray' (実装を直接呼ぶなら import llmcore; llmcore.attention_scores(query, key, scale=None) -> 'np.ndarray'、台帳から引くなら opsllmcore.get("attention_scores"))生の注意スコア QKᵀ/√d → attnmap (T, S)。
Args: query: (T, d) float。問い合わせる側。 key: (S, d) float。引かれる側。d は query と同じ。 scale: スコアの倍率。None なら 1/√d(Vaswani ら 2017 —— 内積が d に比例して 育ち softmax が尖るのを打ち消す)。 Returns: attnmap (T, S) float: softmax にかける前の生のスコア。
py -3.11 examples/poc_attention_identities.pyattnmap を入力に取れる)attention_weights · attention_apply
score)attention_weights · attention_apply
Provenance: llmcore.py — LLMCORE operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.