跳到主要内容
Octopus Research Institute
TR-2026-0011技术报告同行评审: 未经同行评审证据强度: 实验性状态: 已发布

Falcon in a sovereign engine: the first parallel attention+MLP block

Ran Tao (Octoryn Research)

本文未经同行评审。请将其视为工作文档,而非经验证的结果。

摘要

Correctness port of a parallel attention+MLP block (Falcon-7B-Instruct) into an independent, vendor-BLAS-free dense engine on a consumer GPU. One input layernorm feeds both sublayers, summed into a single residual update, unlike sequential families; it adds multi-query attention and an exact-erf GELU. At f16, prefill-logit parity versus a public reference reaches cosine 1.0 with full argmax agreement on a two-prompt smoke test, while a force-sequential control collapses to cosine 0.977 with no matches, showing the parallel structure is load-bearing. f16-only; no quality or throughput claims.

本 Research Object 以其原始语言(英文)发表。

1. Contribution

Claimed. This is an engineering/correctness-validation result, not a novel algorithm. We port Falcon-7B-Instruct into an independent dense inference engine on a consumer GPU, deliberately built without any vendor BLAS/DNN libraries, and show that its f16 prefill logits match a public reference implementation. The port is the engine's first parallel-block architecture: a single input layernorm feeds BOTH the attention and MLP sublayers, which are then summed into one residual update, in contrast to the strictly sequential block ordering (norm, then attention with residual, then a second norm, then MLP with residual) of the prior sequential-block families. It also adds multi-query attention (a single shared key/value head) and an exact-erf GELU activation. Measured parity is cosine 1.0 with full argmax agreement (22/22) over two prompts, and a force-sequential negative control collapses to cosine 0.977 with zero argmax matches (0/12), demonstrating that the parallel structure is load-bearing for correctness.

NOT claimed. This note does NOT claim anything about generation quality, coherence at length, long-context behavior, throughput, or latency. It does NOT claim correctness under quantization — the port is f16-only. It does NOT claim coverage of other parallel-block variants beyond Falcon-7B-Instruct. The parity evaluation is a correctness smoke test (two prompts), not a benchmark-scale evaluation. "Coherent output" is an informal observation, not a measured quality metric.

2. Methods

FieldValue
HardwareConsumer GPU (RDNA2-class, 16 GB)
EngineIndependent dense inference engine with a dedicated correctness harness
Sovereignty checkA dynamic-link audit confirms only the base GPU runtime plus system libraries are linked (no vendor BLAS/DNN libraries)
Oracle / baselineA recent public reference implementation; identical weights and token ids
Precisionf16 (the engine's highest precision; no f32 forward path)
Metric + gatePer-position logit cosine and argmax match; coherence observed informally
Stimulus / inputsTwo prompts (e.g. "The capital of France is"; "Once upon a time"), 22 token positions total
Negative controlA configuration flag that forces sequential block ordering
ModelFalcon-7B-Instruct

3. Results

ConfigurationCosineArgmax matchNotes
f16 parity vs public reference (two prompts)1.022/22Coherent output (informal)
Force-sequential negative control0.9770/12Degenerate output

4. Ablations / Negative controls

ControlManipulationResultInterpretation
Force-sequential blockForce the block to run as a sequential ordering (norm, attention with residual, second norm, MLP with residual) instead of the parallel single-norm summed residualcosine 0.977, argmax 0/12 FAIL, degenerate outputThe parallel attention+MLP block is load-bearing; a plausible sequential mis-implementation does not silently pass

5. Threats to Validity / Limitations

  • Sample size. Parity is two prompts spanning 22 token positions — a correctness smoke test, not a benchmark-scale evaluation. The negative control reports 12 positions.
  • Single-run / no variance. Results are reported as single point values; no repeated runs, variance, or confidence intervals are recorded.
  • Parity is not quality. Logit cosine and argmax match against the oracle bound numerical fidelity of the forward pass; they say nothing about generation quality, coherence at length, instruction-following, or long-context behavior. "Coherent output" is an informal observation.
  • Precision ceiling. The engine has no f32 forward path; f16 is its highest precision. Sub-f16-ULP ties (as documented for sibling families) could in principle perturb argmax at low margins; none were noted here, but the ceiling is real.
  • Quantization out of scope. The port is f16-only; no quantized correctness is established.
  • Oracle version not pinned in this note. The exact reference-implementation version used for THIS run is not recorded; sibling notes pin a recent version. A skeptical reader should validate the oracle version before trusting the parity number, and confirm the oracle itself loads real weights.
  • Scope. Claims apply to Falcon-7B-Instruct on the tested consumer GPU only; no other parallel-block variant is tested.
  • Evidence level. Retained as "experimental." This is a correctness-validation result with a small stimulus set, not an algorithmic contribution.

6. Reproducibility / Provenance (high-level)

ItemValue
FamilyFalcon-7B-Instruct (first parallel-block family ported)
Negative controlA configuration flag forcing sequential block ordering
HarnessDedicated correctness harness on the consumer GPU
BuildGPU source compiled with optimization for the target consumer architecture, linking only the base GPU runtime
SovereigntyA dynamic-link audit confirms only the base GPU runtime plus system libraries (no vendor BLAS/DNN libraries)
Oracle versionA recent public reference implementation; validate the oracle version (and that it loads real weights) before trusting parity

Architecture summary (high-level)

  • Parallel block: a single input layernorm output is reused for both the attention and MLP sublayers, whose outputs are summed into one residual update; the intermediate residual of the sequential design is skipped.
  • Multi-query attention: a single shared key/value head, with the fused query/key/value projection laid out so no de-interleaving step is required.
  • Activation: an exact-erf GELU rather than the tanh approximation.

声明边界

作者对范围的明确界定——本工作证明了什么、未证明什么——沿用自 Octoryn Research 的发表模型。

证明

  • An independent parallel attention+MLP block port of Falcon-7B-Instruct reproduces public-reference f16 prefill logits at cosine 1.0 with full argmax agreement over a small two-prompt smoke test.
  • A force-sequential negative control collapses to cosine 0.977 with zero argmax matches, showing the parallel block structure is load-bearing for correctness.
  • The engine now covers both sequential and parallel block structures, and adds multi-query attention.

未证明

  • Generation quality, coherence at length, long-context behavior, throughput, or latency.
  • Parallel-block variants other than Falcon-7B-Instruct.
  • Quantized correctness; the port is f16-only.
  • Benchmark-scale parity: the evaluation is a small two-prompt correctness smoke test, not a benchmark.

适用于

  • f16 prefill-logit parity for Falcon-7B-Instruct on a consumer GPU versus a public reference implementation using identical token ids and weights.

不适用于

  • Quantized claims, generation, throughput, or quality claims, other model families, or hardware other than the tested consumer GPU.
  • The reference implementation version is unverified or the reference loads random-initialized rather than real weights.

作者

  • Ran Tao — 调查研究, 写作

引用本文

引用格式

Tao, R., Octoryn Research. (2026). Falcon in a sovereign engine: the first parallel attention+MLP block (TR-2026-0011). Octopus Research Institute.

BibTeX

@techreport{oritr20260011,
  title       = {Falcon in a sovereign engine: the first parallel attention+MLP block},
  author      = {Tao, Ran and {Octoryn Research}},
  institution = {Octopus Research Institute},
  year        = {2026},
  note        = {Permanent ID TR-2026-0011. Not peer reviewed.}
}

披露

资助
硬件与基础设施由 Octoryn / Octopus Core Pty Ltd 提供。
利益冲突
Octoryn 提供商业推理与治理工具;相关发现独立报告。