{"id":15700740,"url":"https://github.com/hunkim/o","last_synced_at":"2025-05-07T01:47:14.371Z","repository":{"id":257168269,"uuid":"857501628","full_name":"hunkim/o","owner":"hunkim","description":"Toy O","archived":false,"fork":false,"pushed_at":"2024-09-21T08:27:13.000Z","size":35,"stargazers_count":16,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-31T05:04:43.870Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hunkim.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":"2024-09-14T20:18:41.000Z","updated_at":"2025-03-29T15:27:47.000Z","dependencies_parsed_at":"2024-10-24T05:25:14.783Z","dependency_job_id":"22b31bb9-68d6-41af-8756-7e7ff641efa8","html_url":"https://github.com/hunkim/o","commit_stats":null,"previous_names":["hunkim/o"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hunkim%2Fo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hunkim%2Fo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hunkim%2Fo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hunkim%2Fo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hunkim","download_url":"https://codeload.github.com/hunkim/o/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252798776,"owners_count":21805880,"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":[],"created_at":"2024-10-03T19:53:14.755Z","updated_at":"2025-05-07T01:47:14.345Z","avatar_url":"https://github.com/hunkim.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# o: Step-by-Step Reasoning Demos\n\nThis repository contains toy demos for step-by-step reasoning, inspired by:\n- STaR paper https://arxiv.org/abs/2203.14465\n- OpenAI's o1\n- Reflection techniques\n- SkunkworksAI/reasoning-0.01 dataset\n- Implementation from [bklieger-groq/g1](https://github.com/bklieger-groq/g1)\n- And many more\n\n## Quick Demo\n- toy-o1: https://toy-o1.streamlit.app/\n- toy-o2: https://toy-o2.streamlit.app/\n\n\u003cimg width=\"1319\" alt=\"image\" src=\"https://github.com/user-attachments/assets/50f01e84-c0b5-454b-b0da-f807955c9119\"\u003e\n\n## Overview\n\nWe present two approaches:\n1. **o1**: Fixed reasoning based on the SkunkworksAI/reasoning-0.01 dataset. You can also leverage web search.\n2. **o2**: Relies on the LLM's basic planning skills (code mostly reused from bklieger-groq/g1).\n\nBoth approaches have their pros and cons, providing interesting comparisons.\n\nWe use [Solar-Pro Preview](https://huggingface.co/upstage/solar-pro-preview-instruct) as the base LLM, but you can try others using Langchain.\n## Running Locally\n1. Clone this repository\n2. Add 'UPSTAGE_API_KEY' to your environment variables (use .streamlit config or .env)\n3. Run `make o1` or `make o2`\n\n## Changing Base LLMs\nReplace the following code with your preferred LLM:\n\n```python\nlangchain_upstage import ChatUpstage as Chat\nllm = Chat(model=\"solar-pro\")\n```\n\n## Limitations\nSolar-Pro is only 22B size mode with 4K context windows. https://huggingface.co/upstage/solar-pro-preview-instruct\n\n## Contributions\ncomments, pull request are always welcome\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhunkim%2Fo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhunkim%2Fo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhunkim%2Fo/lists"}