fix: Update inference tests for WatsonX model deprecations and API changes#1969
Merged
Conversation
…anges - Replace deprecated ibm/granite-3-8b-instruct with ibm/granite-4-h-small - Fix double-encoded tool call arguments in WMLInferenceEngineChat - Remove logprobs test for vision model (no longer supported) - Replace WatsonX option-selecting test with HF engine (generation API deprecated) - Update log prob expected values for library version drift - Fix pytest collecting test_metric as standalone test function Signed-off-by: Yoav Katz <katz@il.ibm.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
ibm/granite-3-8b-instructwithibm/granite-4-h-smallin WatsonX inference testsWMLInferenceEngineChat._send_requests(API now returns arguments as a JSON string rather than a dict)meta-llama/llama-3-2-11b-vision-instructno longer supportstop_logprobs)/ml/v1/text/generationAPI andreturn_options.input_tokens/token_logprobsare deprecated platform-wide)test_log_prob_scoring_inference_engine(library version drift)test_metricutility function as a standalone test by renaming the importTest plan
tests/inference/pass locally