Skip to content
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

Merged
merged 4 commits into from
Aug 6, 2024
Merged

Feat/ctx size #194

merged 4 commits into from
Aug 6, 2024

Conversation

L-jasmine
Copy link
Collaborator

No description provided.

Signed-off-by: csh <458761603@qq.com>
Signed-off-by: csh <458761603@qq.com>
Signed-off-by: csh <458761603@qq.com>
@L-jasmine L-jasmine requested a review from jmbejar August 6, 2024 13:48
@L-jasmine
Copy link
Collaborator Author

fd6fc34 fix #161

@@ -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,
Copy link
Collaborator

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".

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update

Copy link
Collaborator

@jmbejar jmbejar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! :shipit:

@jmbejar jmbejar merged commit 8bb9d87 into moxin-org:dev Aug 6, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants