Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
a39ebbf8
Unverified
Commit
a39ebbf8
authored
Aug 31, 2023
by
Arthur
Committed by
GitHub
Aug 31, 2023
Browse files
[`CodeLlama`] Fix CI (#25890)
* Fix coellama * style
parent
3b39b906
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
src/transformers/models/code_llama/tokenization_code_llama_fast.py
...formers/models/code_llama/tokenization_code_llama_fast.py
+4
-1
No files found.
src/transformers/models/code_llama/tokenization_code_llama_fast.py
View file @
a39ebbf8
...
...
@@ -151,7 +151,6 @@ class CodeLlamaTokenizerFast(PreTrainedTokenizerFast):
self
.
update_post_processor
()
self
.
vocab_file
=
vocab_file
self
.
can_save_slow_tokenizer
=
False
if
not
self
.
vocab_file
else
True
self
.
_prefix_token
=
prefix_token
self
.
_middle_token
=
middle_token
...
...
@@ -159,6 +158,10 @@ class CodeLlamaTokenizerFast(PreTrainedTokenizerFast):
self
.
_eot_token
=
eot_token
self
.
fill_token
=
fill_token
@
property
def
can_save_slow_tokenizer
(
self
)
->
bool
:
return
os
.
path
.
isfile
(
self
.
vocab_file
)
if
self
.
vocab_file
else
False
def
update_post_processor
(
self
):
"""
Updates the underlying post processor with the current `bos_token` and `eos_token`.
...
...
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