Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR introduces training configurations and scripts for the SFT (Supervised Fine-Tuning) component of the PurpCode project, including baseline implementations and controlled experiments for data ablation studies.
- Adds training configurations for context distillation fine-tuning with Qwen 14B and 32B models
- Implements data splitting script for safety ratio ablation experiments with different ratios (1/3, 1/2, 2/3)
- Provides baseline training configurations for SafeCoder and ProSec-SIMPO methods
- Includes utility scripts for pushing models and datasets to Hugging Face Hub
Reviewed Changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| sft/ctxdistill_qwen32b.yaml | Configuration for 32B model context distillation training |
| sft/ctxdistill_qwen14b.yaml | Configuration for 14B model context distillation training |
| sft/controlled/data_split_for_data_ablation.py | Script to split data for safety ratio ablation experiments |
| sft/controlled/ctxdistill_qwen14b_safety_ratio_*.yaml | Training configs for different safety data ratios |
| sft/baselines/safecoder.yaml | SafeCoder baseline training configuration |
| sft/baselines/prosec-simpo.yaml | ProSec-SIMPO baseline training configuration |
| script/push_model_hub.py | Fixed example command comment |
| script/push_data_hub.py | Utility script for pushing datasets to Hugging Face Hub |
Comments suppressed due to low confidence (3)
script/push_data_hub.py:9
- The function name 'push_model' is misleading as this function pushes datasets, not models. It should be renamed to 'push_dataset' or 'push_data' for clarity.
def push_model(path: str, split: str, dataset: str = None):
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.
No description provided.