KernelTree

Trait KernelTree 

Source
pub trait KernelTree: Repo {
    // Required methods
    fn class_sources(
        &self,
        class: &str,
        model: &str,
        quant: &str,
    ) -> Result<ClassSources, String>;
    fn kernel_target(
        &self,
        config_json: &str,
        refs: &[&str],
    ) -> Result<Option<String>, String>;
    fn as_repo(&self) -> &dyn Repo;
}
Expand description

2026-09-30: A repository that can also resolve a class’s kernel sources.

Required Methods§

Source

fn class_sources( &self, class: &str, model: &str, quant: &str, ) -> Result<ClassSources, String>

2026-09-30: The sources class compiles for model/quant, or its common layer when it has no such target.

Source

fn kernel_target( &self, config_json: &str, refs: &[&str], ) -> Result<Option<String>, String>

2026-09-30: The kernel model directory that serves the checkpoint whose config.json is config_json, named by refs: the engine’s own resolution (its config parse, which may rewrite model_type, then MODEL.toml [[model_types]] and match_names), or None when no target claims it.

Source

fn as_repo(&self) -> &dyn Repo

2026-09-30: This tree as a plain Repo.

Implementors§