{"id":18832924,"url":"https://github.com/declare-lab/darwin","last_synced_at":"2026-02-27T08:11:58.635Z","repository":{"id":276078734,"uuid":"921599319","full_name":"declare-lab/darwin","owner":"declare-lab","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-24T10:09:22.000Z","size":10,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-14T04:37:37.843Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/declare-lab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2025-01-24T08:55:17.000Z","updated_at":"2025-04-08T06:18:11.000Z","dependencies_parsed_at":"2025-02-06T07:32:28.132Z","dependency_job_id":null,"html_url":"https://github.com/declare-lab/darwin","commit_stats":null,"previous_names":["declare-lab/darwin"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/declare-lab/darwin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/declare-lab%2Fdarwin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/declare-lab%2Fdarwin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/declare-lab%2Fdarwin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/declare-lab%2Fdarwin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/declare-lab","download_url":"https://codeload.github.com/declare-lab/darwin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/declare-lab%2Fdarwin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29888151,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T07:54:54.515Z","status":"ssl_error","status_checked_at":"2026-02-27T07:54:49.177Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-11-08T01:59:33.124Z","updated_at":"2026-02-27T08:11:58.593Z","avatar_url":"https://github.com/declare-lab.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Inference Time Alignment with Reward-Guided Tree Search\n\nDARWIN is a inference-time alignment technique that uses a reward-guided tree search framework to align the LLM and achieve comparable performance to preference optimization on AlpacaEval and MT Bench.\n\nPaper Link: https://arxiv.org/abs/2406.15193\n\n# How to use?\n\nTo run darwin, check out the demo notebook. You can run darwin with just a few lines of code!\n\nTo run evaluation on alpaca eval benchmark, you can use the following command\n\n```\npython3 alpaca_generate.py --method='darwin'  --model_name='meta-llama/Meta-Llama-3-8B-Instruct'  --replacement_period=40 --iteration=3 --n_mutation=1\n```\n\nThe results will be saved in a json file where the 'past_outputs' contains a list of outputs for original output and mutation cycle 1, 2, 3. Please format the output into the alpaca_eval format from https://github.com/tatsu-lab/alpaca_eval\n\n# Citation\n\nIf you use Darwin in your publication, please cite it by using the following BibTeX entry.\n\n```@misc{hung2024inferencetimealignmentrewardguided,\n      title={Inference Time Alignment with Reward-Guided Tree Search},\n      author={Chia-Yu Hung and Navonil Majumder and Ambuj Mehrish and Soujanya Poria},\n      year={2024},\n      eprint={2406.15193},\n      archivePrefix={arXiv},\n      primaryClass={cs.CL},\n      url={https://arxiv.org/abs/2406.15193},\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeclare-lab%2Fdarwin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeclare-lab%2Fdarwin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeclare-lab%2Fdarwin/lists"}