Skip to content

Commit 86b1996

Browse files
committed
Fix split_mode assert
Update the doc test for LlamaModelParams to assert that split_mode returns Ok(LlamaSplitMode::Layer) instead of just LlamaSplitMode::Layer, reflecting the actual return type.
1 parent 86e1fc5 commit 86b1996

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llama-cpp-2/src/model/params.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ impl LlamaModelParams {
411411
/// assert_eq!(params.vocab_only(), false, "vocab_only should be false");
412412
/// assert_eq!(params.use_mmap(), true, "use_mmap should be true");
413413
/// assert_eq!(params.use_mlock(), false, "use_mlock should be false");
414-
/// assert_eq!(params.split_mode(), LlamaSplitMode::Layer, "split_mode should be LAYER");
414+
/// assert_eq!(params.split_mode(), Ok(LlamaSplitMode::Layer), "split_mode should be LAYER");
415415
/// assert_eq!(params.devices().len(), 0, "devices should be empty");
416416
/// ```
417417
impl Default for LlamaModelParams {

0 commit comments

Comments
 (0)