Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat]COT Reasoning 학습 및 추론 기능 추가 #63

Merged
merged 13 commits into from
Nov 28, 2024

Conversation

jagaldol
Copy link
Contributor

📝 Summary

Chain Of Thought 방식으로 학습이 가능하며, 랭체인을 통해 COT 방식으로 추론 또한 가능하도록 하였습니다.

✅ Checklist

  • 관련 이슈가 명시되어 있습니다.
  • 테스트가 완료되었습니다.
  • [ ] 문서 업데이트가 포함되었습니다.
  • 코드 리뷰를 위한 사전 검토를 완료했습니다.

📄 Description

  • without_system_rule을 Deprecated 시켰습니다.
    • 더이상 system role은 존재하지 않으며, userassistant만 존재합니다.
  • 기존에 존재하던 system message는 base의 user prompt 상단으로 이동하였습니다.
  • system role이 없어짐에 따라 data loader 클래스들을 간소화 시켰습니다.
  • COT에 학습에 필요한 data loader 클래스를 추가 생성하였습니다.
  • langchain으로 추론할 수 있는 inference_langchain.py를 생성하였습니다.
  • reasoning 생성을 하는 노트북을 추가하였습니다.

💡 Notice (Optional)

코드 정리를 하며 System Prompt를 일괄 삭제하였습니다. User의 Prompt안에 지시사항을 전부 넣게 통일하였습니다.

🔗 Related Issue(s)

close #46

@jagaldol jagaldol self-assigned this Nov 27, 2024
@eyeol eyeol added Priority: Medium 적절한 시기에 처리해야 할 작업 Type: Enhancement 기능 개선 작업 labels Nov 27, 2024
Copy link
Contributor

@eyeol eyeol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

시간이 촉박해서 대략적으로 확인했습니다. 고생하셨습니다!

@jagaldol jagaldol merged commit 486210b into main Nov 28, 2024
3 checks passed
@jagaldol jagaldol deleted the feature/46-cot-reasoning branch November 28, 2024 01:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Medium 적절한 시기에 처리해야 할 작업 Type: Enhancement 기능 개선 작업
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT] COT Reasoning 을 통한 최종 정답 도출
3 participants