Skip to content

Commit

Permalink
chore: reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
honghanhh committed Oct 25, 2024
1 parent 069325a commit 1dd3c71
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 19 deletions.
4 changes: 0 additions & 4 deletions lib/questions_eval/bash/experiments/super_tiny.sh

This file was deleted.

3 changes: 3 additions & 0 deletions lib/questions_eval/bash/experiments/tiny_mimoracle.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
python run_mimoracle.py -m model=gpt-4o samples=18 num_questions=5
# python run_mimoracle.py -m model=gpt-4o-mini samples=18 num_questions=5
# python run_mimoracle.py -m model=llama3.1-405b-local samples=18 num_questions=5
8 changes: 0 additions & 8 deletions lib/questions_eval/notebooks/test_mimorable.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -365,14 +365,6 @@
"source": [
"sample_df.to_csv('mimoracle_sample.csv', index=False)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "a5675a76-ed7b-444e-a1e0-5b0c790969ba",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
12 changes: 5 additions & 7 deletions lib/questions_eval/run_mimoracle.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
import itertools
import pdb

import hydra
import pandas as pd
import wandb
import itertools
import pandas as pd
from pandas import json_normalize
from tqdm import tqdm
from dotenv import load_dotenv
from langchain.output_parsers import OutputFixingParser
from langchain.schema import StrOutputParser
from langchain_core.output_parsers import JsonOutputParser
from langchain_core.prompts import ChatPromptTemplate
from omegaconf import DictConfig, OmegaConf
from pandas import json_normalize
from tqdm import tqdm

load_dotenv()

Expand Down Expand Up @@ -275,7 +273,7 @@ def main(cfg: DictConfig):
}
for key, value in log_dict.items():
wandb.run.summary[key] = value
wandb.log({"dataset/evaluation_mimoracle": wandb.Table(dataframe=df_joined)})
wandb.log({"dataset/evaluation_mimoracle_gpt4o": wandb.Table(dataframe=df_joined)})
wandb.finish()


Expand Down

0 comments on commit 1dd3c71

Please sign in to comment.