Skip to content

Add modular packing utilities and benchmarks for all tasks - #20

Open
vivekkalyanarangan30 wants to merge 2 commits into
fastino-ai:mainfrom
vivekkalyanarangan30:main
Open

Add modular packing utilities and benchmarks for all tasks#20
vivekkalyanarangan30 wants to merge 2 commits into
fastino-ai:mainfrom
vivekkalyanarangan30:main

Conversation

@vivekkalyanarangan30

Copy link
Copy Markdown

Add modular packing utilities and benchmarks for all tasks

  • extract packing/mask handling into gliner2/packing_utils and wire model, processor, and inference to use it
  • add packing-aware benchmarks for NER, classification, and structured extraction
  • keep position ids consistent across packed runs and verify parity (tests/test_infer_packing, bench scripts) with cached DeBERTa model; observed ~6.3x NER speedup (8.94s -> 1.42s) with identical outputs

- extract packing/mask handling into gliner2/packing_utils and wire model, processor, and inference to use it
- add packing-aware benchmarks for classification and structured extraction alongside NER
- keep position ids consistent across packed runs and verify parity (tests/test_infer_packing, bench scripts) with cached DeBERTa model
Add modular packing utilities and benchmarks for all tasks
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