Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: atomsplit
name: bitsplit

on:
push:
paths: ["tokenizers/atomsplit/**", "tokenizers/bitmap_gen/**", ".github/workflows/atomsplit.yml"]
paths: ["tokenizers/bitsplit/**", "tokenizers/bitmap_gen/**", ".github/workflows/bitsplit.yml"]
pull_request:
paths: ["tokenizers/atomsplit/**", "tokenizers/bitmap_gen/**", ".github/workflows/atomsplit.yml"]
paths: ["tokenizers/bitsplit/**", "tokenizers/bitmap_gen/**", ".github/workflows/bitsplit.yml"]

defaults:
run:
Expand All @@ -18,11 +18,11 @@ jobs:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with: { components: rustfmt, clippy }
- run: cargo fmt -p atomsplit -p bitmap_gen -- --check
- run: cargo clippy -p atomsplit --all-targets -- -D warnings
- run: cargo test -p atomsplit # unit + parity gates (cl100k/deepseek/byte_level vs onig)
- run: cargo fmt -p bitsplit -p bitmap_gen -- --check
- run: cargo clippy -p bitsplit --all-targets -- -D warnings
- run: cargo test -p bitsplit # unit + parity gates (cl100k/deepseek/byte_level vs onig)
# committed classify tables must match the generator
- run: cargo run -p bitmap_gen && git diff --exit-code atomsplit/src/atom_tables.rs
- run: cargo run -p bitmap_gen && git diff --exit-code bitsplit/src/atom_tables.rs

# AVX-512 classify path — GitHub runners often lack AVX-512, so emulate it with Intel SDE and run the
# SAME byte-exact test binaries under it.
Expand All @@ -39,7 +39,7 @@ jobs:
echo "$PWD/${SDE_VER}" >> "$GITHUB_PATH"
- name: Run tests under SDE (-future = AVX-512)
run: |
cargo test -p atomsplit --no-run --message-format=json \
cargo test -p bitsplit --no-run --message-format=json \
| jq -r 'select(.profile.test == true) | .executable | select(. != null)' \
| while read -r bin; do echo "SDE: $bin"; sde64 -future -- "$bin"; done

Expand All @@ -55,4 +55,4 @@ jobs:
env:
RUSTFLAGS: "-C target-feature=+simd128"
CARGO_TARGET_WASM32_WASIP1_RUNNER: "wasmtime run --"
run: cargo test -p atomsplit --target wasm32-wasip1
run: cargo test -p bitsplit --target wasm32-wasip1
142 changes: 12 additions & 130 deletions tokenizers/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tokenizers/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[workspace]
resolver = "3"
members = ["bitmap_gen", "atomsplit", "tk-encode", "tk-train"]
members = ["bitmap_gen", "bitsplit", "tk-encode", "tk-train"]

[package]
authors = [
Expand Down
48 changes: 0 additions & 48 deletions tokenizers/atomsplit/Cargo.toml

This file was deleted.

Loading