{"id":19054689,"url":"https://github.com/ssbuild/t5_rlhf","last_synced_at":"2026-05-15T17:41:20.925Z","repository":{"id":164313137,"uuid":"639662923","full_name":"ssbuild/t5_rlhf","owner":"ssbuild","description":"chatyuan_rlhf_training","archived":false,"fork":false,"pushed_at":"2023-09-19T09:51:07.000Z","size":160,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-11T17:30:48.959Z","etag":null,"topics":["adalora","lora","ppo","qlora","reward","rlhf","t5"],"latest_commit_sha":null,"homepage":"","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/ssbuild.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":"2023-05-12T00:26:53.000Z","updated_at":"2024-03-28T02:10:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"21c7f2c6-ed6f-41fc-b30e-d1d2e5244c9d","html_url":"https://github.com/ssbuild/t5_rlhf","commit_stats":null,"previous_names":["ssbuild/t5_rlhf"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ssbuild/t5_rlhf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssbuild%2Ft5_rlhf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssbuild%2Ft5_rlhf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssbuild%2Ft5_rlhf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssbuild%2Ft5_rlhf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ssbuild","download_url":"https://codeload.github.com/ssbuild/t5_rlhf/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssbuild%2Ft5_rlhf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33073448,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["adalora","lora","ppo","qlora","reward","rlhf","t5"],"created_at":"2024-11-08T23:39:22.030Z","updated_at":"2026-05-15T17:41:20.910Z","avatar_url":"https://github.com/ssbuild.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## update information\r\n- [deep_training](https://github.com/ssbuild/deep_training)\r\n\r\n```text\r\n    06-13 support resize_token_embeddings\r\n    06-01 support deepspeed training for lora adalora prompt,0.1.9 和 0.1.10合并\r\n    05-27 add qlora transformers\u003e=4.30\r\n```\r\n## install\r\n    python \u003e= 3.10\r\n- pip install -U -r requirements.txt\r\n- 如果无法安装， 可以切换官方源 pip install -i https://pypi.org/simple -U -r requirements.txt\r\n\r\n\r\n    \r\n\r\n\r\n## 预训练模型下载\r\n    \r\n- [ChatYuan-large-v1](https://huggingface.co/ClueAI/ChatYuan-large-v1)\r\n- [ChatYuan-large-v2](https://huggingface.co/ClueAI/ChatYuan-large-v2)\r\n\r\n\r\n## 数据示例\r\n\r\n```json\r\n{\r\n\t\"prompt\": \"\\n\\nHuman:你能描述如何清除笔记本计算机屏幕上的指纹和污垢的步骤吗?\\n\\nAssistant:是的,也许。为了清洁你的屏幕,你首先需要使用微纤维布或软溼布,轻轻地擦拭屏幕表面。接下来,你会想抓住一个软,无毛巾,微纤维清洁布,轻轻地擦回屏幕上去除指纹和污垢。\\n\\nHuman:我可以将伊索普罗素酒精喷射到布上,并以这种方式清洗它吗?\\n\\nAssistant:\",\r\n\t\"response\": \" 是的,你可以这样做,以帮助布从屏幕上收集更多的污垢。 请确保始终使用干净的软布,而不是一块粗糙的、粗糙的或结构化的材料,并确保它是无毛布的。\",\r\n\t\"chosen\": \" 是的,你可以这样做,以帮助布从屏幕上收集更多的污垢。 请确保始终使用干净的软布,而不是一块粗糙的、粗糙的或结构化的材料,并确保它是无毛布的。\",\r\n\t\"rejected\": \" 是的,你可以直接将它喷射到布上。\"\r\n}\r\n```\r\n\r\n## 训练参数\r\n[训练参数](args.MD)\r\n\r\n\r\n## infer\r\n    # infer_finetuning.py 推理微调模型\r\n    # infer_lora_finetuning.py 推理微调模型\r\n     python infer_finetuning.py\r\n\r\n\r\n\r\n## training\r\n```text\r\n    #制作数据\r\n    python data_utils.py\r\n    注: num_process_worker 为多进程制作数据 ， 如果数据量较大 ， 适当调大至cpu数量\r\n    dataHelper.make_dataset_with_args(data_args.train_file,mixed_data=False, shuffle=True,mode='train',num_process_worker=0)\r\n    \r\n    #训练\r\n    python train.py\r\n```\r\n\r\n## 训练参数\r\n[训练参数](args.MD)\r\n\r\n## 友情链接\r\n\r\n- [pytorch-task-example](https://github.com/ssbuild/pytorch-task-example)\r\n- [tf-task-example](https://github.com/ssbuild/tf-task-example)\r\n- [chatmoss_finetuning](https://github.com/ssbuild/chatmoss_finetuning)\r\n- [chatglm_finetuning](https://github.com/ssbuild/chatglm_finetuning)\r\n- [chatyuan_finetuning](https://github.com/ssbuild/chatyuan_finetuning)\r\n- [llm_finetuning](https://github.com/ssbuild/llm_finetuning)\r\n- [rlhf_llm](https://github.com/ssbuild/rlhf_llm)\r\n- [rlhf_chatglm](https://github.com/ssbuild/rlhf_chatglm)\r\n- [rlhf_chatyuan](https://github.com/ssbuild/rlhf_chatyuan)\r\n- [rwkv_finetuning](https://github.com/ssbuild/rwkv_finetuning)\r\n\r\n## \r\n    纯粹而干净的代码","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fssbuild%2Ft5_rlhf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fssbuild%2Ft5_rlhf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fssbuild%2Ft5_rlhf/lists"}