[autoresearch] baseline: system prompt quality tests (5/5 passing)
This commit is contained in:
1 parent
05cc036f6d
commit
60b0101717
142 files changed
+18589
-9947
No files matched your search
@@ -236,13 +236,6 @@ impl LlamaLib {
|
||||
let lib = unsafe { Library::new(path) }
|
||||
.with_context(|| format!("Failed to load llama library from {:?}", path))?;
|
||||
|
||||
macro_rules! sym {
|
||||
($name:literal) => {{
|
||||
*unsafe { lib.get::<unsafe extern "C" fn()>(concat!($name, "\0").as_bytes()) }
|
||||
.with_context(|| format!("Missing symbol: {}", $name))?
|
||||
}};
|
||||
}
|
||||
|
||||
// We need transmutes to specific fn types — use a helper macro:
|
||||
macro_rules! load {
|
||||
($field:ident, $ty:ty, $name:literal) => {{
|
||||
@@ -556,11 +549,11 @@ impl LlamaLib {
|
||||
return Ok(PathBuf::from(name));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
anyhow::bail!(
|
||||
"Cannot find llama shared library. Set LLAMA_DLL_PATH to the full path of llama.dll"
|
||||
)
|
||||
anyhow::bail!(
|
||||
"Cannot find llama shared library. Set LLAMA_DLL_PATH to the full path of llama.dll"
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
/// Convenience: find + load in one call.
|
||||
|
||||
Reference in new issue
Block a user