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.
LlamaContextParams
1 parent bd444f9 commit fdac4acCopy full SHA for fdac4ac
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