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
f9958ee1
Unverified
Commit
f9958ee1
authored
Apr 05, 2024
by
Nicolas Patry
Committed by
GitHub
Apr 05, 2024
Browse files
Fixing cohere tokenizer. (#1697)
parent
5062fda4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
server/text_generation_server/models/flash_cohere.py
server/text_generation_server/models/flash_cohere.py
+2
-2
No files found.
server/text_generation_server/models/flash_cohere.py
View file @
f9958ee1
...
@@ -3,7 +3,7 @@ import torch.distributed
...
@@ -3,7 +3,7 @@ import torch.distributed
from
opentelemetry
import
trace
from
opentelemetry
import
trace
from
typing
import
Optional
from
typing
import
Optional
from
transformers
.models.llama
import
Llama
Tokenizer
Fast
from
transformers
import
Auto
Tokenizer
from
text_generation_server.models
import
FlashCausalLM
from
text_generation_server.models
import
FlashCausalLM
from
text_generation_server.models.custom_modeling.flash_cohere_modeling
import
(
from
text_generation_server.models.custom_modeling.flash_cohere_modeling
import
(
...
@@ -36,7 +36,7 @@ class FlashCohere(FlashCausalLM):
...
@@ -36,7 +36,7 @@ class FlashCohere(FlashCausalLM):
else
:
else
:
raise
NotImplementedError
(
"FlashCohere is only available on GPU"
)
raise
NotImplementedError
(
"FlashCohere is only available on GPU"
)
tokenizer
=
Llama
Tokenizer
Fast
.
from_pretrained
(
tokenizer
=
Auto
Tokenizer
.
from_pretrained
(
model_id
,
model_id
,
revision
=
revision
,
revision
=
revision
,
padding_side
=
"left"
,
padding_side
=
"left"
,
...
...
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