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
flux-lora-the-explorer
Commits
1e4c4c14
"git@developer.sourcefind.cn:orangecat/ollama.git" did not exist on "8125ce4cb65a0f121c79c57f702323d2b91b13b5"
Commit
1e4c4c14
authored
Aug 26, 2024
by
chenpangpang
Browse files
feat: 下载模型更新
parent
224dcb3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
3 deletions
+20
-3
hf_down.py
hf_down.py
+20
-3
No files found.
hf_down.py
View file @
1e4c4c14
...
@@ -4,11 +4,28 @@ import os
...
@@ -4,11 +4,28 @@ import os
os
.
environ
[
'HF_ENDPOINT'
]
=
'https://hf-mirror.com'
os
.
environ
[
'HF_ENDPOINT'
]
=
'https://hf-mirror.com'
model_list
=
[
model_list
=
[
"openbmb/MiniCPM-V-2_6"
,
"black-forest-labs/FLUX.1-dev"
,
"multimodalart/flux-tarot-v1"
,
"alvdansen/frosting_lane_flux"
,
"XLabs-AI/flux-RealismLora"
,
"nerijs/animation2k-flux"
,
"alvdansen/softserve_anime"
,
"veryVANYA/ps1-style-flux"
,
"alvdansen/flux-koda"
,
"davisbro/half_illustration"
,
"fofr/flux-wrong"
,
"linoyts/yarn_art_Flux_LoRA"
,
"SebastianBodza/Flux_Aquarell_Watercolor_v2"
,
"dataautogpt3/FLUX-SyntheticAnime"
,
"XLabs-AI/flux-lora-collection"
,
"kudzueye/Boreal"
,
"XLabs-AI/flux-lora-collection"
,
"XLabs-AI/flux-lora-collection"
,
"martintomov/retrofuturism-flux"
]
]
os
.
system
(
"pip install -U huggingface-hub"
)
#
os.system("pip install -U huggingface-hub")
for
model_path
in
model_list
:
for
model_path
in
model_list
:
os
.
system
(
os
.
system
(
f
"huggingface-cli download --resume-download
{
model_path
}
--local-dir ./
{
model_path
}
--local-dir-use-symlinks False"
)
f
"huggingface-cli download --resume-download
{
model_path
}
--local-dir ./
{
model_path
}
--local-dir-use-symlinks False
--token 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
"
)
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