{"id":13437521,"url":"https://github.com/amazon-science/auto-cot","last_synced_at":"2025-05-15T16:09:04.294Z","repository":{"id":61070902,"uuid":"545918043","full_name":"amazon-science/auto-cot","owner":"amazon-science","description":"Official implementation for \"Automatic Chain of Thought Prompting in Large Language Models\" (stay tuned \u0026 more will be updated)","archived":false,"fork":false,"pushed_at":"2024-03-13T12:25:02.000Z","size":58,"stargazers_count":1784,"open_issues_count":10,"forks_count":162,"subscribers_count":18,"default_branch":"main","last_synced_at":"2025-03-31T21:45:00.949Z","etag":null,"topics":["chain-of-thought","gpt-3","gpt3-prompts","gpt3-resources","large-language-models","prompt-engineering","reasoning"],"latest_commit_sha":null,"homepage":"https://arxiv.org/abs/2210.03493","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amazon-science.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2022-10-05T07:47:17.000Z","updated_at":"2025-03-31T16:01:24.000Z","dependencies_parsed_at":"2024-10-27T20:20:33.121Z","dependency_job_id":"69d53dfc-a3a6-443c-a2a4-3493252c6bca","html_url":"https://github.com/amazon-science/auto-cot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amazon-science%2Fauto-cot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amazon-science%2Fauto-cot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amazon-science%2Fauto-cot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amazon-science%2Fauto-cot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amazon-science","download_url":"https://codeload.github.com/amazon-science/auto-cot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247737770,"owners_count":20987718,"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","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":["chain-of-thought","gpt-3","gpt3-prompts","gpt3-resources","large-language-models","prompt-engineering","reasoning"],"created_at":"2024-07-31T03:00:57.940Z","updated_at":"2025-04-07T22:06:09.391Z","avatar_url":"https://github.com/amazon-science.png","language":"Jupyter Notebook","funding_links":[],"categories":["Statistics","A01_文本生成_文本对话","Jupyter Notebook"],"sub_categories":["大语言对话模型及数据"],"readme":"# Auto-CoT: Automatic Chain of Thought Prompting in Large Language Models (ICLR 2023)\n\n[![Open Auto-CoT in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/amazon-science/auto-cot/blob/main/try_cot_colab.ipynb)\n\nCheer AI up with the \"let's think step by step\" prompt? More plz. *Let’s think not just step by step, but also one by one.*\n\nAuto-CoT uses more cheers \u0026 diversity to SAVE huge manual efforts in chain of thought prompt design, matching or even exceeding performance of manual design on GPT-3.\n\nCheck out our [25-page paper](https://arxiv.org/pdf/2210.03493.pdf) for more information.\n\n![](https://user-images.githubusercontent.com/22279212/194787183-a1f8dff8-a0ad-43a1-827f-819671503860.png)\n\n![](https://user-images.githubusercontent.com/22279212/194787130-d28c9191-588c-41d2-a259-62377f19c934.png)\n\n\n## Requirements\n\nPython\u003e=3.8\n```\npip install torch==1.8.2+cu111 torchtext==0.9.2 -f https://download.pytorch.org/whl/lts/1.8/torch_lts.html\npip install -r requirements.txt\n```\n\n## Datasets\n\nDownload the datasets from the following:\n\n```\nhttps://github.com/kojima-takeshi188/zero_shot_cot/tree/main/dataset\nhttps://github.com/kojima-takeshi188/zero_shot_cot/tree/main/log\n```\n\n## Quick Start\n\nSee ```try_cot.ipynb```\n\n## Instructions\n\nConstruct Demos:\n\n```\npython run_demo.py \\\n--task multiarith \\\n--pred_file log/multiarith_zero_shot_cot.log \\\n--demo_save_dir demos/multiarith\n```\n\nRun inference:\n\n```\npython run_inference.py \\\n--dataset multiarith \\\n--demo_path demos/multiarith \\\n--output_dir experiment/multiarith\n```\n\n## Citing Auto-CoT\n```\n@inproceedings{zhang2023automatic,\n  title={Automatic Chain of Thought Prompting in Large Language Models},\n  author={Zhang, Zhuosheng and Zhang, Aston and Li, Mu and Smola, Alex},\n  booktitle={The Eleventh International Conference on Learning Representations (ICLR 2023)},\n  year={2023}\n}\n```\n\n## Security\n\nSee [CONTRIBUTING](CONTRIBUTING.md#security-issue-notifications) for more information.\n\n## License\n\nThis project is licensed under the Apache-2.0 License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famazon-science%2Fauto-cot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famazon-science%2Fauto-cot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famazon-science%2Fauto-cot/lists"}