-
Notifications
You must be signed in to change notification settings - Fork 0
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
[pull] main from huggingface:main #10
Conversation
* Fix lighteval cmd * Fix typo * Pin lighteval * Hacks to the max * Fix slurm * Fix * Pin lighteval * Pin l --------- Co-authored-by: [email protected] <[email protected]>
🚨 gitStream Monthly Automation Limit Reached 🚨 Your organization has exceeded the number of pull requests allowed for automation with gitStream. To continue automating your PR workflows and unlock additional features, please contact LinearB. |
Reviewer's Guide by SourceryThis pull request introduces a new code format reward function, updates installation instructions in the README, modifies dependencies in Sequence diagram for the code format rewardsequenceDiagram
participant User
participant GRPO
participant Reward Function
User->>GRPO: Provides completion
GRPO->>Reward Function: Calls get_code_format_reward(language)
Reward Function->>Reward Function: Defines code_format_reward(completions, **kwargs)
Reward Function->>Reward Function: Applies regex pattern to completion content
Reward Function-->>GRPO: Returns reward (1.0 if match, 0.0 if not)
GRPO-->>User: Returns reward
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.1)
Can you help keep this open source service alive? 💖 Please sponsor : )
Summary by Sourcery
This pull request introduces a new
code_format
reward function to encourage models to generate code in a specific format. It also updates the installation instructions and evaluation commands in the README, and adds a new test suite for thecode_format
reward function.New Features:
code_format
, to incentivize the model to generate code responses in a specific format, including<think>
and<answer>
tags with a language identifier.Enhancements:
uv pip install
without the--link-mode=copy
flag, and adds a tip for Hugging Face cluster users to suppress cache warnings.generation_parameters={max_new_tokens:32768,temperature:0.0}
in theMODEL_ARGS
to control generation parameters.langdetect
as a dependency for LightEval's extended tasks.Tests:
TestCodeFormat
, to verify thecode_format
reward function with various correct and incorrect code formats, including different languages and multiple code blocks.