Basics Β· Inside 8K-Context Rotary GTE-Base & Compression Quantization

8K Rotary Scaling & 768d β†’ 1-Bit Storage/Recall Benchmark

Measure real CPU WASM latency as Alibaba-NLP/gte-base-en-v1.5 scales past 512 tokens up to 2,048–4,096 tokens, verify tail-clause recall vs a 512-token cutoff, and benchmark 768d β†’ 512d β†’ 256d β†’ 128d β†’ int8 β†’ 1-bit binary vector compression on live embeddings.

1. Long-Context Rotary Scaling Sweep & 512-Cutoff Check

Live WASM latency scaling (128 β†’ 4,096 tok)

Measured WASM context telemetry

Live GTE-Base v1.5 WASM scaling benchmark across token lengths
Target Exact tok Latency Tok/s L2 norm NaN
Click "Run live 128 β†’ 2,048 tok sweep" above to benchmark on this device.

2. 768d β†’ 512d β†’ 256d β†’ 128d β†’ int8 β†’ 1-Bit Storage/Recall Benchmark

Pos/Neg margin by representation

Live compression retention table

Live 768d->128d truncation, scalar int8, and 1-bit binary metrics
Format Bytes/vec Ratio MRR Margin Cos ret. Rank ρ
Run the benchmark above to measure live storage/recall trade-offs.

Per-sentence L2 norm, WordPiece token count & binary bit agreement

Token count, L2 norm, 768d vs 128d cosine, and 1-bit Hamming match per sentence
Sentence Tokens L2 norm 768-d cos 128-d cos 1-bit bit match
Waiting for live forward pass…

Show the code

Show the code: dimension slice truncation + L2 renormalization (gte-core.mjs)
Show the code: 768d->128d + int8 + 1-bit binary curve & MRR evaluation (gte-core.mjs)