{"id":28208002,"url":"https://github.com/haven-jeon/kogpt2-chatbot","last_synced_at":"2025-06-12T05:31:23.461Z","repository":{"id":39650661,"uuid":"273925298","full_name":"haven-jeon/KoGPT2-chatbot","owner":"haven-jeon","description":"Simple Chit-Chat based on KoGPT2 ","archived":false,"fork":false,"pushed_at":"2023-06-12T21:51:43.000Z","size":110,"stargazers_count":181,"open_issues_count":5,"forks_count":59,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-05-17T14:11:30.718Z","etag":null,"topics":["chatbot","korean-nlp"],"latest_commit_sha":null,"homepage":"","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/haven-jeon.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}},"created_at":"2020-06-21T14:53:59.000Z","updated_at":"2025-04-29T08:15:01.000Z","dependencies_parsed_at":"2023-02-09T22:31:13.600Z","dependency_job_id":"12c2928f-54a3-4bfe-9f6f-bd0b5125b746","html_url":"https://github.com/haven-jeon/KoGPT2-chatbot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/haven-jeon/KoGPT2-chatbot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haven-jeon%2FKoGPT2-chatbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haven-jeon%2FKoGPT2-chatbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haven-jeon%2FKoGPT2-chatbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haven-jeon%2FKoGPT2-chatbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/haven-jeon","download_url":"https://codeload.github.com/haven-jeon/KoGPT2-chatbot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haven-jeon%2FKoGPT2-chatbot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259404288,"owners_count":22852155,"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":["chatbot","korean-nlp"],"created_at":"2025-05-17T14:11:30.574Z","updated_at":"2025-06-12T05:31:23.456Z","avatar_url":"https://github.com/haven-jeon.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Chit-Chat based on KoGPT2\n\n## Purpose\n\n- [공개된 한글 챗봇 데이터](https://github.com/songys/Chatbot_data)와 pre-trained [KoGPT2](https://github.com/SKT-AI/KoGPT2)를 이용한 간단한 챗봇 실험\n- `KoGPT2`의 다양한 활용 가능성을 타진하고 성능을 정성적으로 평가한다.\n\n## Architecture\n\n학습 데이터에 적합하게 [Hello! GPT-2](https://arxiv.org/abs/1907.05774)를 응용, 아래와 같은 아키텍처를 설계함\n\n\u003cimg src=\"imgs/simsimi.png\" alt=\"drawing\" style=\"width:600px;\"/\u003e\n\n\n- 데이터의 Q 필드를 `\u003cusr\u003e`발화, A 필드를 `\u003csys\u003e`발화 그리고 감정 레이블을 `\u003csent\u003e`로 매핑해 `P(\u003csys\u003e|\u003cusr\u003e, \u003csent\u003e)`를 최대화 할 수 있는 모델을 학습한다. 감정 레이블은 [이곳](https://github.com/songys/Chatbot_data)의 정의를 따른다(일상다반사 0, 이별(부정) 1, 사랑(긍정) 2).\n\n## Install\n\n\n```bash\ngit clone --recurse-submodules https://github.com/haven-jeon/KoGPT2-chatbot.git\ncd KoGPT2-chatbot\npip3 install -r requirements.txt \n```\n\n## How to Train\n\n```bash\nCUDA_VISIBLE_DEVICES=0 python train_torch.py --gpus 1 --train --max_epochs 2\n```\n\n## How to Chat!\n\n```bash\n# CUDA_VISIBLE_DEVICES=0 python train.py --chat\nCUDA_VISIBLE_DEVICES=0 python train_torch.py --gpus 1 --chat\nuser \u003e 대박 \nSimsimi \u003e 잘 될 거예요.\n\nuser \u003e 너 이름이 뭐니?\nSimsimi \u003e 저는 위로봇입니다.\n\nuser \u003e 어버이날엔 뭘 하죠?\nSimsimi \u003e 저랑 놀아요.\n\nuser \u003e 비가와\nSimsimi \u003e 우산 챙기세요.\n\nuser \u003e 눈이와\nSimsimi \u003e 눈사람 만들어보세요.\n\nuser \u003e 천둥이 쳐\nSimsimi \u003e 저도 보고 싶어요.\n\nuser \u003e 봄이왔어.\nSimsimi \u003e 봄은 항상 두근거려요.\n\nuser \u003e 배탈났어.\nSimsimi \u003e 얼른 집에 가서 쉬세요.\n\nuser \u003e 너를 만든 사람은?\nSimsimi \u003e 당신이 만든 사람이에요.\n```\n\n## Colab tutorials\n\n- PyTorch\n  - [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/haven-jeon/KoGPT2-chatbot/blob/master/KoGPT2_chatbot_pytorch.ipynb)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaven-jeon%2Fkogpt2-chatbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhaven-jeon%2Fkogpt2-chatbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaven-jeon%2Fkogpt2-chatbot/lists"}