Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
lm-evaluation-harness
Commits
efd319b3
Unverified
Commit
efd319b3
authored
Apr 28, 2022
by
Jonathan Tow
Committed by
GitHub
Apr 28, 2022
Browse files
Merge pull request #14 from bigscience-workshop/fix-gpt-j
Add `eot_token` property to gpt-j
parents
f65e196e
32d0658c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
lm_eval/models/gptj.py
lm_eval/models/gptj.py
+4
-0
No files found.
lm_eval/models/gptj.py
View file @
efd319b3
...
@@ -39,6 +39,10 @@ class GPTJLM(BaseLM):
...
@@ -39,6 +39,10 @@ class GPTJLM(BaseLM):
# if gpus > 1:
# if gpus > 1:
# self.gptj = nn.DataParallel(self.gptj)
# self.gptj = nn.DataParallel(self.gptj)
@
property
def
eot_token
(
self
):
return
self
.
tokenizer
.
eos_token
@
property
@
property
def
eot_token_id
(
self
):
def
eot_token_id
(
self
):
# we use EOT because end of *text* is more accurate for what we're doing than end of *sentence*
# we use EOT because end of *text* is more accurate for what we're doing than end of *sentence*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment