Refactor evaluation module and add unit tests#1325
Closed
Copilot wants to merge 1 commit intoxinhe/evalfrom
Closed
Refactor evaluation module and add unit tests#1325Copilot wants to merge 1 commit intoxinhe/evalfrom
Copilot wants to merge 1 commit intoxinhe/evalfrom
Conversation
Copilot
AI
changed the title
[WIP] Refactor eval function and add unit tests
Refactor evaluation module and add unit tests
Jan 23, 2026
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.
Refactored evaluation functionality into a dedicated
auto_round/evalmodule and added comprehensive unit tests for CPU and GPU backends.Changes
Module Structure
auto_round/eval/eval_cli.py(486 lines): CLI argument parsing, vLLM/HF backend orchestration, custom argument parsingauto_round/eval/evaluation.py(439 lines): Core evaluation wrappers forlm_evallibraryauto_round/eval/__init__.py: Module exportsUnit Tests
test/test_cpu/advanced/test_evaluation_functions.py(121 lines): Tests forparse_vllm_args()with various types (int, float, bool, string, mixed)test/test_cuda/advanced/test_evaluation.py(115 lines): Integration tests for vLLM backend with custom args, quantization workflowsCompatibility & Optimization
allow_deprecated_quantization: Truefor vLLM 0.14.0 compatibilitymax_model_len=2048parameter to vLLM tests for faster executionExample Usage
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.