{"id":28505800,"url":"https://github.com/opencsgs/opencsg-r1","last_synced_at":"2025-07-11T22:10:35.553Z","repository":{"id":280231427,"uuid":"933553356","full_name":"OpenCSGs/opencsg-r1","owner":"OpenCSGs","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-03T02:24:29.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-04T22:38:40.677Z","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/OpenCSGs.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-02-16T08:39:40.000Z","updated_at":"2025-03-03T02:24:32.000Z","dependencies_parsed_at":"2025-03-02T06:35:28.548Z","dependency_job_id":null,"html_url":"https://github.com/OpenCSGs/opencsg-r1","commit_stats":null,"previous_names":["opencsgs/opencsg-r1"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/OpenCSGs/opencsg-r1","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenCSGs%2Fopencsg-r1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenCSGs%2Fopencsg-r1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenCSGs%2Fopencsg-r1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenCSGs%2Fopencsg-r1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpenCSGs","download_url":"https://codeload.github.com/OpenCSGs/opencsg-r1/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenCSGs%2Fopencsg-r1/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264905119,"owners_count":23681341,"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":"2025-06-08T19:30:57.624Z","updated_at":"2025-07-11T22:10:35.546Z","avatar_url":"https://github.com/OpenCSGs.png","language":"Python","readme":"# OPENCSG R1\n\n\n**Table of Contents**  \n1. [Overview](#overview)  \n2. [Installation](#installation)  \n3. [Training models](#training-models)  \n\n## Overview\n\nThe goal of this repo is to build the different dataset or methods for trainning r1-like models.The project is simple by design and mostly consists of:\n\n\n- `src`: contains the scripts to train and evaluate models on different datasets and trainning methods:\n    - `full_train_grpo.py`: trains a model with GRPO by using full-parameters training.\n    - `lora_train_grpo`: performs a simple SFT of a model on a dataset.\n- `scripts`: contains easy-to-run commands for each step in the R1 pipeline leveraging the scripts above.\n- `inference`: contains some code for model tests.\n\n\n\n## Installation\n\n\n```shell\npip install -r requirements.txt\n```\n\n\n\n## Training models\n\n\n```shell\n# full parameter trainning method with grpo\nbash scripts/full_train_grpo.sh\n\n# lora trainning method with grpo\nbash scripts/lora_train_grpo.sh\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopencsgs%2Fopencsg-r1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopencsgs%2Fopencsg-r1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopencsgs%2Fopencsg-r1/lists"}