generated from mintlify/starter
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
61 additions
and
19 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import unify | ||
unify | ||
import random | ||
random.seed(0) | ||
|
||
base_msg = "You are a helpful assistant." | ||
for tool_use in [True, False]: | ||
for sys_msg in [ | ||
base_msg, | ||
base_msg + " You can use tools.", | ||
base_msg + " You can use tools and search the web." | ||
]: | ||
for example_idx in range(10): | ||
unify.log( | ||
tool_use=tool_use, | ||
sys_msg=sys_msg, | ||
example_idx=example_idx, | ||
score=random.uniform(0, 10) | ||
) |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import unify | ||
import random | ||
random.seed(0) | ||
unify.activate("line_graph_grouped", overwrite=True) | ||
|
||
model_speeds = { | ||
"llama-3.1-8b-chat": 12, | ||
"llama-3.1-70b-chat": 7, | ||
"llama-3.1-405b-chat": 4 | ||
} | ||
provider_speeds = { | ||
"fireworks-ai": 10, | ||
"together-ai": 9, | ||
"aws-bedrock": 8 | ||
} | ||
for i in range(25): | ||
for model, model_speed in model_speeds.items(): | ||
for provider, provider_speed in provider_speeds.items(): | ||
unify.log( | ||
model=model, | ||
provider=provider, | ||
time=i, | ||
speed=( | ||
model_speed + | ||
provider_speed + | ||
random.uniform(-2, 2) | ||
) | ||
) |
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