Adds crates/core/src/tuning.rs with MIN/MAX_INFERENCE_THREADS consts, Workload enum (Llm/Whisper), and inference_thread_count() helper matching the existing constants::inference_thread_count clamp behaviour. Three unit tests pass. tracing dep added to Cargo.toml (used by future tasks). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
18 lines
368 B
TOML
18 lines
368 B
TOML
[package]
|
|
name = "magnotia-core"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
description = "Core types, constants, traits, hardware detection, and model registry for Magnotia"
|
|
|
|
[dependencies]
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
thiserror = "2"
|
|
sysinfo = "0.35"
|
|
async-trait = "0.1"
|
|
num_cpus = "1"
|
|
tracing = "0.1"
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3"
|