-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
generation_until
in LM classes. (#78)
* Fix `generation_until` in LM classes. The requester now consider tokenizer eos. The evaluator handle the `generation_until` call. `gsm8k` changed metric from `acc` to `exact_match` in confings. * fix eos token id + fix gen_kwargs in `generate+_until` + desactivate tqdm in LMs
- Loading branch information
1 parent
31d5687
commit c7328de
Showing
4 changed files
with
61 additions
and
70 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
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
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 |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
"num_fewshot":5 | ||
}, | ||
"gsm8k": { | ||
"metric": "acc", | ||
"metric": "exact_match", | ||
"num_fewshot":5 | ||
} | ||
} | ||
|