CCO is an evidence-first project for efficient long-context attention on consumer NVIDIA GPUs.
The long-term research target is a hybrid operator with exact local attention, a learned causal FFT global path, and a selective retrieval path only when recall evidence justifies it. CCO does not currently claim that FFT replaces attention or improves an LLM.
| Field | Value |
|---|---|
| Phase | Attention foundation |
| Benchmark ID | attention-foundation-v1.1-rtx5070ti |
| Status | ACTIVE |
| Reference GPU | NVIDIA GeForce RTX 5070 Ti |
| Goal | Improve exact attention latency or memory without correctness loss |
| Merge automation | Enabled for qualifying approved feature PRs |
The protected manifest is
benchmarks/attention-foundation-v1.1-rtx5070ti.json.
The previous calibrated v1 manifest remains historical evidence. Version 1.1
is calibrated, adversarially certified, frozen, and active.
matmul/: exact in-core and tiled GEMM with bounded-memory paths.strategy/: retained legacy research on synthetic square matrices.attention/: exact, local, spectral, correlation, and landmark prototypes.eval/: the legacy square evaluator plus the protected attention evaluator and PR policy.
Legacy square-GEMM results remain historical evidence. They are not evidence of attention quality, model quality, prefill speed, or decode speed.
The attention-foundation phase keeps output exact and asks whether a candidate can reduce attention latency or memory. Correctness is a hard gate, not a weighted score.
The protected benchmark contains nine GPU workload configurations:
- four causal prefill workloads at sequence lengths 1K, 2K, 4K, and 8K;
- three one-token decode workloads with 1K, 4K, and 8K KV contexts;
- one ragged causal guard and one non-causal guard.
Each official comparison uses the same RTX 5070 Ti environment, 10 warm-ups,
30 measured repetitions, raw CUDA-event timings, peak incremental VRAM, and
balanced main → PR → PR → main timing shards. Independent OS-random input
seeds are generated immediately before each call and published afterward.
Every warm-up and repetition uses fresh inputs, every timed output is checked,
and contributor code is imported only after protected reference measurement.
Prefill and decode are decided separately.
The references are:
- explicit fp32 attention for affordable mathematical-oracle cases;
- PyTorch scaled-dot-product attention as the production reference;
- the current
mainimplementation as the performance frontier.
The attention-foundation feature lane is active. Feature proposals may be
opened, and maintainers may apply status:phase-approved to focused work in
the following implementation scope:
- rectangular and batched attention-shaped multiplication;
QK^TandPVpaths used by attention;- exact prefill and one-token decode improvements;
- layout, workspace, and peak-memory improvements;
- exact blockwise implementations;
- focused tests for the implementation change.
Bug-fix, documentation, cleanup, refactor-only, legacy transform, evaluator, benchmark, workflow, and policy PRs are not miner contribution lanes. Changes to protected infrastructure are made separately by maintainers.
A current-phase PR must:
- use the feature template;
- declare the exact active benchmark ID;
- close an open issue carrying
status:phase-approved; - touch only current-phase implementation/test paths;
- pass normal CI and protected GPU correctness;
- beat current
mainbeyond calibrated noise without a protected regression.
Contributor GPU numbers are diagnostic. Only the protected same-machine evaluation can label, close, or merge a PR.
admission and protected-path checks
|
v
CPU CI and correctness tests
|
v
RTX 5070 Ti: main -> PR -> PR -> main
|
v
correctness, latency, VRAM, and significance decision
| | |
reject no gain admit
| | |
close close merge one
|
v
test merged main
|
re-evaluate next PR
Automatic processing requires an explicit benchmark-ID confirmation, verifies
the queued head SHA and current main, and halts if
post-merge validation fails. After admitting one PR, later candidates are
locally merged with the new main for evaluation; conflicts are blocked, and
neither the contributor branch nor its recorded head SHA is rewritten.
Terminal decisions are written to an append-only attention ledger with raw
artifact hashes and projected separately to dashboard/attention-results.json
on the bot state branch. Attention results never enter the legacy square-GEMM
leaderboard.
git clone https://github.com/zeokin/Cuda-Compute-OSS.git
cd Cuda-Compute-OSS
uv sync --extra test
uv run python -m compileall -q matmul strategy eval attention tests examples
uv run --extra test python -m pytest tests/ strategy/tests/ eval/tests/ -q
uv run python -m strategy.smokeSmall attention-prototype diagnostic:
uv sync --extra test --extra gpu
uv run --extra gpu python -m attention.benchmark \
--seq 1024 --heads 4 --dim 64 --dtype fp16 --window 128 --jsonThis prototype command is not an official scorecard.
Protected benchmark in one clean RTX 5070 Ti checkout:
python -m eval.attention_benchmark --official --jsonManual queue preview on the Windows CUDA environment:
python -m eval.attention_batch --limit 0 --active-pythonThat command previews the queue. A maintainer can evaluate and process the active queue only with the exact benchmark confirmation:
python -m eval.attention_batch --limit 0 --run --clean --active-python --process --confirm-benchmark attention-foundation-v1.1-rtx5070tiContributor PRs cannot modify eval/, benchmarks/, .github/, dashboard/,
public policy, or package configuration. The evaluator records the manifest
hash, commit, post-run seed, environment, raw samples, timed-output checks, and
workload results. A stale result, dirty checkout, repeated-input cache, or
un-restored runtime mutation cannot authorize a merge.
Detailed roadmap, calibration procedure, held-out cases, Windows operations, and recovery instructions are maintainer material and are not published as a miner roadmap. This README is the public project and phase source of truth.
MIT. See LICENSE.