jadehardouin
commited on
Commit
•
406259e
1
Parent(s):
2a3c4ea
Update models.py
Browse files
models.py
CHANGED
@@ -168,7 +168,7 @@ class OpenSourceLlama2Model(BaseTCOModel):
|
|
168 |
visible=False)
|
169 |
|
170 |
def compute_cost_per_token(self, vm_cost_per_hour, tokens_per_second, maxed_out, used):
|
171 |
-
cost_per_token = vm_cost_per_hour / (tokens_per_second * 3600 * maxed_out * used)
|
172 |
return cost_per_token
|
173 |
|
174 |
class OpenSourceDIY(BaseTCOModel):
|
@@ -211,7 +211,7 @@ class OpenSourceDIY(BaseTCOModel):
|
|
211 |
visible=False)
|
212 |
|
213 |
def compute_cost_per_token(self, vm_cost_per_hour, tokens_per_second, maxed_out, used):
|
214 |
-
cost_per_token = vm_cost_per_hour / (tokens_per_second * 3600 * maxed_out * used)
|
215 |
return cost_per_token
|
216 |
|
217 |
class CohereModel(BaseTCOModel):
|
|
|
168 |
visible=False)
|
169 |
|
170 |
def compute_cost_per_token(self, vm_cost_per_hour, tokens_per_second, maxed_out, used):
|
171 |
+
cost_per_token = vm_cost_per_hour * 10000 / (tokens_per_second * 3600 * maxed_out * used)
|
172 |
return cost_per_token
|
173 |
|
174 |
class OpenSourceDIY(BaseTCOModel):
|
|
|
211 |
visible=False)
|
212 |
|
213 |
def compute_cost_per_token(self, vm_cost_per_hour, tokens_per_second, maxed_out, used):
|
214 |
+
cost_per_token = vm_cost_per_hour * 10000 / (tokens_per_second * 3600 * maxed_out * used)
|
215 |
return cost_per_token
|
216 |
|
217 |
class CohereModel(BaseTCOModel):
|