|
Download README.md from OpenCausaLab/StructuralGeneration: direct link, hf CLI and curl.
- Browser
- Download file 1.14 kB
-
https://huggingface.co/datasets/OpenCausaLab/StructuralGeneration/resolve/main/README.md
- Command line
-
hf download hf://datasets/OpenCausaLab/StructuralGeneration/README.md
-
curl -L -o README.md https://huggingface.co/datasets/OpenCausaLab/StructuralGeneration/resolve/main/README.md
1.14 kB
| license: mit | |
| language: | |
| - en | |
| This is the code and data for the paper "Synthesis by Design: Controlled Data Generation via Structural Guidance". | |
| ## Environment | |
| ``` | |
| OS: Ubuntu 22.04.2 LTS | |
| CUDA Version: 12.4 | |
| python=3.9.20 | |
| torch=2.5.1 | |
| transformers=4.46.1 | |
| llamafactory=0.9.2.dev0 | |
| vllm=0.6.5 | |
| deepspeed=0.15.4 | |
| ``` | |
| ## Data Generation | |
| ``` bash | |
| cd generation | |
| # Before generating, put your api_key in 'math_utils/api_keys.py'. | |
| # Translate reasoning process into code program | |
| python GSM8K_code_generation.py | |
| # Generate harder problems | |
| python GSM8K_extension.py | |
| # Translate reasoning process into code program | |
| python MATH_code_generation.py | |
| # Generate harder problems | |
| python MATH_extension.py | |
| ``` | |
| ## Fine-tuning | |
| ``` bash | |
| cd train | |
| # Model path is needed in the training script. | |
| bash train.sh | |
| # Model path is needed in the evaluating script. | |
| bash eval.sh | |
| ``` | |
| Reference: | |
| ``` | |
| @misc{anonymous2025synthesis, | |
| title = {Synthesis by Design: Controlled Data Generation via Structural Guidance}, | |
| author = {Lei Xu and Sirui Chen and Yuxuan Huang and Chaochao Lu}, | |
| year = {2025}, | |
| eprint={2506.07664}, | |
| archivePrefix={arXiv} | |
| } | |
| ``` | |