-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/ctx size #194
Feat/ctx size #194
Conversation
Signed-off-by: csh <458761603@qq.com>
Signed-off-by: csh <458761603@qq.com>
Signed-off-by: csh <458761603@qq.com>
moxin-protocol/src/protocol.rs
Outdated
@@ -28,9 +28,12 @@ pub struct LoadModelOptions { | |||
pub prompt_template: Option<String>, | |||
pub gpu_layers: GPULayers, | |||
pub use_mlock: bool, | |||
// if 0, the backend will use the default value | |||
pub n_batch: u32, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about using Option
for those fields? Looks cleaner than relying on zero as the "null value".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update
Signed-off-by: csh <458761603@qq.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
No description provided.