Update README.md
Browse files
README.md
CHANGED
@@ -21,18 +21,10 @@ description: >-
|
|
21 |
|
22 |
## How to Use
|
23 |
|
24 |
-
import evaluate
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
results = metric._compute(
|
29 |
-
model="d-matrix/gpt2",
|
30 |
-
revision = "distilgpt2",
|
31 |
-
tasks="wikitext",
|
32 |
-
dmx_config = "BASIC"
|
33 |
-
)
|
34 |
-
|
35 |
-
print(results)
|
36 |
|
37 |
### Inputs
|
38 |
- **model** (`str`): The name or path of the model to evaluate.
|
|
|
21 |
|
22 |
## How to Use
|
23 |
|
24 |
+
>>>import evaluate
|
25 |
+
>>>metric = evaluate.load("d-matrix/dmxMetric", module_type="metric")
|
26 |
+
>>>results = metric._compute(model="d-matrix/gpt2",revision = "distilgpt2",tasks="wikitext",dmx_config = "BASIC" )
|
27 |
+
>>>print(results)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
|
29 |
### Inputs
|
30 |
- **model** (`str`): The name or path of the model to evaluate.
|