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
wangkx1
prj_csghub
Commits
e6ec12a3
Commit
e6ec12a3
authored
Apr 29, 2026
by
root
Browse files
init
parent
0d660ddc
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
61 additions
and
6 deletions
+61
-6
auto_upload.py
auto_upload.py
+2
-2
config-tools/run.sh
config-tools/run.sh
+10
-0
config-tools/tj-config.yml
config-tools/tj-config.yml
+18
-0
config-tools/ty-config.yml
config-tools/ty-config.yml
+18
-0
run.sh
run.sh
+13
-4
No files found.
auto_u
o
load.py
→
auto_u
p
load.py
View file @
e6ec12a3
...
@@ -27,7 +27,7 @@ def upload(local_path, repo_id, repo_type="model", force=False):
...
@@ -27,7 +27,7 @@ def upload(local_path, repo_id, repo_type="model", force=False):
api
=
csg_api
,
api
=
csg_api
,
repo_id
=
use_full_repo_id
,
repo_id
=
use_full_repo_id
,
repo_type
=
repo_type
,
repo_type
=
repo_type
,
revision
=
"
v1
"
,
revision
=
"
main
"
,
endpoint
=
BASE_URL
,
endpoint
=
BASE_URL
,
token
=
TOKEN
token
=
TOKEN
)
)
...
@@ -36,7 +36,7 @@ def upload(local_path, repo_id, repo_type="model", force=False):
...
@@ -36,7 +36,7 @@ def upload(local_path, repo_id, repo_type="model", force=False):
repo_id
=
use_full_repo_id
,
repo_id
=
use_full_repo_id
,
local_path
=
local_path
,
local_path
=
local_path
,
repo_type
=
repo_type
,
repo_type
=
repo_type
,
revision
=
"
v1
"
,
revision
=
"
main
"
,
endpoint
=
BASE_URL
,
endpoint
=
BASE_URL
,
token
=
TOKEN
,
token
=
TOKEN
,
allow_patterns
=
None
,
allow_patterns
=
None
,
...
...
config-tools/run.sh
0 → 100644
View file @
e6ec12a3
docker run
-d
--name
model_download_manager
\
-v
/dcu_ai/models:/dcu_ai/models
\
-v
/dcu_ai/config-tools:/home/config
\
-p
7865:7865
-w
/workspace/new-moon
-e
PYTHONUNBUFFERED
=
1
-e
MODEL_DOWNLOAD_CONFIG_FILE
=
/home/config/ty-config.yml
\
--restart
unless-stopped 10.17.27.227/dev/man-model:v4.0
\
bash
-c
"python3 model_download_manager.py"
config-tools/tj-config.yml
0 → 100644
View file @
e6ec12a3
auto_delete_after_upload
:
false
auto_upload_after_download
:
true
csghub
:
base_url
:
http://10.17.27.227:4997
repo_type
:
model
revision
:
main
token
:
f5dad38a9426410aa861155cd184f84a
download
:
max_concurrent
:
1
max_retries
:
10
retry_interval
:
1
local
:
config_db_path
:
config_db.json
default_model_path
:
models_db_path
:
models_db.json
upload
:
create_repo_default
:
true
num_workers
:
1
config-tools/ty-config.yml
0 → 100644
View file @
e6ec12a3
auto_delete_after_upload
:
false
auto_upload_after_download
:
false
csghub
:
base_url
:
http://10.20.100.5:4997
repo_type
:
model
revision
:
main
token
:
a2683e780fee4aa4b16cbedee0f75a45
download
:
max_concurrent
:
1
max_retries
:
10
retry_interval
:
1
local
:
config_db_path
:
config_db.json
default_model_path
:
/dcu_ai/models
models_db_path
:
models_db.json
upload
:
create_repo_default
:
true
num_workers
:
1
run.sh
View file @
e6ec12a3
pip
install
csghub-sdk
==
0.7.10
pip3
install
csghub-sdk
==
0.7.10
patch /usr/local/lib/python3.10/dist-packages/pycsghub/csghub_api.py < change_private.patch
sed
-n
'178,182p'
/usr/local/lib/python3.10/dist-packages/pycsghub/csghub_api.py
python3 auto_upload.py <model-file>
--force
path
=
$(
python3
-c
"import pycsghub.csghub_api; print(pycsghub.csghub_api.__file__)"
2>/dev/null
)
if
[
-n
"
$path
"
]
;
then
echo
"path:
$path
"
else
# fallback: find using python3's site-packages
python3
-c
"import site, os; packages = site.getsitepackages(); [print(os.path.join(p, 'pycsghub/csghub_api.py')) for p in packages if os.path.exists(os.path.join(p, 'pycsghub/csghub_api.py'))]"
2>/dev/null |
head
-1
fi
patch
-N
$path
< change_private.patch
sed
-n
'178,182p'
$path
python3 auto_upload.py /dcu_ai/models/FlagRelease/DeepSeek-V4-Flash-hygon-FlagOS
--force
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