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: implementing STaR: Self Taught Reasoner #1478

Open
wants to merge 35 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
8bf5a02
implementing STaR: Self Taught Reasoner
GitHoobar Jan 21, 2025
245d023
minor fixes
GitHoobar Jan 23, 2025
fa8406f
minor fixes
GitHoobar Jan 24, 2025
a1875e1
Merge branch 'master' into feat/star-datagen
Wendong-Fan Jan 26, 2025
4985ec4
Merge branch 'master' into feat/star-datagen
Wendong-Fan Jan 30, 2025
44bea0d
enhance: STaR Integration (#1514)
Wendong-Fan Jan 30, 2025
1a5bd8e
minor fixes
GitHoobar Jan 30, 2025
a78d517
bug fix
GitHoobar Jan 30, 2025
f46e3c6
fix
GitHoobar Jan 30, 2025
7169cea
update
Wendong-Fan Jan 30, 2025
0634891
update with example math 500 data
Wendong-Fan Jan 30, 2025
047d4ab
add aime24
Wendong-Fan Jan 30, 2025
88b8bfc
update
Wendong-Fan Jan 30, 2025
6fbc4b8
update aime24 and amc23
Wendong-Fan Jan 30, 2025
a9fffe1
add gaokao2023 and gsm8k
Wendong-Fan Jan 30, 2025
f47118a
update
Wendong-Fan Jan 30, 2025
b24f710
add dynamic writing to the generated data file
Wendong-Fan Jan 30, 2025
9dd9d23
pre commit and test fix
Wendong-Fan Jan 30, 2025
e9fe5f8
uddate data gen example
Wendong-Fan Jan 30, 2025
ac7d62f
update data set
Wendong-Fan Jan 31, 2025
b46b4b9
add amc aime data
Wendong-Fan Jan 31, 2025
8d20395
bug: fixed broken json issue by adding a lock
AveryYay Jan 31, 2025
220c3db
pre-commit fix
Jan 31, 2025
c4382e5
update pipleline and ouput
Wendong-Fan Jan 31, 2025
c5b11a2
update example
Wendong-Fan Jan 31, 2025
c151e1c
update
Wendong-Fan Jan 31, 2025
17bfab0
update pipeline
WHALEEYE Jan 31, 2025
4f4e473
part3 output
AveryYay Jan 31, 2025
de9fd43
Merge remote-tracking branch 'origin/feat/star-datagen' into feat/sta…
AveryYay Jan 31, 2025
4210cb0
update
Wendong-Fan Feb 2, 2025
e358955
update
Wendong-Fan Feb 4, 2025
b14ce0c
update dateset downloading
Wendong-Fan Feb 4, 2025
21067bf
update pre commit and pytest
Wendong-Fan Feb 4, 2025
5ae99fb
PR clean
Wendong-Fan Feb 4, 2025
f028e39
update
Wendong-Fan Feb 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions camel/agents/chat_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,9 +573,8 @@ def step(
self.model_backend.model_config_dict.get("response_format")
and response_format
):
raise ValueError(
"The `response_format` parameter cannot be set both in "
"the model configuration and in the ChatAgent step."
logger.warning(
f"Overriding the response format with {response_format}."
)

self.original_model_dict = self.model_backend.model_config_dict
Expand Down
2 changes: 2 additions & 0 deletions camel/datagen/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@

from .cotdatagen import CoTDataGenerator
from .self_instruct import SelfInstructPipeline
from .star import SelfImprovingCoTPipeline

__all__ = [
"CoTDataGenerator",
"SelfInstructPipeline",
"SelfImprovingCoTPipeline",
]
17 changes: 17 additions & 0 deletions camel/datagen/star/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========

from .star_pipeline import SelfImprovingCoTPipeline

__all__ = ['SelfImprovingCoTPipeline']
Loading
Loading