Skip to content

Closed binaries ship under the 1bit Binary License, with their third-party notices - #465

Merged
bong-water-water-bong merged 1 commit into
mainfrom
1bit/binary-license
Oct 20, 2026
Merged

bong-water-water-bong merged 1 commit into
mainfrom
1bit/binary-license

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

Owner, 2026-10-19: our kernels, ELFs, NPU runtime and add-ons stay closed source, people can use them, and our copyright goes everywhere.

Terms (owner's choices):

  • Anyone may use the binaries for any purpose, including commercial use.
  • Exact, unmodified copies may be passed on with the license and notices.
  • Not allowed: modifying them, reverse engineering them (except where the law expressly permits it), removing notices.
  • No warranty.

Changes:

  • LICENSE-BINARY: the 1bit Binary License for the closed binaries: HIP kernel code objects and their libraries, npu_rt, NPU kernel ELFs and program images, and NPU add-ons.
  • NOTICE-BINARY: the third-party code inside them, with the MIT text:
    • the ggml IQ3_S grid (MIT);
    • OpenFlowLM-Next open kernels, including AMD's OpenFlowLM portions (MIT);
    • LLMNpuTest (Apache-2.0).
  • The Linux package (scripts/package-linux.sh) and the 1bit OS image (os/mini/mkimage.sh, os/LICENSES.md) carry both files beside LICENSE and NOTICE.
  • scripts/weekly.sh package checks now fail when either file is missing from the tarball.
  • README and docs/releases.md name the license. tools/copyright.py exempts the two files.

The engine's own source stays Apache-2.0. The license text is plain and standard; have a lawyer read it before relying on it commercially.

Follow-ups:

  • The private repos' source headers move from Apache-2.0 to "All rights reserved".
  • A copyright note is built into each closed binary.
  • A public binary drop per pin, so source builds outside the org get the closed parts.

🤖 Generated with Claude Code

…ird-party notices

Owner, 2026-10-19: the kernels, ELFs, NPU runtime and add-ons stay closed source, people
can use them, and our copyright goes everywhere.

- LICENSE-BINARY: the 1bit Binary License for the closed binaries (HIP kernel code objects
  and their libraries, npu_rt, NPU kernel ELFs and program images, NPU add-ons). Anyone may
  use them for any purpose, including commercial use, and pass on exact unmodified copies
  with the license and notices; no modification, no reverse engineering except where the
  law expressly allows it, no removing notices; no warranty.
- NOTICE-BINARY: the third-party code inside them (the ggml IQ3_S grid, MIT; OpenFlowLM-Next
  open kernels incl. AMD's OpenFlowLM portions, MIT; LLMNpuTest, Apache-2.0) with the MIT text.
- The Linux package and the 1bit OS image carry both beside LICENSE and NOTICE, and the
  release package checks fail if either is missing.
- README and docs/releases.md name the license; tools/copyright.py exempts the two files.

The engine's own source stays Apache-2.0.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

Copy link
Copy Markdown

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

⏱️ Estimated effort to review: 3 🔵🔵🔵⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

License Exemption Missing

The new license files LICENSE-BINARY and NOTICE-BINARY are added to the EXEMPT list in tools/copyright.py, but the exemption pattern LICENSE-BINARY and NOTICE-BINARY is not correctly matched for files with these exact names. The pattern should be LICENSE-BINARY and NOTICE-BINARY (without wildcards) to properly exempt these files from copyright header checks.

EXEMPT = ["third_party/*", "os/licenses/*", "config/draft-vocab/*", "patches/*", "LICENSE", "NOTICE", "LICENSE-BINARY", "NOTICE-BINARY", "*.gguf", "tests/golden/*.bin", "tests/golden/*/*.bin", "*.json", "*.tsv", "tests/golden/*/tokens.txt", "*/Cargo.lock", "*.png", "*.ico",
          # engine#315 evidence artefacts that cannot carry a comment: diffs must stay byte-applicable
          # and data files have no comment syntax. Matches the existing "patches/*" exemption.
          "*.patch", "*.csv", "*.cfg"]
License File Check

The check for LICENSE-BINARY and NOTICE-BINARY in scripts/weekly.sh uses a loop to verify that each file exists in the tarball. However, the check does not validate that these files are present in the correct location or that they are not empty, which could lead to a false positive if the files are present but malformed.

for f in LICENSE NOTICE LICENSE-BINARY NOTICE-BINARY; do
    n=$(find "$t" -maxdepth 2 -type f -name "$f" | wc -l)
    [ "$n" != 0 ] || { echo "FAIL $f is not in $(basename "$1")"; bad=1; }
done

@bong-water-water-bong
bong-water-water-bong enabled auto-merge (squash) October 20, 2026 01:35
@bong-water-water-bong
bong-water-water-bong merged commit 8167ce4 into main Oct 20, 2026
8 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the 1bit/binary-license branch October 20, 2026 01:38
bong-water-water-bong pushed a commit that referenced this pull request Nov 21, 2026
…464)

Carries two commits, both engine-issue work:

  f0226577c8  test-hrx-ops: the add-on route is accepted per row, not per kernel name (engine#3120) (#465)
  9ad2005458  test-hrx-ops: count the add-on's FA route in the full-cache prefill row (engine#3085) (#464)

#465 is the engine#3120 fix and #464 is the third row family of engine#3085; neither
reaches an engine tree until the pin moves, which is why this bump exists. The fork head
has moved three times tonight, so this is the second bump of the evening and it will not
be the last.

registry/architectures.json regenerated by tools/registry_build.py (350 architectures,
hrx 350, npu 9); --check, --check-pins and copyright --check pass on the staged tree, and
tools/ci/fa_split_expectation_check.py --check --root third_party/llama.cpp is rc 0 at the
new pin. hw-gate starts by itself for a pin-moving PR (engine#2759).

Co-authored-by: bong-water-water-bong <[email protected]>
bong-water-water-bong added a commit that referenced this pull request Nov 21, 2026
…464) (#3128)

Carries two commits, both engine-issue work:

  f0226577c8  test-hrx-ops: the add-on route is accepted per row, not per kernel name (engine#3120) (#465)
  9ad2005458  test-hrx-ops: count the add-on's FA route in the full-cache prefill row (engine#3085) (#464)

#465 is the engine#3120 fix and #464 is the third row family of engine#3085; neither
reaches an engine tree until the pin moves, which is why this bump exists. The fork head
has moved three times tonight, so this is the second bump of the evening and it will not
be the last.

registry/architectures.json regenerated by tools/registry_build.py (350 architectures,
hrx 350, npu 9); --check, --check-pins and copyright --check pass on the staged tree, and
tools/ci/fa_split_expectation_check.py --check --root third_party/llama.cpp is rc 0 at the
new pin. hw-gate starts by itself for a pin-moving PR (engine#2759).

Co-authored-by: bong-water-water-bong <[email protected]>
bong-water-water-bong added a commit that referenced this pull request Nov 21, 2026
…e swiglu row fix (engine#3120) (#3169)

Fork #475 squashed as 78092612d ("the packed-weight layout belongs to the route that ran,
not to the row") and #477 as "the two layouts the swiglu rows choose between must differ"
are both on the fork's line and neither is in main's pin, which still points at the #472
squash (3514f3a84085, merged 06:12Z; #475 merged 08:00Z).

What the bump fixes: eight dense_matmul_swiglu.q4_k.q4_k rows fail on
hrx-ops-test.cpp:453 (binding.layout == kQ4KPackedK256Row64Layout) in an add-on build even
with #465's per-row acceptance, because the packed K256/row64 layout is a fact about the LOOM
kquant route and the add-on reads the weight stored (#2392). The #477 commit adds the
distinctness arm that keeps the two-route choice from collapsing into one value.

  git merge-base --is-ancestor 78092612d <new pin>   ->  yes

registry/architectures.json carries the same sha in the same commit, as every bump does.

Co-authored-by: bong-water-water-bong <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant