Add RLVR grader framework, CLI, Lambda deployment, and BFCL tool-calling evaluation#2
Open
mccartnick wants to merge 1 commit intomainfrom
Open
Add RLVR grader framework, CLI, Lambda deployment, and BFCL tool-calling evaluation#2mccartnick wants to merge 1 commit intomainfrom
mccartnick wants to merge 1 commit intomainfrom
Conversation
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.
feat: Add RLVR grader framework, CLI, Lambda deployment, and BFCL tool-calling evaluation
Issue #, if available: N/A
Description of changes:
Extends llm-eval-kit (v1.0 → v1.1.0) with a grader framework for building and deploying reward functions for Reinforcement Learning with Verifiable Rewards (RLVR) on Amazon Bedrock. All existing SageMaker pre/post processor functionality, tests, and documentation are preserved — this is purely additive.
Grader framework (
src/llm_eval_kit/graders/)GraderABC,@graderdecorator, andGraderRegistryfor defining and registering evaluation functionsexact_match,string_similarity(Levenshtein + token F1),tool_call(BFCL-style AST comparison with type coercion and weighted scoring across function name, param names, and param values)Data models (
src/llm_eval_kit/models/)Message,EvalSample,EvalDataset,EvaluateResult,MetricResultEvalDatasetwith JSONL serialization and iteration supportDataset loaders (
src/llm_eval_kit/datasets/)load_jsonl— generic JSONLload_bfcl— BFCL-specific field mappingload_huggingface— pull from HuggingFace Hub with configurable column mapping,data_filesselection, and nested list unwrapping for BFCL formatEvaluation pipeline (
src/llm_eval_kit/execution/)EvalPipeline— runs a grader over a dataset, collects per-sample results, and produces anEvalReportwith summary statistics and optional JSONL outputLambda deployment (
src/llm_eval_kit/deploy/)deploy_grader— packages a grader + llm_eval_kit + dependencies (pydantic, etc.) into a zip, creates/updates a Lambda function via boto3deploy_reward_function— lightweight deployer for standalone zero-dependency reward function filesuvfor dependency installation withpipfallbackCLI (
src/llm_eval_kit/cli/)llm-eval-kit evaluate— run a grader over a dataset (JSONL or BFCL format)llm-eval-kit list-graders— show registered gradersllm-eval-kit validate— schema-check a dataset filellm-eval-kit deploy— deploy a grader as a Lambda reward functionDocumentation (
docs/)graders.md,datasets.md,deploy.md,cli.mdREADME.mdwith RLVR section and doc links tableOther
pyproject.toml— added[datasets],[deploy]optional deps, CLI entry point,requires-python >= 3.10.gitignore— added for the repouvas the recommended package manager throughout docs and deployment codeBy submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.