huangd1999/EffiCoder

[ICML 2025] EffiCoder: Enhancing Code Generation in Large Language Models through Efficiency-Aware Fine-tuning

16

stars

9

commits

Python

primary language

May 24, 2025

updated

README

EffiCoder: Enhancing Code Generation in Large Language Models through Efficiency-Aware Fine-tuning

Installation

cd EffiCoder
pip install -r requirements.txt
cd LLaMA-Factory
pip install -e ".[torch,metrics]"

Fine-tune LLMs with EffiCoder

We have provided the EffiCoder dataset in EffiCoder/LLaMA-Factory/data/efficoder.json, so we can directly use SFT and other methods to finetune LLMs.

cd EffiCoder/LLaMA-Factory
bash run.sh

VLLM inference

cd EffiCoder/scripts
bash run.sh

Report Efficiency and pass@1 results

cd EffiCoder/src
python code_efficiency_calculator.py
python calculate_memory_usage.py

Contributors

huangd1999

6 commits

ChaosCodes

3 commits

huangd1999/EffiCoder

[ICML 2025] EffiCoder: Enhancing Code Generation in Large Language Models through Efficiency-Aware Fine-tuning

16

stars

9

commits

Python

primary language

May 24, 2025

updated

README

EffiCoder: Enhancing Code Generation in Large Language Models through Efficiency-Aware Fine-tuning

Installation

cd EffiCoder
pip install -r requirements.txt
cd LLaMA-Factory
pip install -e ".[torch,metrics]"

Fine-tune LLMs with EffiCoder

We have provided the EffiCoder dataset in EffiCoder/LLaMA-Factory/data/efficoder.json, so we can directly use SFT and other methods to finetune LLMs.

cd EffiCoder/LLaMA-Factory
bash run.sh

VLLM inference

cd EffiCoder/scripts
bash run.sh

Report Efficiency and pass@1 results

cd EffiCoder/src
python code_efficiency_calculator.py
python calculate_memory_usage.py

Contributors

huangd1999

6 commits

ChaosCodes

3 commits

Languages

Python

99.0%