import { type NolArtifactRef, type NolBackendCapabilities, type NolRecipeRevision, type NolModelManifest, type NolRuntimeBinding } from "../_types/schemas/nol.js"; import { type NolWorkerLimits } from "../_types/execution/nol/worker-protocol.js"; import type { NolComputeAdapter, NolComputeContext, NolComputeSettlement, NolComputeTrialOutput, NolComputeTrialRequest, NolFrozenExperiment, NolFrozenExperimentInput, NolPreparedControl, NolArtifactPublisher } from "../_types/orchestrator/nol/coordinator.js"; import { NolCudaLease, type NolCudaPlacement } from "./cuda-lease.js"; import { type NolOrphanProbeInput, type NolOrphanProbeResult } from "./orphan-custody.js"; import { NolVllmStartupSession, type NolVllmStartupPlan, type NolVllmStartupSessionOptions, type NolVllmStartupLease, type NolVllmRuntimeInventoryRequest, type NolVllmRuntimeInventory } from "./vllm-startup.js"; import { type NolVllmSource, type NolVllmRuntimeLimits, type NolVllmTokenization, type NolVllmPrompt } from "./vllm-protocol.js"; export declare const nolVllmAdapterDigest: () => string; type Ownership = { jobId: string; ownerId: string; generation: number; }; export interface NolVllmLiveConformance { assertCurrent(): void; } export interface NolVllmConformanceAuthority { recordId: string; evidence: NolArtifactRef; verify(input: { binding: NolRuntimeBinding; source: NolVllmSource; recipes: readonly NolRecipeRevision[]; signal: AbortSignal; }): Promise; } export interface NolVllmRequestPolicy { schema: "omnius.nol.vllm-request-policy.v1"; purpose: "experiment" | "conformance"; allowedRecipes: { recipeDigest: string; operations: NolRecipeRevision["operations"]; }[]; captureSiteIds: string[]; maxCaptureBytes: number; limits: NolVllmRuntimeLimits; } export interface NolVllmLoadDescriptor { sourceId: "Qwen/Qwen3.5-4B"; revision: "851bf6e806efd8d0a36b00ddf55e13ccb7b8cd0a"; checkpointRoot: string; workRoot: string; model: NolModelManifest; modelIdentityJson: string; policy: NolVllmRequestPolicy; } export interface NolVllmHostOptions { pythonPath: string; workerPath: string; companionPath: string; checkpointRoot: string; workRoot: string; startup: Omit; inventoryRequest: NolVllmRuntimeInventoryRequest; runtimeEnvironment?: Readonly>; runtimeInventoryArtifact?: NolArtifactRef; workerLimits: NolWorkerLimits; runtimeLimits: NolVllmRuntimeLimits; decoderSha256: string; tokenizationVerifierDigest: string; verifyTokenization(input: { prompt: NolVllmPrompt; binding: NolRuntimeBinding; signal: AbortSignal; }): Promise; expectedDurationSeconds: number; authorizeRuntime(plan: NolVllmStartupPlan, inventory: NolVllmRuntimeInventory, signal: AbortSignal, admission: Parameters[2]): Promise; onPlacementConfirmed(placement: NolCudaPlacement, proof: NolArtifactRef, signal: AbortSignal): Promise; notice?: (message: string) => void; readDriverVersion?: (gpuUuid: string) => Promise; acquireLease?: (input: Parameters[0]) => Promise; createSession?: (options: NolVllmStartupSessionOptions) => NolVllmStartupSession; probeOrphanCustody?: (input: NolOrphanProbeInput) => Promise; } /** One physical worker, with actual outstanding promises retained through Stop. * Trusted host ports in tests cannot be serialized by any public request. */ export declare class NolVllmHostSession { private readonly options; readonly model: NolModelManifest; readonly policy: NolVllmRequestPolicy; readonly ownership: Ownership; private readonly context; private readonly live?; private readonly lifetime; private readonly signal; private lease?; private session?; private acquisition?; private acquisitionUnknown; private starting?; private pending; private settling?; private placement?; private placementProof?; private driver?; private inventory?; private ready; private resetEpoch; private lastReset?; private tokenization?; private independentTokens?; private startupPerformance?; get tokenizationProof(): NolArtifactRef | undefined; private readonly descriptor; readonly plan: NolVllmStartupPlan; constructor(options: NolVllmHostOptions, model: NolModelManifest, policy: NolVllmRequestPolicy, ownership: Ownership, context: NolComputeContext, live?: NolVllmLiveConformance | undefined); assertCurrent(): void; private track; start(): Promise; private open; private request; tokenize(prompt: NolVllmPrompt): Promise; reset(): Promise; generate(prompt: NolVllmPrompt, recipe: NolRecipeRevision | null, key: string, seed: number, maxTokens: number, decoding: { temperature: number; topP: number; topK: number; constrainedDecoding: "none"; }, captureSiteId?: string): Promise<{ capture?: unknown; output: { text: string; promptTokenIds: number[]; tokenIds: number[]; usage: { promptTokens: number; completionTokens: number; }; finishReason: "length" | "stop"; stopReason: number | null; native: { binding: { schema: "omnius.nol.runtime.v1"; id: string; backend: "ollama" | "vllm" | "other" | "transformers" | "gne" | "llama_cpp" | "nnsight"; modelDigest: string; architectureMapDigest: string; runtimeBuildDigest: string; dependencyLockDigest: string; tokenizerDigest: string; chatTemplateDigest: string; contextLimit: number; }; source: { workerSha256: string; companionSha256: string; runtimeSha256: string; }; sourcePromptArtifact: { uri: string; sha256: string; sizeBytes: number; mediaType: string; }; renderedSha256: string; implementation: "omnius.nol.vllm-runtime.v1"; requestId: string; engineRequestId: string; cacheKeyDigest: string; recipeDigest: string | null; operations: ({ units: "raw" | "residual_norm" | "activation_std"; operation: "NEURON_ADD"; neuron: number; amount: number; id: string; siteId: string; tokenScope: { kind: "all"; } | { kind: "prompt"; } | { kind: "generated"; } | { kind: "positions"; positions: number[]; }; calibrationId?: string | undefined; } | { operation: "NEURON_GAIN"; neuron: number; factor: number; id: string; siteId: string; tokenScope: { kind: "all"; } | { kind: "prompt"; } | { kind: "generated"; } | { kind: "positions"; positions: number[]; }; } | { units: "raw" | "residual_norm" | "activation_std"; operation: "NEURON_REPLACE"; neuron: number; replacement: { kind: "scalar"; value: number; } | { kind: "tensor"; tensor: { artifact: { uri: string; sha256: string; sizeBytes: number; mediaType: string; }; shape: number[]; dtype: "f16" | "bf16" | "f32" | "f64" | "i8" | "i16" | "i32" | "i64" | "u8" | "bool" | "quantized"; }; }; id: string; siteId: string; tokenScope: { kind: "all"; } | { kind: "prompt"; } | { kind: "generated"; } | { kind: "positions"; positions: number[]; }; calibrationId?: string | undefined; } | { units: "raw" | "residual_norm" | "activation_std"; operation: "RESIDUAL_ADD"; vector: { artifact: { uri: string; sha256: string; sizeBytes: number; mediaType: string; }; shape: number[]; dtype: "f16" | "bf16" | "f32" | "f64" | "i8" | "i16" | "i32" | "i64" | "u8" | "bool" | "quantized"; }; scale: number; id: string; siteId: string; tokenScope: { kind: "all"; } | { kind: "prompt"; } | { kind: "generated"; } | { kind: "positions"; positions: number[]; }; calibrationId?: string | undefined; } | { operation: "DIRECTION_PROJECT"; basis: { artifact: { uri: string; sha256: string; sizeBytes: number; mediaType: string; }; shape: number[]; dtype: "f16" | "bf16" | "f32" | "f64" | "i8" | "i16" | "i32" | "i64" | "u8" | "bool" | "quantized"; }; strength: number; normalization: "orthonormal"; id: string; siteId: string; tokenScope: { kind: "all"; } | { kind: "prompt"; } | { kind: "generated"; } | { kind: "positions"; positions: number[]; }; } | { operation: "ATTENTION_HEAD_GAIN"; head: number; factor: number; id: string; siteId: string; tokenScope: { kind: "all"; } | { kind: "prompt"; } | { kind: "generated"; } | { kind: "positions"; positions: number[]; }; } | { operation: "EXPERT_GAIN"; expert: number; factor: number; id: string; siteId: string; tokenScope: { kind: "all"; } | { kind: "prompt"; } | { kind: "generated"; } | { kind: "positions"; positions: number[]; }; } | { units: "raw" | "residual_norm" | "activation_std"; operation: "EXPERT_ROUTING_BIAS"; expert: number; amount: number; id: string; siteId: string; tokenScope: { kind: "all"; } | { kind: "prompt"; } | { kind: "generated"; } | { kind: "positions"; positions: number[]; }; calibrationId?: string | undefined; } | { operation: "WEIGHT_ADD"; delta: { kind: "scalar"; value: number; } | { kind: "tensor"; tensor: { artifact: { uri: string; sha256: string; sizeBytes: number; mediaType: string; }; shape: number[]; dtype: "f16" | "bf16" | "f32" | "f64" | "i8" | "i16" | "i32" | "i64" | "u8" | "bool" | "quantized"; }; }; id: string; siteId: string; tokenScope: { kind: "all"; } | { kind: "prompt"; } | { kind: "generated"; } | { kind: "positions"; positions: number[]; }; } | { operation: "WEIGHT_GAIN"; gain: { kind: "scalar"; factor: number; } | { kind: "axis"; axis: number; factors: { artifact: { uri: string; sha256: string; sizeBytes: number; mediaType: string; }; shape: number[]; dtype: "f16" | "bf16" | "f32" | "f64" | "i8" | "i16" | "i32" | "i64" | "u8" | "bool" | "quantized"; }; }; id: string; siteId: string; tokenScope: { kind: "all"; } | { kind: "prompt"; } | { kind: "generated"; } | { kind: "positions"; positions: number[]; }; } | { operation: "WEIGHT_REPLACE"; replacement: { artifact: { uri: string; sha256: string; sizeBytes: number; mediaType: string; }; shape: number[]; dtype: "f16" | "bf16" | "f32" | "f64" | "i8" | "i16" | "i32" | "i64" | "u8" | "bool" | "quantized"; }; id: string; siteId: string; tokenScope: { kind: "all"; } | { kind: "prompt"; } | { kind: "generated"; } | { kind: "positions"; positions: number[]; }; } | { operation: "WEIGHT_PROJECT"; side: "right" | "left"; basis: { artifact: { uri: string; sha256: string; sizeBytes: number; mediaType: string; }; shape: number[]; dtype: "f16" | "bf16" | "f32" | "f64" | "i8" | "i16" | "i32" | "i64" | "u8" | "bool" | "quantized"; }; strength: number; normalization: "orthonormal"; id: string; siteId: string; tokenScope: { kind: "all"; } | { kind: "prompt"; } | { kind: "generated"; } | { kind: "positions"; positions: number[]; }; } | { operation: "LOW_RANK_UPDATE"; a: { artifact: { uri: string; sha256: string; sizeBytes: number; mediaType: string; }; shape: number[]; dtype: "f16" | "bf16" | "f32" | "f64" | "i8" | "i16" | "i32" | "i64" | "u8" | "bool" | "quantized"; }; b: { artifact: { uri: string; sha256: string; sizeBytes: number; mediaType: string; }; shape: number[]; dtype: "f16" | "bf16" | "f32" | "f64" | "i8" | "i16" | "i32" | "i64" | "u8" | "bool" | "quantized"; }; rank: number; alpha: number; scale: number; scaling: "alpha_over_rank"; id: string; siteId: string; tokenScope: { kind: "all"; } | { kind: "prompt"; } | { kind: "generated"; } | { kind: "positions"; positions: number[]; }; } | { operation: "WEIGHT_MERGE"; sources: { modelDigest: string; siteId: string; weight: number; }[]; id: string; siteId: string; tokenScope: { kind: "all"; } | { kind: "prompt"; } | { kind: "generated"; } | { kind: "positions"; positions: number[]; }; })[]; resetBefore: { schema: "omnius.nol.vllm-reset.v1"; binding: { schema: "omnius.nol.runtime.v1"; id: string; backend: "ollama" | "vllm" | "other" | "transformers" | "gne" | "llama_cpp" | "nnsight"; modelDigest: string; architectureMapDigest: string; runtimeBuildDigest: string; dependencyLockDigest: string; tokenizerDigest: string; chatTemplateDigest: string; contextLimit: number; }; epoch: number; hooks: 0; activeRequests: 0; nnsightRequests: 0; prefixCaching: false; cacheScope: "logical_fresh_request_identity"; rawKvErasureClaim: false; }; resetAfter: { schema: "omnius.nol.vllm-reset.v1"; binding: { schema: "omnius.nol.runtime.v1"; id: string; backend: "ollama" | "vllm" | "other" | "transformers" | "gne" | "llama_cpp" | "nnsight"; modelDigest: string; architectureMapDigest: string; runtimeBuildDigest: string; dependencyLockDigest: string; tokenizerDigest: string; chatTemplateDigest: string; contextLimit: number; }; epoch: number; hooks: 0; activeRequests: 0; nnsightRequests: 0; prefixCaching: false; cacheScope: "logical_fresh_request_identity"; rawKvErasureClaim: false; }; usesCache: true; cacheScope: "within_request_only_prefix_disabled"; rawKvErasureClaim: false; decoder: { kind: "pinned_incremental_replay"; implementationSha256: string; parameters: { detokenize: true; skip_special_tokens: true; spaces_between_special_tokens: true; include_stop_str_in_output: false; ignore_eos: false; stop: never[]; stop_token_ids: never[]; n: 1; }; textSha256: string; utf8Bytes: number; }; work: { schema: "omnius.nol.vllm-work.v1"; requestId: string; engineRequestId: string; activeRequestId: string | null; hooks: number; observerHooks: number; nnsightRequests: 0; registeredBlocks: 0; operations: ({ units: "raw" | "residual_norm" | "activation_std"; operation: "NEURON_ADD"; neuron: number; amount: number; id: string; siteId: string; tokenScope: { kind: "all"; } | { kind: "prompt"; } | { kind: "generated"; } | { kind: "positions"; positions: number[]; }; calibrationId?: string | undefined; } | { operation: "NEURON_GAIN"; neuron: number; factor: number; id: string; siteId: string; tokenScope: { kind: "all"; } | { kind: "prompt"; } | { kind: "generated"; } | { kind: "positions"; positions: number[]; }; } | { units: "raw" | "residual_norm" | "activation_std"; operation: "NEURON_REPLACE"; neuron: number; replacement: { kind: "scalar"; value: number; } | { kind: "tensor"; tensor: { artifact: { uri: string; sha256: string; sizeBytes: number; mediaType: string; }; shape: number[]; dtype: "f16" | "bf16" | "f32" | "f64" | "i8" | "i16" | "i32" | "i64" | "u8" | "bool" | "quantized"; }; }; id: string; siteId: string; tokenScope: { kind: "all"; } | { kind: "prompt"; } | { kind: "generated"; } | { kind: "positions"; positions: number[]; }; calibrationId?: string | undefined; } | { units: "raw" | "residual_norm" | "activation_std"; operation: "RESIDUAL_ADD"; vector: { artifact: { uri: string; sha256: string; sizeBytes: number; mediaType: string; }; shape: number[]; dtype: "f16" | "bf16" | "f32" | "f64" | "i8" | "i16" | "i32" | "i64" | "u8" | "bool" | "quantized"; }; scale: number; id: string; siteId: string; tokenScope: { kind: "all"; } | { kind: "prompt"; } | { kind: "generated"; } | { kind: "positions"; positions: number[]; }; calibrationId?: string | undefined; } | { operation: "DIRECTION_PROJECT"; basis: { artifact: { uri: string; sha256: string; sizeBytes: number; mediaType: string; }; shape: number[]; dtype: "f16" | "bf16" | "f32" | "f64" | "i8" | "i16" | "i32" | "i64" | "u8" | "bool" | "quantized"; }; strength: number; normalization: "orthonormal"; id: string; siteId: string; tokenScope: { kind: "all"; } | { kind: "prompt"; } | { kind: "generated"; } | { kind: "positions"; positions: number[]; }; } | { operation: "ATTENTION_HEAD_GAIN"; head: number; factor: number; id: string; siteId: string; tokenScope: { kind: "all"; } | { kind: "prompt"; } | { kind: "generated"; } | { kind: "positions"; positions: number[]; }; } | { operation: "EXPERT_GAIN"; expert: number; factor: number; id: string; siteId: string; tokenScope: { kind: "all"; } | { kind: "prompt"; } | { kind: "generated"; } | { kind: "positions"; positions: number[]; }; } | { units: "raw" | "residual_norm" | "activation_std"; operation: "EXPERT_ROUTING_BIAS"; expert: number; amount: number; id: string; siteId: string; tokenScope: { kind: "all"; } | { kind: "prompt"; } | { kind: "generated"; } | { kind: "positions"; positions: number[]; }; calibrationId?: string | undefined; } | { operation: "WEIGHT_ADD"; delta: { kind: "scalar"; value: number; } | { kind: "tensor"; tensor: { artifact: { uri: string; sha256: string; sizeBytes: number; mediaType: string; }; shape: number[]; dtype: "f16" | "bf16" | "f32" | "f64" | "i8" | "i16" | "i32" | "i64" | "u8" | "bool" | "quantized"; }; }; id: string; siteId: string; tokenScope: { kind: "all"; } | { kind: "prompt"; } | { kind: "generated"; } | { kind: "positions"; positions: number[]; }; } | { operation: "WEIGHT_GAIN"; gain: { kind: "scalar"; factor: number; } | { kind: "axis"; axis: number; factors: { artifact: { uri: string; sha256: string; sizeBytes: number; mediaType: string; }; shape: number[]; dtype: "f16" | "bf16" | "f32" | "f64" | "i8" | "i16" | "i32" | "i64" | "u8" | "bool" | "quantized"; }; }; id: string; siteId: string; tokenScope: { kind: "all"; } | { kind: "prompt"; } | { kind: "generated"; } | { kind: "positions"; positions: number[]; }; } | { operation: "WEIGHT_REPLACE"; replacement: { artifact: { uri: string; sha256: string; sizeBytes: number; mediaType: string; }; shape: number[]; dtype: "f16" | "bf16" | "f32" | "f64" | "i8" | "i16" | "i32" | "i64" | "u8" | "bool" | "quantized"; }; id: string; siteId: string; tokenScope: { kind: "all"; } | { kind: "prompt"; } | { kind: "generated"; } | { kind: "positions"; positions: number[]; }; } | { operation: "WEIGHT_PROJECT"; side: "right" | "left"; basis: { artifact: { uri: string; sha256: string; sizeBytes: number; mediaType: string; }; shape: number[]; dtype: "f16" | "bf16" | "f32" | "f64" | "i8" | "i16" | "i32" | "i64" | "u8" | "bool" | "quantized"; }; strength: number; normalization: "orthonormal"; id: string; siteId: string; tokenScope: { kind: "all"; } | { kind: "prompt"; } | { kind: "generated"; } | { kind: "positions"; positions: number[]; }; } | { operation: "LOW_RANK_UPDATE"; a: { artifact: { uri: string; sha256: string; sizeBytes: number; mediaType: string; }; shape: number[]; dtype: "f16" | "bf16" | "f32" | "f64" | "i8" | "i16" | "i32" | "i64" | "u8" | "bool" | "quantized"; }; b: { artifact: { uri: string; sha256: string; sizeBytes: number; mediaType: string; }; shape: number[]; dtype: "f16" | "bf16" | "f32" | "f64" | "i8" | "i16" | "i32" | "i64" | "u8" | "bool" | "quantized"; }; rank: number; alpha: number; scale: number; scaling: "alpha_over_rank"; id: string; siteId: string; tokenScope: { kind: "all"; } | { kind: "prompt"; } | { kind: "generated"; } | { kind: "positions"; positions: number[]; }; } | { operation: "WEIGHT_MERGE"; sources: { modelDigest: string; siteId: string; weight: number; }[]; id: string; siteId: string; tokenScope: { kind: "all"; } | { kind: "prompt"; } | { kind: "generated"; } | { kind: "positions"; positions: number[]; }; })[]; forwardPositions: number; forwards: number; sampledTokens: number; sampledTokenIds: number[]; hookCalls: number; witnesses: number; paddedPositions: number; positions: number[]; }; performance: { schema: "omnius.nol.vllm-performance.v1"; statsEnabled: true; facts: { arrival_time: number; queued_ts: number; scheduled_ts: number; first_token_ts: number; last_token_ts: number; first_token_latency: number; num_generation_tokens: number; is_corrupted: false; } | null; arrivalClock: "frontend_wall_time_seconds"; eventClock: "engine_core_monotonic_seconds"; queueSeconds: number | null; prefillSeconds: number | null; decodeSeconds: number | null; ttftSeconds: number | null; engineWallSeconds: number; engineWallDefinition: "monotonic_add_request_through_final_synchronous_step_including_observers_excluding_decoder_replay_and_reset"; nativePhaseDefinition: "vllm_0.27.1_request_state_stats_prefill_and_decode_include_preemptions"; missingTimestampMeaning: "none_or_zero_native_timestamp_is_unavailable_not_zero_latency"; memory: { schema: "omnius.nol.vllm-cuda-allocator.v1"; logicalDevice: 0; gpuUuid: string; allocatorBackend: "native"; allocatedBytes: number; reservedBytes: number; currentEpochPeakAllocatedBytes: number; observedWorkerPeakAllocatedBytes: number; observedPublicPeakResetCalls: number; scope: "process_torch_cuda_allocator_observed_cumulative_peak_including_load_warmup_and_prior_requests"; peakDefinition: "maximum_before_source_reviewed_public_peak_resets_and_current_snapshot_not_driver_or_per_trial_kernel_peak"; } | null; memoryUnavailableReason: "native_cuda_allocator_snapshot_unavailable" | null; }; engineSteps: number; nativeConformance: "unverified"; capabilityAuthority: "none"; }; }; resetProof: { uri: string; sha256: string; sizeBytes: number; mediaType: string; }; placement: NolCudaPlacement; placementProof: { uri: string; sha256: string; sizeBytes: number; mediaType: string; }; driver: string; startupPerformance: { uri: string; sha256: string; sizeBytes: number; mediaType: string; }; }>; stop(reason?: unknown): void; settle(artifacts?: NolArtifactPublisher): Promise; private finish; } export declare function buildNolVllmCapabilities(input: { binding: NolRuntimeBinding; source: NolVllmSource; conformanceEvidence: NolArtifactRef; }): NolBackendCapabilities; export interface NolVllmAdapterOptions extends NolVllmHostOptions { artifacts: { readBytes(ref: NolArtifactRef, signal?: AbortSignal): Promise; }; conformance: NolVllmConformanceAuthority; } export declare function observeNolVllmHistoricalCustody(options: Pick, identity: Ownership, signal?: AbortSignal): Promise<{ settled: boolean; observation: NolOrphanProbeResult; }>; /** Prompt-independent ideal additive operand norm only. BF16 realization is * observed in conformance and never asserted to equal this ideal norm. */ export declare function prepareNolVllmRawControls(recipe: NolRecipeRevision, model: NolModelManifest, seeds: readonly number[], evidence?: NolArtifactRef): ({ candidateRecipeDigest: string; arm: "sham"; recipe: null; proof: { schema: string; source: string; candidateRecipeDigest: string; kind: string; candidateOperandL2: number; controlOperandL2: number; normSpace: string; realizedNormEqualityClaim: boolean; conformanceEvidence: { uri: string; sha256: string; sizeBytes: number; mediaType: string; } | null; }; } | { candidateRecipeDigest: string; arm: "random"; randomSeed: number; recipe: { schema: "omnius.nol.recipe.v1"; id: string; revision: number; recipeDigest: string; modelDigest: string; architectureMapDigest: string; parentModelDigests: string[]; operations: ({ units: "raw" | "residual_norm" | "activation_std"; operation: "NEURON_ADD"; neuron: number; amount: number; id: string; siteId: string; tokenScope: { kind: "all"; } | { kind: "prompt"; } | { kind: "generated"; } | { kind: "positions"; positions: number[]; }; calibrationId?: string | undefined; } | { operation: "NEURON_GAIN"; neuron: number; factor: number; id: string; siteId: string; tokenScope: { kind: "all"; } | { kind: "prompt"; } | { kind: "generated"; } | { kind: "positions"; positions: number[]; }; } | { units: "raw" | "residual_norm" | "activation_std"; operation: "NEURON_REPLACE"; neuron: number; replacement: { kind: "scalar"; value: number; } | { kind: "tensor"; tensor: { artifact: { uri: string; sha256: string; sizeBytes: number; mediaType: string; }; shape: number[]; dtype: "f16" | "bf16" | "f32" | "f64" | "i8" | "i16" | "i32" | "i64" | "u8" | "bool" | "quantized"; }; }; id: string; siteId: string; tokenScope: { kind: "all"; } | { kind: "prompt"; } | { kind: "generated"; } | { kind: "positions"; positions: number[]; }; calibrationId?: string | undefined; } | { units: "raw" | "residual_norm" | "activation_std"; operation: "RESIDUAL_ADD"; vector: { artifact: { uri: string; sha256: string; sizeBytes: number; mediaType: string; }; shape: number[]; dtype: "f16" | "bf16" | "f32" | "f64" | "i8" | "i16" | "i32" | "i64" | "u8" | "bool" | "quantized"; }; scale: number; id: string; siteId: string; tokenScope: { kind: "all"; } | { kind: "prompt"; } | { kind: "generated"; } | { kind: "positions"; positions: number[]; }; calibrationId?: string | undefined; } | { operation: "DIRECTION_PROJECT"; basis: { artifact: { uri: string; sha256: string; sizeBytes: number; mediaType: string; }; shape: number[]; dtype: "f16" | "bf16" | "f32" | "f64" | "i8" | "i16" | "i32" | "i64" | "u8" | "bool" | "quantized"; }; strength: number; normalization: "orthonormal"; id: string; siteId: string; tokenScope: { kind: "all"; } | { kind: "prompt"; } | { kind: "generated"; } | { kind: "positions"; positions: number[]; }; } | { operation: "ATTENTION_HEAD_GAIN"; head: number; factor: number; id: string; siteId: string; tokenScope: { kind: "all"; } | { kind: "prompt"; } | { kind: "generated"; } | { kind: "positions"; positions: number[]; }; } | { operation: "EXPERT_GAIN"; expert: number; factor: number; id: string; siteId: string; tokenScope: { kind: "all"; } | { kind: "prompt"; } | { kind: "generated"; } | { kind: "positions"; positions: number[]; }; } | { units: "raw" | "residual_norm" | "activation_std"; operation: "EXPERT_ROUTING_BIAS"; expert: number; amount: number; id: string; siteId: string; tokenScope: { kind: "all"; } | { kind: "prompt"; } | { kind: "generated"; } | { kind: "positions"; positions: number[]; }; calibrationId?: string | undefined; } | { operation: "WEIGHT_ADD"; delta: { kind: "scalar"; value: number; } | { kind: "tensor"; tensor: { artifact: { uri: string; sha256: string; sizeBytes: number; mediaType: string; }; shape: number[]; dtype: "f16" | "bf16" | "f32" | "f64" | "i8" | "i16" | "i32" | "i64" | "u8" | "bool" | "quantized"; }; }; id: string; siteId: string; tokenScope: { kind: "all"; } | { kind: "prompt"; } | { kind: "generated"; } | { kind: "positions"; positions: number[]; }; } | { operation: "WEIGHT_GAIN"; gain: { kind: "scalar"; factor: number; } | { kind: "axis"; axis: number; factors: { artifact: { uri: string; sha256: string; sizeBytes: number; mediaType: string; }; shape: number[]; dtype: "f16" | "bf16" | "f32" | "f64" | "i8" | "i16" | "i32" | "i64" | "u8" | "bool" | "quantized"; }; }; id: string; siteId: string; tokenScope: { kind: "all"; } | { kind: "prompt"; } | { kind: "generated"; } | { kind: "positions"; positions: number[]; }; } | { operation: "WEIGHT_REPLACE"; replacement: { artifact: { uri: string; sha256: string; sizeBytes: number; mediaType: string; }; shape: number[]; dtype: "f16" | "bf16" | "f32" | "f64" | "i8" | "i16" | "i32" | "i64" | "u8" | "bool" | "quantized"; }; id: string; siteId: string; tokenScope: { kind: "all"; } | { kind: "prompt"; } | { kind: "generated"; } | { kind: "positions"; positions: number[]; }; } | { operation: "WEIGHT_PROJECT"; side: "right" | "left"; basis: { artifact: { uri: string; sha256: string; sizeBytes: number; mediaType: string; }; shape: number[]; dtype: "f16" | "bf16" | "f32" | "f64" | "i8" | "i16" | "i32" | "i64" | "u8" | "bool" | "quantized"; }; strength: number; normalization: "orthonormal"; id: string; siteId: string; tokenScope: { kind: "all"; } | { kind: "prompt"; } | { kind: "generated"; } | { kind: "positions"; positions: number[]; }; } | { operation: "LOW_RANK_UPDATE"; a: { artifact: { uri: string; sha256: string; sizeBytes: number; mediaType: string; }; shape: number[]; dtype: "f16" | "bf16" | "f32" | "f64" | "i8" | "i16" | "i32" | "i64" | "u8" | "bool" | "quantized"; }; b: { artifact: { uri: string; sha256: string; sizeBytes: number; mediaType: string; }; shape: number[]; dtype: "f16" | "bf16" | "f32" | "f64" | "i8" | "i16" | "i32" | "i64" | "u8" | "bool" | "quantized"; }; rank: number; alpha: number; scale: number; scaling: "alpha_over_rank"; id: string; siteId: string; tokenScope: { kind: "all"; } | { kind: "prompt"; } | { kind: "generated"; } | { kind: "positions"; positions: number[]; }; } | { operation: "WEIGHT_MERGE"; sources: { modelDigest: string; siteId: string; weight: number; }[]; id: string; siteId: string; tokenScope: { kind: "all"; } | { kind: "prompt"; } | { kind: "generated"; } | { kind: "positions"; positions: number[]; }; })[]; calibrations: { schema: "omnius.nol.calibration.v1"; id: string; modelDigest: string; architectureMapDigest: string; units: "raw" | "residual_norm" | "activation_std"; definitionDigest: string; siteScales: { siteId: string; scale: number; }[]; corpusDigest?: string | undefined; tokenPositionsDigest?: string | undefined; statistics?: { uri: string; sha256: string; sizeBytes: number; mediaType: string; } | undefined; }[]; createdAt: string; provenance: { source: string; uri?: string | undefined; sourceDigest?: string | undefined; license?: string | undefined; artifact?: { uri: string; sha256: string; sizeBytes: number; mediaType: string; } | undefined; }[]; approximateLoweringAcknowledged?: true | undefined; }; proof: { schema: string; source: string; candidateRecipeDigest: string; kind: string; seed: number; candidateOperandL2: number; controlOperandL2: number; normSpace: string; realizedNormEqualityClaim: boolean; operations: { neuron: number; amount: number; units: "raw" | "residual_norm" | "activation_std"; operation: "NEURON_ADD"; id: string; siteId: string; tokenScope: { kind: "all"; } | { kind: "prompt"; } | { kind: "generated"; } | { kind: "positions"; positions: number[]; }; calibrationId?: string | undefined; }[]; conformanceEvidence: { uri: string; sha256: string; sizeBytes: number; mediaType: string; } | null; }; })[]; export declare class NolVllmAdapter implements NolComputeAdapter { private readonly options; private active?; private readonly preparations; constructor(options: NolVllmAdapterOptions); private preparation; private validated; verifyInterventions(input: NolFrozenExperimentInput, context: NolComputeContext): Promise; prepareControls(input: NolFrozenExperimentInput, context: NolComputeContext): Promise; verifyControls(input: NolFrozenExperiment, context: NolComputeContext): Promise; preflight(input: NolFrozenExperiment, context: NolComputeContext): Promise; private start; private owned; private trial; countPromptTokens(request: NolComputeTrialRequest): Promise; reset(input: { binding: NolRuntimeBinding; context: NolComputeContext; }): Promise; executeTrial(request: NolComputeTrialRequest): Promise; settle(input: Parameters[0]): Promise; } export {};