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
ChatGLM-6B_fastllm
Commits
f182f72d
Commit
f182f72d
authored
Jul 03, 2023
by
zhouxiang
Browse files
添加设置推理设备号接口
parent
9885cdda
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
include/chatglm.h
include/chatglm.h
+4
-0
lib/libfastllm.so
lib/libfastllm.so
+0
-0
No files found.
include/chatglm.h
View file @
f182f72d
...
...
@@ -42,8 +42,12 @@ namespace fastllm {
virtual
void
SaveLowBitModel
(
const
std
::
string
&
fileName
,
int
bit
);
// 存储成量化模型
virtual
void
WarmUp
();
// 预热
int
setDeviceID
(
int
id
);
private:
virtual
void
CausalMask
(
Data
&
data
,
int
start
)
{};
// 因果mask?
int
m_device_id
=
0
;
};
}
...
...
lib/libfastllm.so
View file @
f182f72d
No preview for this file type
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