8000 Add unpadded dynamic seq_len mode, Max RSS reporting, and -set flags for embedding benchmarks/tests by janpfeifer · Pull Request #80 · gomlx/go-huggingface · GitHub
[go: up one dir, main page]

Skip to content

Add unpadded dynamic seq_len mode, Max RSS reporting, and -set flags for embedding benchmarks/tests - #80

Merged
janpfeifer merged 3 commits into
mainfrom
optimize-gguf
Nov 13, 2026
Merged

janpfeifer merged 3 commits into
mainfrom
optimize-gguf

Conversation

@janpfeifer
Copy link
Copy Markdown
Contributor

Summary

  • Add Bucketizer.Unpadded() (and a zero-copy fast path in Bucketizer.Run) in tokenizers/bucket to stream individual unpadded sentences with parallel tokenization.
  • Update examples/msmarco/benchmark_embed so that when -bucket <= 0 and -dynamic=true (on dynamic-shape-capable backends), sentences are embedded without padding (bkt.Unpadded(), seqLen == nil, and WithDynamicAxes([]string{"", "seq_len"})).
  • Add Max RSS Mem row (syscall.Getrusage) to benchmark_embed's speed summary table (ReportSpeed).
  • Add -set hyperparameter flag (commandline.CreateSettingsFlag, pre-populated with layers.ParamQuantizedMatmul: true) to both examples/msmarco/benchmark_embed and examples/minilm-l6-v2-gguf tests.

Related PRs: gomlx/compute#71, gomlx/gomlx#487
Reference link: gomlx/onnx-gomlx#114

@janpfeifer
janpfeifer merged commit f86da35 into main Nov 13, 2026
4 of 5 checks passed
@janpfeifer
janpfeifer deleted the optimize-gguf branch November 15, 2026 06:24
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

0