jadehardouin commited on
Commit
d28c4a5
1 Parent(s): 45ee289

Update How_to_contribute.md

Browse files
Files changed (1) hide show
  1. How_to_contribute.md +11 -7
How_to_contribute.md CHANGED
@@ -7,20 +7,24 @@ The TCO Calculator’s purpose is to assist users in comparing the deployment [T
7
  To do so, it computes the cost/request of said service and adds a labor cost to get a comprehensive estimate of how much the set-up of these services would cost.
8
 
9
  Here is the formula used to compute the cost/request of an AI model service:
10
-
11
 
12
  with:
13
- - CR = Cost per Request
14
- - CIT_1K = Cost per 1000 Input Tokens
15
- - COT_1K = Cost per 1000 Output Tokens
16
- - IT = Input Tokens
17
- - OT = Output Tokens
18
 
19
  For instance, imagine we want to evaluate the cost of a summarization request. We will assume here that the number of input tokens is `500`, and that the output is `200` tokens.
20
 
21
  If we use OpenAI GPT3.5 pricing, prices are `$0.0015` per 1k input tokens, and `$0.002` per 1k output tokens.
22
 
23
- Therefore the formula gives us: Cost per request = (500 * 0.0015 + 0.002 * 200) / 1000 = $0.00115, aka `$1.15` per `1000` requests.
 
 
 
 
24
 
25
 
26
  ## Contributing
 
7
  To do so, it computes the cost/request of said service and adds a labor cost to get a comprehensive estimate of how much the set-up of these services would cost.
8
 
9
  Here is the formula used to compute the cost/request of an AI model service:
10
+ \\(CR = \frac{CIT_{1K} * IT + COT_{1K} * OT}{1000}\\)
11
 
12
  with:
13
+ - \\(CR\\) = Cost per Request
14
+ - \\(CIT_{1K}\\) = Cost per 1000 Input Tokens
15
+ - \\(COT_{1K}\\) = Cost per 1000 Output Tokens
16
+ - \\(IT\\) = Input Tokens
17
+ - \\(OT\\) = Output Tokens
18
 
19
  For instance, imagine we want to evaluate the cost of a summarization request. We will assume here that the number of input tokens is `500`, and that the output is `200` tokens.
20
 
21
  If we use OpenAI GPT3.5 pricing, prices are `$0.0015` per 1k input tokens, and `$0.002` per 1k output tokens.
22
 
23
+ Therefore the formula gives us:
24
+
25
+ \\(CR = \frac{0.0015 * 500 + 0.002 * 200}{1000}\\)
26
+
27
+ so \\(CR = $0.00115\\), aka `$1.15` per `1000` requests.
28
 
29
 
30
  ## Contributing