dantinox — Top-Level API
The top-level dantinox package exposes a three-level API. Import dantinox as dx to access all public symbols.
Low-code functional API
These functions are the Level-1 entry points — no class instantiation required.
options:
show_source: true
heading_level: 3
options:
show_source: true
heading_level: 3
options:
show_source: true
heading_level: 3
options:
show_source: true
heading_level: 3
options:
show_source: true
heading_level: 3
options:
show_source: true
heading_level: 3
Re-exported symbols
The following symbols are importable directly from dantinox:
Configs
ModelConfig— model architecture configurationTrainingConfig— training hyperparametersConfig— legacy unified config (backward-compat)
ELFConfig (flow-matching architecture config, aliased to FlowMatchingConfig)
is not re-exported at the top level — import it from the submodule
instead: from dantinox.core.config import FlowMatchingConfig (or the
deprecated alias ELFConfig from the same module).
Paradigms
Paradigm— unified paradigm dispatcher (selects AR/discrete/continuous/embedder fromModelConfig.paradigm)ARParadigm— autoregressiveDiscreteParadigm— masked diffusion (LLaDA formulation)ContinuousParadigm— continuous flow-matchingEmbedderParadigm— contrastive text-embedding paradigm
DiscreteConfig (masked-diffusion hyperparameters) is not re-exported at
the top level — import it directly: from dantinox.paradigms.diffusion.discrete import DiscreteConfig.
Training
Trainer— paradigm-agnostic training harnessbuild_optimizer— optimizer factorybuild_schedule— LR schedule factory
Profiling
count_flops— analytical FLOPs estimatorFLOPsBreakdown— per-component FLOPs resultLatencyTracker— wall-clock latency measurementProfilingResult— aggregated latency statisticsprofile_fn— functional latency wrapper
Benchmarking
BenchmarkSuite— task orchestratorBenchmarkTask— plugin base classBenchmarkConfig— suite configurationBenchmarkResult— per-task resultSuiteReport— aggregated reportThroughputTask,LatencyTask,PerplexityTask— built-in tasks
Visualization
Visualizer— chart registry and rendererChart— chart ABCRenderConfig— rendering optionsTrainingCurveChart,ThroughputChart,ThroughputBatchChart— built-in chartsLatencyChart,RadarChart,ParetoChart— built-in charts