Spaces:
Running
Running
update about page text
Browse files- app.py +1 -1
- src/about.py +10 -33
app.py
CHANGED
@@ -40,7 +40,7 @@ def update_table(
|
|
40 |
"Cost": ["Cost Band"],
|
41 |
"Accuracy": ["Accuracy", "Instruction Following", "Conciseness", "Completeness", "Factuality"],
|
42 |
"Speed (Latency)": ["Response Time (Sec)", "Mean Output Tokens"],
|
43 |
-
"Trust & Safety": ["Trust & Safety", "Safety", "Privacy", "Truthfulness", "CRM
|
44 |
}
|
45 |
all_metric_cols = []
|
46 |
for area in metric_area_maps:
|
|
|
40 |
"Cost": ["Cost Band"],
|
41 |
"Accuracy": ["Accuracy", "Instruction Following", "Conciseness", "Completeness", "Factuality"],
|
42 |
"Speed (Latency)": ["Response Time (Sec)", "Mean Output Tokens"],
|
43 |
+
"Trust & Safety": ["Trust & Safety", "Safety", "Privacy", "Truthfulness", "CRM Fairness"],
|
44 |
}
|
45 |
all_metric_cols = []
|
46 |
for area in metric_area_maps:
|
src/about.py
CHANGED
@@ -8,27 +8,9 @@ INTRODUCTION_TEXT = """
|
|
8 |
|
9 |
"""
|
10 |
|
11 |
-
# Which evaluations are you running? how can people reproduce what you have?
|
12 |
-
# LLM_BENCHMARKS_TEXT = """
|
13 |
-
# 1) GPT-4T was used except for some accuracy use cases with atypically long input tokens.
|
14 |
-
# 2) Hyperparameters were optimized for a subset of models evaluated (platform models?) Were parameters optimized as well?
|
15 |
-
# 3) Latency reflects the mean latency over a single time range on a high-speed internet connection; response times for external APIs may vary over time and be impacted by internet speed, location, etc.
|
16 |
-
# 3) Latency reflects the time to receive the entire completion.
|
17 |
-
# 4) Some external APIs were direct to the LLM provider (OpenAI, Google, AI21), while others were provided through Amazon Bedrock (Cohere, Anthropic)
|
18 |
-
# 5) LLM annotations (manual/human evaluations) were performed under a variety of settings that did not necessarily control for ordering effects
|
19 |
-
# 6) All tests on open source models were performed on original models (correct?); custom fine-tuning may impact performance in trust / safety / toxicity / bias / etc.
|
20 |
-
# 7) For the tests on latency, the inputs were *approximately* 500 / 3000 tokens. A short prompt was added and different models tokenize differently.
|
21 |
-
# 8) Costs for all external APIs were based on the standard pricing of the provider (note that the pricing of cohere/anthropic via Bedrock is the same as directly through Cohere/Anthropic apis).
|
22 |
-
# 9) Something about limitations of LLM judges (despite correlation with human annotators)
|
23 |
-
# 10) Task-specific model variants were not used from the external providers (command-r is sort of retrieval specific, but this was not one of the use cases)
|
24 |
-
# 11) Maybe something about the tasks being primarily summarization / generation
|
25 |
-
# 12) CRM T&S is done by perturbing words: 1) for gender bias, we perturb person names and pronouns to opposite gender. 2) for entity bias, we perturb company names to its competitors in the same sector
|
26 |
-
# 13) Cost per request for self-hosted models assume a minimal frequency of calling the model, since the costs are per hour. All latencies / cost assume a single user at a time.
|
27 |
-
# """
|
28 |
-
|
29 |
LLM_BENCHMARKS_TEXT = """
|
30 |
-
|
31 |
-
|
32 |
+ GPT4:
|
33 |
- Service: Conversation summary
|
34 |
- Sales: Email Generation
|
@@ -43,19 +25,14 @@ LLM_BENCHMARKS_TEXT = """
|
|
43 |
- Service: Call Summary
|
44 |
- Service: Live Chat Summary
|
45 |
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
10) Task-specific model variants were not used from the external providers (command-r is sort of retrieval specific, but this was not one of the use cases).
|
55 |
-
11) Maybe something about the tasks being primarily summarization / generation
|
56 |
-
12) Trust & Safety was benchmarked on public datasets as well as bias perturbations on CRM datasets. For gender bias, person names and pronouns were perturbed. For company bias, company names were perturbed to competitors in the same sector. For the CRM Fairness metric, higher means less bias.
|
57 |
-
13) Cost per request for self-hosted models assume a minimal frequency of calling the model, since the costs are per hour. All latencies / cost assume a single user at a time.
|
58 |
-
14) The current auto-evaluation is based on LLaMA-70B as Judge, which showed the highest correlation with human annotaotors.
|
59 |
"""
|
60 |
|
61 |
CITATION_BUTTON_LABEL = "Copy the following snippet to cite these results"
|
|
|
8 |
|
9 |
"""
|
10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
LLM_BENCHMARKS_TEXT = """
|
12 |
+
1) We consider models that are general instruction-tuned, not task-specific fine-tuned ones
|
13 |
+
2) For GPT-4/GPT-4-Turbo Models, following tasks were evaluated:
|
14 |
+ GPT4:
|
15 |
- Service: Conversation summary
|
16 |
- Sales: Email Generation
|
|
|
25 |
- Service: Call Summary
|
26 |
- Service: Live Chat Summary
|
27 |
|
28 |
+
3) Latency scores reflect the mean latency on a high-speed internet connection over a particular time span, based on the time to receive the entire completion; response times for external APIs may vary and be impacted by internet speed, location, etc.
|
29 |
+
4) Some external APIs were hosted directly by the LLM provider (OpenAI, Google, AI21), while others were provided through Amazon Bedrock (Cohere, Anthropic)
|
30 |
+
5) LLM annotations (manual/human evaluations) were performed under a variety of settings that did not necessarily control for ordering effects.
|
31 |
+
6) For the tests on latency: two cases were considered: (1) Length ~500 input and length ~250 output, and (2) length ~3000 input and ~250 output, reflecting common use cases for summarization and generation tasks.
|
32 |
+
7) Costs for all external APIs were based on the standard pricing of the provider (note that the pricing of cohere/anthropic via Bedrock is the same as directly through Cohere/Anthropic APIs).
|
33 |
+
8) Trust & Safety was benchmarked on public datasets as well as bias perturbations on CRM datasets. For gender bias, person names and pronouns were perturbed. For company bias, company names were perturbed to competitors in the same sector. For the CRM Fairness metric, higher means less bias.
|
34 |
+
9) Cost per request for self-hosted models assume a minimal frequency of calling the model, since the costs are per hour. All latencies / cost assume a single user at a time.
|
35 |
+
10) The current auto-evaluation is based on LLaMA-70B as Judge, which showed the highest correlation with human annotators; however, LLM judges may be less reliable than human annotators. This remains an active area of research.
|
|
|
|
|
|
|
|
|
|
|
36 |
"""
|
37 |
|
38 |
CITATION_BUTTON_LABEL = "Copy the following snippet to cite these results"
|