SkillAgentSearch skills...

ScaleBiO

This is the official implementation of ScaleBiO: Scalable Bilevel Optimization for LLM Data Reweighting

Install / Use

/learn @2003pro/ScaleBiO
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

ScaleBiO: Scalable Bilevel Optimization for LLM Data Reweighting

This repo contains the code for our paper ScaleBiO: Scalable Bilevel Optimization for LLM Data Reweighting. In this work, we introduce ScaleBiO, the first scalable instantiation of first-order bilevel optimization algorithm, focusing on large-scale LLM data reweighting.

Latest News

  • [2024-07-30] Preview version - we release the demo data reweighting code and data for gpt2 and Yi-34B on alpaca and alpaca-gpt4 dataset.

Quick Start

Setup

pip install -r requirements.txt

Reweighting

export WANDB_API_KEY=<your_wandb_api_key> and turn on --use_wandb in the script

./run_gpt2.sh

./run_Yi34B.sh

Recommended Hardware Configuration

8x A40/A100 GPUs and 2TB Memory

Citation

If you find this repository useful, please consider giving ⭐ and citing our paper:

@article{pan2024scalebio,
  title={ScaleBiO: Scalable Bilevel Optimization for LLM Data Reweighting},
  author={Pan, Rui and Zhang, Jipeng and Pan, Xingyuan and Pi, Renjie and Wang, Xiaoyu and Zhang, Tong},
  journal={arXiv preprint arXiv:2406.19976},
  year={2024}
}
View on GitHub
GitHub Stars24
CategoryDevelopment
Updated2mo ago
Forks3

Languages

Python

Security Score

90/100

Audited on Jan 20, 2026

No findings