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 {
217217/// get the time (in microseconds) according to llama.cpp
218218/// ```
219219/// # use llama_cpp_2::llama_time_us;
220+ /// # use llama_cpp_2::llama_backend::LlamaBackend;
221+ /// let backend = LlamaBackend::init().unwrap();
220222/// let time = llama_time_us();
221223/// assert!(time > 0);
222224/// ```
@@ -311,6 +313,8 @@ pub enum ApplyChatTemplateError {
311313///
312314/// ```
313315/// # use std::time::Duration;
316+ /// # use llama_cpp_2::llama_backend::LlamaBackend;
317+ /// let backend = LlamaBackend::init().unwrap();
314318/// use llama_cpp_2::ggml_time_us;
315319///
316320/// let start = ggml_time_us();
Original file line number Diff line number Diff line change @@ -117,6 +117,8 @@ impl LlamaSampler {
117117 /// data_array::LlamaTokenDataArray
118118 /// };
119119 /// use llama_cpp_2::sampling::LlamaSampler;
120+ /// use llama_cpp_2::llama_backend::LlamaBackend;
121+ /// let backend = LlamaBackend::init().unwrap();
120122 ///
121123 /// let mut data_array = LlamaTokenDataArray::new(vec![
122124 /// LlamaTokenData::new(LlamaToken(0), 0., 0.),
You can’t perform that action at this time.
0 commit comments