-
Notifications
You must be signed in to change notification settings - Fork 23
Align I/O with Inference API #99
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 17 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
d20528a
Fix `task` type-hint and remove extra space in `logging`
alvarobartt be146c8
Align `transformers` and `diffusers` inputs with Inference API
alvarobartt 0b61436
Remove duplicated `sentencepiece` extra requirement
alvarobartt 49254e9
Remove `pipeline.task` check for `sentence-transformers`
alvarobartt b45c40a
Add `warning` and `pop` unsupported parameters
alvarobartt b9dec32
Fix `sentence-transformers` pipeline type-hints
alvarobartt 77c2bb2
Update `sentence-ranking` type-hints
alvarobartt 9b4fc67
Add missing type-hints and clear code a bit
alvarobartt c1d519a
Fix failing `sentence-transformers` tests due to input parsing
alvarobartt 7f0d84d
Fix "table-question-answering" payload check
alvarobartt 307b27f
Fix "zero-shot-classification" payload check
alvarobartt d3d2b5e
Check that payload is `dict` in advance
alvarobartt 64cbeb1
Fix `HuggingFaceHandler` errors and checks
alvarobartt 8cbd4be
Fix `sentence-transformers` pipelines as those don't have parameters
alvarobartt 0053e97
Fix `INPUT` to `input_data` fixture
alvarobartt b9dbf58
Fix quality in `tests/unit/test_handler.py`
alvarobartt d764e44
Make `parameters` default to empty dict instead of None
alvarobartt 5fbe5af
Add note on `token-classification` / `ner` task
alvarobartt 21ab873
Update `version` in `setup.py`
alvarobartt 7a225e2
Fix `generate_kwargs` payload handling for text2text-based tasks
alvarobartt cd9ebe7
Fix `generate_kwargs` handling to move to flatten first-level dict
alvarobartt 280101d
Update `generate_kwargs` handling as sometimes required
alvarobartt 42cd852
Remove `generate` from supported generation kwargs key names
alvarobartt 01cd7a8
Update `SentenceRankingPipeline` to handle `query`-`texts` pipelines
alvarobartt 4ffcdfd
Update typing and fix `sentence-transformers` tests
alvarobartt 9d87331
Upgrade `transformers`, `sentence-transformers` and `peft` dependencies
alvarobartt 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
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.