Skip to content

1BP v5 packages: reader, converter and checker - #1

Merged
bong-water-water-bong merged 1 commit into
1bit/mainfrom
1bit/1bp
Sep 28, 2026
Merged

bong-water-water-bong merged 1 commit into
1bit/mainfrom
1bit/1bp

Conversation

@bong-water-water-bong

Copy link
Copy Markdown

ds4 opens 1bit-MONSTER's 1BP packages as well as GGUF.

Format: 1BP v5 is the 256-byte 1BP header and tensor index, plus a metadata block encoded as GGUF's key/value section and 64-byte-aligned data (docs/1BP.md).

Reader: model_open() reads the magic and hands a 1BP file to model_open_onebp() (ds4_onebp.inc), which fills the same tensor and metadata tables as the GGUF reader. Everything after that is unchanged.

Tools:

  • gguf-tools/gguf_to_1bp.py converts a GGUF, either a local file or hf:// read with range requests. It copies the metadata byte for byte and carries every tensor in its GGUF format (1BP quant 256 + ggml type).
  • gguf-tools/check_1bp.py compares a package with its GGUF.

1BP's own tile formats (Q4NX, TQ2, …) are refused for now.

Checked on Strix Halo (ROCm, gfx1151, TheRock):

  • Qwen3-0.6B Q4_K_M → .1bp: check_1bp.py OK, all 310 tensors and 32 metadata keys identical.
  • DeepSeek V4 Flash Q2 (antirez/deepseek-v4-gguf rev f71f23d5, 81 GiB), converted from hf:// without the GGUF on disk: 1,328 tensors, 62 metadata keys. ds4-server on the .1bp gives the same answers and completion-token counts as on the GGUF for three prompts at temperature 0 (256 tokens each), for example "The capital of France is Paris."
  • The build (make strix-halo) is clean.

🤖 Generated with Claude Code

ds4 now opens 1bit-MONSTER's 1BP packages as well as GGUF. 1BP v5 is the 256-byte
1BP header and tensor index, plus a metadata block encoded as GGUF's key/value
section and 64-byte-aligned data (docs/1BP.md). model_open() reads the magic and
hands a 1BP file to model_open_onebp() (ds4_onebp.inc), which fills the same
tensor and metadata tables as the GGUF reader.

gguf-tools/gguf_to_1bp.py converts a GGUF (a local file, or hf:// read with range
requests) by copying its metadata byte for byte and carrying every tensor in its
GGUF format; gguf-tools/check_1bp.py compares a package with its GGUF.

1BP's own tile formats (Q4NX, TQ2, ...) are refused for now.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant