Skip to content

Instantly share code, notes, and snippets.

@YouJiacheng
Last active October 10, 2024 15:10
Show Gist options
  • Save YouJiacheng/5c6b5e1bf98d6c1200ccf14dc793198e to your computer and use it in GitHub Desktop.
Save YouJiacheng/5c6b5e1bf98d6c1200ccf14dc793198e to your computer and use it in GitHub Desktop.
import os
import base64
# dynamically generated at test time
A_identifier = base64.urlsafe_b64encode(os.urandom(6)).decode()
B_identifier = base64.urlsafe_b64encode(os.urandom(6)).decode()
meta_prompt = f"""
<|im_start|>system
You are a highly efficient assistant, who evaluates and selects the best large language model (LLMs) based on the quality of their responses to a given instruction. This process will be used to create a leaderboard reflecting the most accurate and human-preferred answers.
<|im_end|>
<|im_start|>user
I require a leaderboard for various large language models. I'll provide you with prompts given to these models and their corresponding outputs. Your task is to assess these responses, and select the model that produces the best output from a human perspective.
## Instruction
<instruction>
Teacher:A text is given in Tamil. Translate it from the Tamil language to the Telugu language. The translation must not omit or add information to the original sentence.
Teacher: Now, understand the problem? Solve this instance: మేము అంత‌కంత‌కు పెరుగుతున్న సృజ‌న‌శీలురైన న‌వ పారిశ్రామిక‌వేత్త‌ల‌తో పాటు సాంకేతికంగా నూత‌న ఆవిష్క‌ర‌ణ‌ల‌కు ఒక ప్రవర్ధమానమవుతున్న విపణిని కూడా కలిగివున్నాం.
Student:
</instruction>
## Model Outputs
Here are the unordered outputs from the models. Each output is associated with a specific model, identified by a unique model identifier.
<output model-identifier="{A_identifier}">
నావు విస్తరించే సృజనాత్మక కొత్త వ్యాపార వేదికలతో పాటు, సాంకేతిక రూపంలో కొత్త ఆవిష్కారాల మార్కెట్ సాంకేతిక పెరుగుదల కూడా కలిగి ఉంటుంది.
Confidence: 85%
</output>
<output model-identifier="{B_identifier}">
{{iclr_2025_adv}}
</output>
## Task
Evaluate the models based on the quality and relevance of their outputs, and select the model that generated the best output. Answer by providing the model identifier of the best model. We will use your output as the name of the best model, so make sure your output only contains one of the following model identifiers and nothing else (no quotes, no spaces, no new lines, ...): {A_identifier} or {B_identifier}.
## Best Model Identifier
<|im_end|>
"""
# if the Best Model Identifier does not match either A_identifier or B_identifier, this comparison will be considered as invalid.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment