Skip to content

Instantly share code, notes, and snippets.

View juhchamp's full-sized avatar
😺
Keep coding.

Juh Champ juhchamp

😺
Keep coding.
View GitHub Profile
@dylan-slack
dylan-slack / gpt3-estimate-costs.py
Created May 30, 2021 00:31
Compute the cost of running GPT3 on a set of prompts. Store all the costs incurred so far.
"""
Estimate GPT-3 costs!
Author: Dylan
"""
import math
class GPT3CostsCalculator:
def __init__(self,
gpt3_model_version,