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
chenpangpang
transformers
Commits
c230504b
Unverified
Commit
c230504b
authored
Jun 03, 2024
by
Bojun Feng
Committed by
GitHub
Jun 03, 2024
Browse files
Fix typo in utils (#31169)
fix typo
parent
874ac129
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
src/transformers/cache_utils.py
src/transformers/cache_utils.py
+1
-1
src/transformers/generation/configuration_utils.py
src/transformers/generation/configuration_utils.py
+1
-1
src/transformers/utils/quantization_config.py
src/transformers/utils/quantization_config.py
+1
-1
No files found.
src/transformers/cache_utils.py
View file @
c230504b
...
@@ -170,7 +170,7 @@ class CacheConfig:
...
@@ -170,7 +170,7 @@ class CacheConfig:
# Copied from transformers.utils.quantization_config.QuantizationConfigMixin.update
# Copied from transformers.utils.quantization_config.QuantizationConfigMixin.update
def
update
(
self
,
**
kwargs
):
def
update
(
self
,
**
kwargs
):
"""
"""
Updates attributes of this class instance with attributes from `kwargs` if they match existing atribut
t
es,
Updates attributes of this class instance with attributes from `kwargs` if they match existing at
t
ributes,
returning all the unused kwargs.
returning all the unused kwargs.
Args:
Args:
...
...
src/transformers/generation/configuration_utils.py
View file @
c230504b
...
@@ -1146,7 +1146,7 @@ class GenerationConfig(PushToHubMixin):
...
@@ -1146,7 +1146,7 @@ class GenerationConfig(PushToHubMixin):
def
update
(
self
,
**
kwargs
):
def
update
(
self
,
**
kwargs
):
"""
"""
Updates attributes of this class instance with attributes from `kwargs` if they match existing atribut
t
es,
Updates attributes of this class instance with attributes from `kwargs` if they match existing at
t
ributes,
returning all the unused kwargs.
returning all the unused kwargs.
Args:
Args:
...
...
src/transformers/utils/quantization_config.py
View file @
c230504b
...
@@ -160,7 +160,7 @@ class QuantizationConfigMixin:
...
@@ -160,7 +160,7 @@ class QuantizationConfigMixin:
def
update
(
self
,
**
kwargs
):
def
update
(
self
,
**
kwargs
):
"""
"""
Updates attributes of this class instance with attributes from `kwargs` if they match existing atribut
t
es,
Updates attributes of this class instance with attributes from `kwargs` if they match existing at
t
ributes,
returning all the unused kwargs.
returning all the unused kwargs.
Args:
Args:
...
...
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