{"id":22354673,"url":"https://github.com/pprp/lpzero","last_synced_at":"2025-10-14T06:11:32.467Z","repository":{"id":258939061,"uuid":"720985905","full_name":"pprp/LPZero","owner":"pprp","description":"[EMNLP24]LPZero: Language Model Zero-Cost Proxy Search from Zero","archived":false,"fork":false,"pushed_at":"2024-10-21T06:24:54.000Z","size":4081,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T14:06:09.787Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc-by-4.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pprp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-20T05:45:23.000Z","updated_at":"2024-12-27T08:58:01.000Z","dependencies_parsed_at":"2024-10-22T08:11:58.610Z","dependency_job_id":null,"html_url":"https://github.com/pprp/LPZero","commit_stats":null,"previous_names":["pprp/lpzero"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pprp/LPZero","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pprp%2FLPZero","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pprp%2FLPZero/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pprp%2FLPZero/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pprp%2FLPZero/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pprp","download_url":"https://codeload.github.com/pprp/LPZero/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pprp%2FLPZero/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279018120,"owners_count":26086280,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-04T13:14:36.023Z","updated_at":"2025-10-14T06:11:32.452Z","avatar_url":"https://github.com/pprp.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LPZero: Language Model Zero-cost Proxy Search from Zero\n\nLPZero is a framework for automatically designing zero-cost proxies for language models, achieving superior ranking consistency and performance.\n\n## Overview\n\nLPZero leverages genetic programming to optimize the design of zero-cost proxies, modeled as symbolic expressions. It includes a Rule-based Pruning Strategy (RPS) to enhance search efficiency by eliminating unpromising proxies early in the process.\n\n## Key Features\n\n- Automated zero-cost proxy design for language models\n- Genetic programming algorithm for proxy optimization\n- Rule-based Pruning Strategy (RPS) for efficient search space exploration\n- Evaluation on state-of-the-art models like FlexiBERT, GPT-2, and LLaMA-7B\n- Comprehensive set of metrics for model evaluation\n\n## Installation\n\n1. Clone the repository:\n\n```bash\ngit clone https://github.com/pprp/LPZero.git\ncd LPZero\npip install -r requirements.txt\n```\n\n## Usage\n\nHow to rank? \n\n```bash \nMETHOD=lpzero\nCUDA_VISIBLE_DEVICES=2 python lpzero/runner/eval_rank_gpt2.py \\\n    --method $METHOD \\\n    --exp_name ./saved_logs/random_GPT2_wt103 --plot --get_cost \\\n     \u003e ./logs/rank_corr_${METHOD}_aftersearch.log 2\u003e\u00261 \u0026\n```\n\nHow to train? \n\n```bash \nbash scripts/run_train.sh\n```\n\n## Experiments\n\nThe framework has been tested on:\n\n- **FlexiBERT**\n- **GPT-2**\n- **LLaMA-7B**\n\nFor detailed experimental results, refer to the `exps` folder.\n\n\n## License\n\nThis project is licensed under the MIT License.\n\n\n## Citation\n\nIf you find this work useful in your research, please consider citing:\n\n```\n@inproceedings{Dong2024LPZeroLM,\n  title={LPZero: Language Model Zero-cost Proxy Search from Zero},\n  author={Peijie Dong and Lujun Li and Xiang Liu and Zhenheng Tang and Xuebo Liu and Qiang Wang and Xiaowen Chu},\n  year={2024},\n  url={https://arxiv.org/abs/2410.04808}\n}\n```\n\n## Thanks\nWe appreciate the contribution of https://github.com/aaronserianni/training-free-nas and https://github.com/IntelLabs/Hardware-Aware-Automated-Machine-Learning","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpprp%2Flpzero","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpprp%2Flpzero","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpprp%2Flpzero/lists"}