|
4 | 4 | """Implements a Hugging Causal LM wrapped inside a :class:`.ComposerModel`."""
|
5 | 5 |
|
6 | 6 | from typing import Mapping, Union
|
7 |
| - |
8 |
| -from composer.metrics.nlp import ( |
| 7 | +from llmfoundry.eval.metrics.nlp import ( |
9 | 8 | InContextLearningLMAccuracy,
|
10 | 9 | InContextLearningLMExpectedCalibrationError,
|
11 | 10 | InContextLearningMCExpectedCalibrationError,
|
12 | 11 | InContextLearningMultipleChoiceAccuracy,
|
13 |
| - InContextLearningQAAccuracy, |
14 |
| - InContextLearningCodeEvalAccuracy, |
| 12 | + InContextLearningGenerationExactMatchAccuracy, |
| 13 | +) |
| 14 | +from composer.metrics.nlp import ( |
15 | 15 | LanguageCrossEntropy,
|
16 | 16 | LanguagePerplexity,
|
17 | 17 | )
|
|
33 | 33 | LanguagePerplexity(),
|
34 | 34 | InContextLearningLMAccuracy(),
|
35 | 35 | InContextLearningMultipleChoiceAccuracy(),
|
36 |
| - InContextLearningQAAccuracy(), |
| 36 | + InContextLearningGenerationExactMatchAccuracy(), |
37 | 37 | InContextLearningLMExpectedCalibrationError(),
|
38 | 38 | InContextLearningMCExpectedCalibrationError(),
|
39 |
| - InContextLearningCodeEvalAccuracy(), |
40 | 39 | ]
|
41 | 40 |
|
42 | 41 |
|
|
0 commit comments