Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion scripts/response_rewrite.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ def main():
variants_dataset, ["fcs", "fcs_plus1", "fcs_reflection"], llm
)

system_prompt = ModelConfig.from_model_id(args.target_model).system_prompt
system_prompt = str(ModelConfig.from_model_id(args.target_model).system_prompt)

# Generate conversation format for each variant, which can be used in SimPO/DPO/etc.
fcs_convo = make_preference_conversations(final_dataset, "fcs", system_prompt)
Expand Down
2 changes: 1 addition & 1 deletion skythought/evals/inference_and_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def generate_responses_for_dataset(
# Prepare conversations
conversations = handler.make_conversations(
remaining_data,
model_config.system_prompt,
str(model_config.system_prompt),
model_config.user_template,
model_config.assistant_prefill,
)
Expand Down
3 changes: 3 additions & 0 deletions skythought/evals/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ def validate_and_extract_string(self):
def string(self):
return self._string

def __str__(self) -> str:
return self._string


def read_yaml(path: str):
with open(path, "r") as f:
Expand Down