-
Notifications
You must be signed in to change notification settings - Fork 312
feat(server): serve GLiNER2.5-Decide typed-decision models #368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
e0d10a6
feat(server): serve GLiNER2.5-Decide typed-decision models
svonava 1282ff3
fix(server): bound GLiNER2.5-Decide token caches and document its image
svonava 59c5ac9
fix(server): give GLiNER2.5-Decide the 512-token window of its base m…
svonava dc6d4f0
fix(server): split GLiNER2.5-Decide documents in linear time
svonava c6fb9df
fix(server): report a conversation cut inside an overlong run as not …
svonava ec7eb49
Merge remote-tracking branch 'origin/main' into gliner25-decide
svonava 2215d34
docs(server): say GLiNER2.5-Decide questions in one request are not i…
svonava File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
packages/sie_server/models/fastino__GLiNER2.5-Decide-1B.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| # GLiNER2.5-Decide-1B: typed-decision classifier on the Ettin 1B encoder | ||
| # (jhu-clsp/ettin-enc-from-dec-1b, ModernBERT; span architecture), loaded through | ||
| # gliner2 2.x AutoExtractor. Served from the transformers5 bundle, which pins gliner2 2.x. | ||
| # | ||
| # Checkpoint caveat: the weights at this revision are the step-285000 checkpoint | ||
| # (upload commit eac5ac1e). The 59.6% fast-decisions score on the model card was | ||
| # measured on an earlier step-195000 checkpoint (stated in that revision's card); | ||
| # the uploaded weights had not been re-evaluated. | ||
| # | ||
| # The encoder config stores its RoPE bases only in the transformers-5 | ||
| # rope_parameters form (160000 for full and sliding-window layers). The adapter | ||
| # checks the bases the loaded encoder actually uses, and under transformers 4 | ||
| # writes them where that version reads them (it would otherwise run the | ||
| # sliding-window layers at 10000). | ||
| sie_id: fastino/GLiNER2.5-Decide-1B | ||
| hf_id: fastino/GLiNER2.5-Decide-1B | ||
| hf_revision: 52c94d3b698bf6d2619df9d898bdc1523ea3f1ca | ||
| inputs: | ||
| text: true | ||
| image: false | ||
| audio: false | ||
| video: false | ||
| tasks: | ||
| encode: null | ||
| score: null | ||
| extract: {} | ||
| # Tokens per item: every question's prompt and labels, then the document. The | ||
| # Ettin encoder config sets max_position_embeddings 7999 and the tokenizer | ||
| # model_max_length 8192; 2048 tokens stays within both. | ||
| max_sequence_length: 2048 | ||
| profiles: | ||
| default: | ||
| max_batch_tokens: 16384 | ||
| compute_precision: float16 | ||
| adapter_path: sie_server.adapters.gliner2.decide:GLiNER2DecideAdapter | ||
| adapter_options: | ||
| loadtime: {} | ||
| runtime: {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| # GLiNER2.5-Decide: English typed-decision classifier (DeBERTa-v3-large encoder, | ||
| # span architecture), loaded through gliner2 2.x AutoExtractor. Served from the | ||
| # transformers5 bundle, which pins gliner2 2.x. | ||
| sie_id: fastino/GLiNER2.5-Decide | ||
| hf_id: fastino/GLiNER2.5-Decide | ||
| hf_revision: 7ee5da4c2415e32259bcdc0b1a7367c32ce8d6f6 | ||
| inputs: | ||
| text: true | ||
| image: false | ||
| audio: false | ||
| video: false | ||
| tasks: | ||
| encode: null | ||
| score: null | ||
| extract: {} | ||
| # Tokens per item: every question's prompt and labels, then the document. 512, | ||
| # as for fastino/gliner2-large-v1, this model's base: its DeBERTa-v3-large encoder | ||
| # was pretrained on 512 positions (max_position_embeddings), and neither the model | ||
| # card nor the checkpoint config (max_len null) gives a longer length. | ||
| max_sequence_length: 512 | ||
| profiles: | ||
| default: | ||
| max_batch_tokens: 16384 | ||
| compute_precision: float16 | ||
| adapter_path: sie_server.adapters.gliner2.decide:GLiNER2DecideAdapter | ||
| adapter_options: | ||
| loadtime: {} | ||
| runtime: {} |
27 changes: 27 additions & 0 deletions
27
packages/sie_server/models/fastino__GLiNER2.5-multi-Decide.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| # GLiNER2.5-multi-Decide: multilingual typed-decision classifier (mDeBERTa-v3-base | ||
| # encoder, boundary architecture; trained with max_len 4096 words), loaded through | ||
| # gliner2 2.x AutoExtractor. Served from the transformers5 bundle, which pins gliner2 2.x. | ||
| sie_id: fastino/GLiNER2.5-multi-Decide | ||
| hf_id: fastino/GLiNER2.5-multi-Decide | ||
| hf_revision: 6bc1d43d201b0691e733626389af8c57eea3ea68 | ||
| inputs: | ||
| text: true | ||
| image: false | ||
| audio: false | ||
| video: false | ||
| tasks: | ||
| encode: null | ||
| score: null | ||
| extract: {} | ||
| # Tokens per item: every question's prompt and labels, then the document. The | ||
| # checkpoint config sets max_len 4096 (gliner2 counts it in words), and the | ||
| # tokenizer sets no length limit; 2048 tokens stays within both. | ||
| max_sequence_length: 2048 | ||
| profiles: | ||
| default: | ||
| max_batch_tokens: 16384 | ||
| compute_precision: float16 | ||
| adapter_path: sie_server.adapters.gliner2.decide:GLiNER2DecideAdapter | ||
| adapter_options: | ||
| loadtime: {} | ||
| runtime: {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.