This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Estimate GPT-3 costs! | |
Author: Dylan | |
""" | |
import math | |
class GPT3CostsCalculator: | |
def __init__(self, | |
gpt3_model_version, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
A simple experiment manager. You can add experiments as functions with the @register decorator. Then, call the experiments you want to run | |
using the -r flag followed by the function names of the experiments or run all the experiments with the -a flag. | |
Experiment runs are stored in an .experiments/ folder created on the first time you run an experiment. Each run creates a folder inside | |
.experiments/ with the name of the function and the datetime it was run. Every experiment should accept a logging_path argument. | |
This is the path to the folder created for the specific experiment run. You can use this to store experiment specific files. | |
""" | |
import argparse | |
import datetime |