We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
params.rope_scaling_type
1 parent 8fad055 commit 06c58adCopy full SHA for 06c58ad
llama-cpp-2/src/context/params.rs
@@ -75,9 +75,11 @@ pub struct LlamaContextParams {
75
76
/// Default parameters for `LlamaContext`. (as defined in llama.cpp by `llama_context_default_params`)
77
/// ```
78
-/// # use llama_cpp_2::context::params::LlamaContextParams;
+/// # use std::num::NonZeroU32;
79
+/// use llama_cpp_2::context::params::{LlamaContextParams, RopeScalingType};
80
/// let params = LlamaContextParams::default();
-/// assert_eq!(params.n_ctx.unwrap().get(), 512, "n_ctx should be 512");
81
+/// assert_eq!(params.n_ctx, NonZeroU32::new(512), "n_ctx should be 512");
82
+/// assert_eq!(params.rope_scaling_type, RopeScalingType::Unspecified);
83
84
impl Default for LlamaContextParams {
85
fn default() -> Self {
0 commit comments