File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -217,6 +217,8 @@ pub enum LlamaLoraAdapterRemoveError {
217
217
/// get the time (in microseconds) according to llama.cpp
218
218
/// ```
219
219
/// # use llama_cpp_2::llama_time_us;
220
+ /// # use llama_cpp_2::llama_backend::LlamaBackend;
221
+ /// let backend = LlamaBackend::init().unwrap();
220
222
/// let time = llama_time_us();
221
223
/// assert!(time > 0);
222
224
/// ```
@@ -311,6 +313,8 @@ pub enum ApplyChatTemplateError {
311
313
///
312
314
/// ```
313
315
/// # use std::time::Duration;
316
+ /// # use llama_cpp_2::llama_backend::LlamaBackend;
317
+ /// let backend = LlamaBackend::init().unwrap();
314
318
/// use llama_cpp_2::ggml_time_us;
315
319
///
316
320
/// let start = ggml_time_us();
Original file line number Diff line number Diff line change @@ -117,6 +117,8 @@ impl LlamaSampler {
117
117
/// data_array::LlamaTokenDataArray
118
118
/// };
119
119
/// use llama_cpp_2::sampling::LlamaSampler;
120
+ /// use llama_cpp_2::llama_backend::LlamaBackend;
121
+ /// let backend = LlamaBackend::init().unwrap();
120
122
///
121
123
/// let mut data_array = LlamaTokenDataArray::new(vec![
122
124
/// LlamaTokenData::new(LlamaToken(0), 0., 0.),
You can’t perform that action at this time.
0 commit comments