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.
2 parents 840412a + fdac4ac commit 7811fc5Copy full SHA for 7811fc5
llama-cpp-2/src/context/params.rs
@@ -69,6 +69,10 @@ pub struct LlamaContextParams {
69
pub(crate) context_params: llama_cpp_sys_2::llama_context_params,
70
}
71
72
+/// SAFETY: we do not currently allow setting or reading the pointers that cause this to not be automatically send or sync.
73
+unsafe impl Send for LlamaContextParams {}
74
+unsafe impl Sync for LlamaContextParams {}
75
+
76
impl LlamaContextParams {
77
/// Set the seed of the context
78
///
0 commit comments