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
59937716
"docs/source/vscode:/vscode.git/clone" did not exist on "3c17c529cc87881c30ef0c49685a949c858c9985"
Unverified
Commit
59937716
authored
Aug 09, 2023
by
Sylvain Gugger
Committed by
GitHub
Aug 09, 2023
Browse files
Fix path for dynamic module creation (#25402)
parent
85447bb2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/dynamic_module_utils.py
src/transformers/dynamic_module_utils.py
+1
-1
No files found.
src/transformers/dynamic_module_utils.py
View file @
59937716
...
...
@@ -59,7 +59,7 @@ def create_dynamic_module(name: Union[str, os.PathLike]):
Creates a dynamic module in the cache directory for modules.
"""
init_hf_modules
()
dynamic_module_path
=
Path
(
HF_MODULES_CACHE
)
/
name
dynamic_module_path
=
(
Path
(
HF_MODULES_CACHE
)
/
name
).
resolve
()
# If the parent module does not exist yet, recursively create it.
if
not
dynamic_module_path
.
parent
.
exists
():
create_dynamic_module
(
dynamic_module_path
.
parent
)
...
...
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