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
OpenDAS
text-generation-inference
Commits
65e2f162
Unverified
Commit
65e2f162
authored
Feb 24, 2023
by
OlivierDehaene
Committed by
GitHub
Feb 24, 2023
Browse files
fix(server): fix token_is_special (#87)
parent
3b03c4ea
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
server/text_generation/models/causal_lm.py
server/text_generation/models/causal_lm.py
+1
-1
server/text_generation/models/seq2seq_lm.py
server/text_generation/models/seq2seq_lm.py
+1
-1
No files found.
server/text_generation/models/causal_lm.py
View file @
65e2f162
...
@@ -445,7 +445,7 @@ class CausalLM(Model):
...
@@ -445,7 +445,7 @@ class CausalLM(Model):
next_token_id_squeezed
,
next_token_id_squeezed
,
next_token_logprob
,
next_token_logprob
,
next_token_text
,
next_token_text
,
next_token_id_squeezed
in
self
.
all_special_ids
,
next_token_id_squeezed
.
item
()
in
self
.
all_special_ids
,
generated_text
,
generated_text
,
)
)
...
...
server/text_generation/models/seq2seq_lm.py
View file @
65e2f162
...
@@ -509,7 +509,7 @@ class Seq2SeqLM(Model):
...
@@ -509,7 +509,7 @@ class Seq2SeqLM(Model):
next_token_id_squeezed
,
next_token_id_squeezed
,
next_token_logprob
,
next_token_logprob
,
next_token_text
,
next_token_text
,
next_token_id_squeezed
in
self
.
all_special_ids
,
next_token_id_squeezed
.
item
()
in
self
.
all_special_ids
,
generated_text
,
generated_text
,
)
)
...
...
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