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.
1 parent 88529ea commit daf7281Copy full SHA for daf7281
examples/llama.swiftui/llama.cpp.swift/LibLlama.swift
@@ -71,8 +71,8 @@ actor LlamaContext {
71
var ctx_params = llama_context_default_params()
72
ctx_params.seed = 1234
73
ctx_params.n_ctx = 2048
74
- ctx_params.n_threads = UInt32(n_threads)
75
- ctx_params.n_threads_batch = UInt32(n_threads)
+ ctx_params.n_threads = Int32(n_threads)
+ ctx_params.n_threads_batch = Int32(n_threads)
76
77
let context = llama_new_context_with_model(model, ctx_params)
78
guard let context else {
0 commit comments