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
CogVideoX-5B
Commits
58e1892d
Commit
58e1892d
authored
Aug 28, 2024
by
chenpangpang
Browse files
feat: 初始提交
parent
57a7272c
Pipeline
#1624
failed with stages
in 0 seconds
Changes
25
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
117 additions
and
0 deletions
+117
-0
Dockerfile
Dockerfile
+23
-0
assets/二维码.jpeg
assets/二维码.jpeg
+0
-0
hf_down.py
hf_down.py
+10
-0
start.sh
start.sh
+4
-0
启动器.ipynb
启动器.ipynb
+80
-0
No files found.
Dockerfile
0 → 100644
View file @
58e1892d
FROM
image.sourcefind.cn:5000/gpu/admin/base/jupyterlab-pytorch:2.2.0-python3.10-cuda12.1-ubuntu22.04 as base
ARG
IMAGE=cogvideox-5b
ARG
IMAGE_UPPER=CogVideoX-5B-Space
ARG
BRANCH=gpu
RUN
cd
/root
&&
git clone
-b
$BRANCH
http://developer.hpccube.com/codes/chenpangpang/
$IMAGE
.git
WORKDIR
/root/$IMAGE/$IMAGE_UPPER
RUN
pip
install
-r
requirements.txt
#########
# Prod #
#########
FROM
image.sourcefind.cn:5000/gpu/admin/base/jupyterlab-pytorch:2.2.0-python3.10-cuda12.1-ubuntu22.04
ARG
IMAGE=cogvideox-5b
ARG
IMAGE_UPPER=CogVideoX-5B-Space
COPY
chenyh/$IMAGE/frpc_linux_amd64_v0.2 /opt/conda/lib/python3.10/site-packages/gradio/
RUN
chmod
+x /opt/conda/lib/python3.10/site-packages/gradio/frpc_linux_amd64_v0.2
COPY
chenyh/$IMAGE/model_real_esran /root/$IMAGE_UPPER/model_real_esran
COPY
chenyh/$IMAGE/model_rife /root/$IMAGE_UPPER/model_rife
COPY
--from=base /opt/conda/lib/python3.10/site-packages /opt/conda/lib/python3.10/site-packages
COPY
--from=base /root/$IMAGE/$IMAGE_UPPER /root/$IMAGE_UPPER
COPY
--from=base /root/$IMAGE/启动器.ipynb /root/$IMAGE/start.sh /root/
COPY
--from=base /root/$IMAGE/assets /root/
\ No newline at end of file
assets/二维码.jpeg
0 → 100644
View file @
58e1892d
106 KB
hf_down.py
0 → 100644
View file @
58e1892d
# pip install huggingface-cli
import
os
os
.
system
(
"pip install -U huggingface-hub"
)
os
.
environ
[
'HF_ENDPOINT'
]
=
'https://hf-mirror.com'
from
huggingface_hub
import
hf_hub_download
,
snapshot_download
hf_hub_download
(
repo_id
=
"ai-forever/Real-ESRGAN"
,
filename
=
"RealESRGAN_x4.pth"
,
local_dir
=
"model_real_esran"
)
snapshot_download
(
repo_id
=
"AlexWortega/RIFE"
,
local_dir
=
"model_rife"
)
start.sh
0 → 100644
View file @
58e1892d
#!/bin/bash
cd
/root/CogVideoX-5B-Space
python app.py
启动器.ipynb
0 → 100644
View file @
58e1892d
{
"cells": [
{
"cell_type": "markdown",
"id": "e5c5a211-2ccd-4341-af10-ac546484b91f",
"metadata": {
"tags": []
},
"source": [
"## 项目介绍\n",
"- 原项目地址:https://huggingface.co/spaces/THUDM/CogVideoX-5B-Space\n",
"- CogVideoX-5B:智谱AI推出的视频生成模型,具有快速生成、准确理解执行复杂prompt、内容连贯、画面调度灵活等特点。\n",
"## 使用说明\n",
"- 启动和重启 Notebook 点上方工具栏中的「重启并运行所有单元格」。出现如下内容就算成功了:\n",
" - `Running on local URL: http://0.0.0.0:7860`\n",
" - `Running on public URL: https://xxxxxxxxxxxxxxx.gradio.live`\n",
"- 通过以下方式开启页面:\n",
" - 控制台打开「自定义服务」了,访问自定义服务端口号设置为7860\n",
" - 直接打开显示的公开链接`public URL`\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "53a96614-e2d2-4710-a82b-0d5ca9cb9872",
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"# 启动\n",
"!sh start.sh"
]
},
{
"cell_type": "markdown",
"source": [
"---\n",
"**扫码关注公众号,获取更多资讯**<br>\n",
"<div align=center>\n",
"<img src=\"assets/二维码.jpeg\" width = 20% />\n",
"</div>\n"
],
"metadata": {
"collapsed": false
},
"id": "2f54158c2967bc25"
},
{
"cell_type": "code",
"outputs": [],
"source": [],
"metadata": {
"collapsed": false
},
"id": "6dc59fbbcf222b6b"
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.13"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
Prev
1
2
Next
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