Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/om/gpu/dsv41/check-head.py # omega-mv Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance. Brought by drakestapleton Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / om / gpu / dsv41 / check-head.py` 101 lines ยท 4620 bytes Raw Blame History 1 """Compare every vocabulary logit against an independent CPU head using the pinned BF16 shard.""" 2 import hashlib 3 import json 4 import struct 5 import sys 6 from urllib.request import Request, urlopen 7 from pathlib import Path 8 9 import numpy as np 10 11 12 def widened(words): 13 return (words.astype(np.uint32) << 16).view(np.float32) 14 15 16 def rounded(x): 17 bits = np.ascontiguousarray(x, dtype="> 16) & 1)) & 0xffff0000).view(np.float32) 19 20 21 def load_tensors(path): 22 expected = "`d762b688f138e00a24eac96f27b842715bb4b534ecc9ca39076bed2b8c33201e`" 23 with path.open("rb") as f: 24 if hashlib.file_digest(f, "sha256").hexdigest() != expected: 25 raise ValueError("checkpoint shard SHA-256 mismatch") 26 f.seek(0) 27 n, = struct.unpack("