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
jerrrrry
infinilm
Commits
6fa3a12a
Unverified
Commit
6fa3a12a
authored
Sep 18, 2025
by
zhangyue
Committed by
GitHub
Sep 18, 2025
Browse files
issue/48: p800支持
parent
1ab1e668
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
scripts/jiuge.py
scripts/jiuge.py
+2
-0
scripts/libinfinicore_infer/base.py
scripts/libinfinicore_infer/base.py
+1
-0
No files found.
scripts/jiuge.py
View file @
6fa3a12a
...
...
@@ -675,6 +675,8 @@ def test():
device_type
=
DeviceType
.
DEVICE_TYPE_MOORE
elif
sys
.
argv
[
1
]
==
"--iluvatar"
:
device_type
=
DeviceType
.
DEVICE_TYPE_ILUVATAR
elif
sys
.
argv
[
1
]
==
"--kunlun"
:
device_type
=
DeviceType
.
DEVICE_TYPE_KUNLUN
else
:
print
(
"Usage: python jiuge.py [--cpu | --nvidia| --cambricon | --ascend | --metax | --moore] <path/to/model_dir> [n_device]"
...
...
scripts/libinfinicore_infer/base.py
View file @
6fa3a12a
...
...
@@ -34,6 +34,7 @@ class DeviceType(ctypes.c_int):
DEVICE_TYPE_METAX
=
4
DEVICE_TYPE_MOORE
=
5
DEVICE_TYPE_ILUVATAR
=
6
DEVICE_TYPE_KUNLUN
=
7
class
KVCacheCStruct
(
ctypes
.
Structure
):
...
...
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