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
ModelZoo
Kimi-VL-A3B-Thinking_pytorch
Commits
1de1729e
Commit
1de1729e
authored
Dec 13, 2025
by
zzg_666
Browse files
zhaozg
parent
66285be0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
Dockerfile
Dockerfile
+1
-1
Kimi_VL_think.py
Kimi_VL_think.py
+1
-1
README.md
README.md
+4
-4
No files found.
Dockerfile
View file @
1de1729e
FROM
image.sourcefind.cn:5000/dcu/admin/base/pytorch:2.3.0-py3.10-dtk24.04.3-ubuntu20.04
\ No newline at end of file
FROM
image.sourcefind.cn:5000/dcu/admin/base/pytorch:2.5.1-ubuntu22.04-dtk25.04.2-py3.10
Kimi_VL_think.py
View file @
1de1729e
...
...
@@ -20,7 +20,7 @@ model = AutoModelForCausalLM.from_pretrained(
# )
processor
=
AutoProcessor
.
from_pretrained
(
model_path
,
trust_remote_code
=
True
)
image_paths
=
[
"./
Pic/arch
.png"
,
"./
Pic/theory
.png"
]
image_paths
=
[
"./
xx/1
.png"
,
"./
xx/2
.png"
]
images
=
[
Image
.
open
(
path
)
for
path
in
image_paths
]
messages
=
[
{
...
...
README.md
View file @
1de1729e
...
...
@@ -24,7 +24,7 @@ ViT是Google团队提出的将Transformer应用在图像分类的模型。ViT将
### Docker(方法一)
推荐使用docker方式运行, 此处提供
[
光源
](
https://www.sourcefind.cn/#/service-details
)
拉取docker镜像的地址与使用步骤
```
docker pull image.sourcefind.cn:5000/dcu/admin/base/pytorch:2.
3.0-py3.10
-dtk2
4
.04.
3-ubuntu20.04
docker pull image.sourcefind.cn:5000/dcu/admin/base/pytorch:2.
5.1-ubuntu22.04
-dtk2
5
.04.
2-py3.10
docker run -it --shm-size=1024G -v /path/your_code_data/:/path/your_code_data/ -v /opt/hyhal:/opt/hyhal --network=host --privileged=true --device=/dev/kfd --device=/dev/dri/ --group-add video --name kimi-vl-thinking <your IMAGE ID> bash # <your IMAGE ID>为以上拉取的docker的镜像ID替换
...
...
@@ -55,10 +55,10 @@ pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
关于本项目DCU显卡所需的特殊深度学习库可从
[
光合
](
https://developer.sourcefind.cn/tool/
)
开发者社区下载安装。
```
DTK驱动:dtk2
4
.04.
3
DTK驱动:dtk2
5
.04.
2
python:3.10
torch:2.
3.0
transformers
>
=4.48.
0
torch:2.
5.1
transformers
=
=4.48.
2
```
`Tips:以上dtk驱动、python、torch等DCU相关工具版本需要严格一一对应`
...
...
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