Architecture validation
LlamaModelConfig derives graph dimensions from GGUF metadata and validates head counts, dimensions, context, vocabulary, RoPE, and normalization requirements before execution.
UAIX.LmRuntime / Package guide
LLaMA-family configuration, tensor binding, mapped weight sources, reference forward execution, sessions, KV cache, generation, persistence, and parity evidence.
Required For LLaMA graph/session internals
UAIX.LmRuntime.Models.Llama
LLaMA-family configuration, tensor binding, mapped weight sources, reference forward execution, sessions, KV cache, generation, persistence, and parity evidence.
LLaMA-family graph configuration and reference forward-pass primitives for pure C# local LLM runtime inference.
dotnet add package UAIX.LmRuntime.Models.Llama
<PackageReference Include="UAIX.LmRuntime.Models.Llama" />
Version policy: The documentation deliberately omits UAIX.LmRuntime package version numbers. Resolve and pin versions through your normal dependency-management and lock-file process.
Review the current package metadata, frameworks, dependencies, and downloads on NuGet ↗
LlamaModelConfig derives graph dimensions from GGUF metadata and validates head counts, dimensions, context, vocabulary, RoPE, and normalization requirements before execution.
Required tensor roles, storage kinds, ownership, diagnostics, and manifests make missing, duplicate, incompatible, or unexpectedly materialized weights observable.
Reference sessions own position, logits, and KV-cache state. Callers choose reset behavior and can capture, serialize, fingerprint, restore, or discard state under bounded policies.
These are the main entry points for this package. The generated reference below includes every documented type and member represented by public package XML documentation.
LlamaModelConfig
LlamaMappedModelLoader
LlamaMappedModel
LlamaMappedReferenceSession
LlamaReferenceSession
LlamaTensorBinder
TensorBindingManifest
ReferenceKvCache
ReferenceKvCacheSerializer
LlamaSessionArtifactSerializer
LlamaStorageParityRunner
RealModelSmokeRunner
Examples use public package signatures documented on LMRuntime.com. Model paths, hashes, byte counts, prompts, and host-specific identifiers remain application inputs.
Separate container parsing from architecture-specific configuration checks.
using UAIX.LmRuntime.Gguf;
using UAIX.LmRuntime.Models.Llama;
GgufModel gguf = GgufReader.Read(
"models/model.gguf",
new GgufParseOptions());
LlamaModelConfig configuration =
LlamaModelConfig.FromGguf(gguf);
configuration.Validate();
Console.WriteLine($"Model: {configuration.ModelName}");
Console.WriteLine($"Layers: {configuration.BlockCount}");
Console.WriteLine($"Embedding: {configuration.EmbeddingLength}");
Console.WriteLine($"Heads: {configuration.AttentionHeadCount}");
Console.WriteLine($"KV heads: {configuration.AttentionKeyValueHeadCount}");
Console.WriteLine($"Context: {configuration.ContextLength}");
Use direct mapped execution for diagnostics, model validation, and deterministic one-token evidence.
using UAIX.LmRuntime.Models.Llama;
var loader = new LlamaMappedModelLoader();
using LlamaMappedModel model = loader.Load(
"models/model.gguf",
new LlamaMappedModelLoadOptions
{
RuntimeMode = LlamaRuntimeMode.DeterministicParity,
ComputeModelSha256 = true
});
using LlamaMappedReferenceSession session =
model.CreateReferenceSession();
LlamaMappedGreedyTokenResult result =
session.DecodeOneGreedy(
"Hello",
new LlamaOneTokenOptions
{
ResetSession = true,
ParseSpecialTokens = false,
AddSpecialTokens = true,
EmitTokenizerTrace = false
});
Console.WriteLine($"{result.TokenId}: {result.TokenText}");
Console.WriteLine($"Selected logit: {result.SelectedLogit}");
Console.WriteLine($"Position: {result.Position}");
Bound output allocation and observe each committed token.
using UAIX.LmRuntime.Models.Llama;
using UAIX.LmRuntime.Tokenization;
public static class MappedGenerationExample
{
/// <summary>
/// Generates greedy tokens into caller-owned buffers and observes each committed selection.
/// </summary>
/// <param name="model">The loaded mapped model that defines vocabulary capacity.</param>
/// <param name="session">The isolated mapped reference session.</param>
/// <param name="prompt">The prompt to tokenize and prefill.</param>
/// <param name="maximumTokens">The maximum number of output tokens.</param>
/// <param name="cancellationToken">A token observed between committed model steps.</param>
/// <returns>The bounded greedy-generation result.</returns>
public static LlamaGreedyGenerationResult Generate(
LlamaMappedModel model,
LlamaMappedReferenceSession session,
string prompt,
int maximumTokens,
CancellationToken cancellationToken)
{
ArgumentNullException.ThrowIfNull(model);
ArgumentNullException.ThrowIfNull(session);
ArgumentException.ThrowIfNullOrWhiteSpace(prompt);
ArgumentOutOfRangeException.ThrowIfNegativeOrZero(maximumTokens);
int[] generatedTokenIds = new int[maximumTokens];
float[] finalLogits = new float[model.Configuration.VocabularySize];
return session.GenerateGreedy(
prompt,
generatedTokenIds,
finalLogits,
new LlamaGreedyGenerationOptions
{
MaximumTokens = maximumTokens,
ResetSession = true,
EndOfSequenceTokenId = null,
StopTokenIds = Array.Empty<int>()
},
new TokenizationOptions
{
AddSpecialTokens = true,
ParseSpecialTokens = false
},
token => Console.WriteLine(
$"{token.Sequence}: {token.TokenId} ({token.SelectedLogit})"),
cancellationToken);
}
}
Exercise reference execution without depending on an external model artifact.
using UAIX.LmRuntime.Models.Llama;
LlamaReferenceFixture fixture =
LlamaReferenceFixtureFactory.CreateDeterministic();
LlamaReferenceSession session = fixture.CreateSession();
LlamaGreedyTokenResult result = session.DecodeOneGreedy(
fixture.PromptTokenIds,
resetSession: true);
Console.WriteLine($"Token: {result.TokenId}");
Console.WriteLine($"Position: {result.Position}");
Bind persisted state to model, configuration, tokenizer, and cache-layout fingerprints, and enforce a maximum artifact size.
using UAIX.LmRuntime.Models.Llama;
public static class SessionPersistenceExample
{
/// <summary>
/// Saves a mapped reference session and immediately reloads the authenticated artifact.
/// </summary>
/// <param name="model">The mapped model that supplies model identity evidence.</param>
/// <param name="session">The session whose deterministic state will be persisted.</param>
/// <param name="statePath">The destination path for the session artifact.</param>
/// <param name="configurationFingerprint">The host-computed configuration fingerprint.</param>
/// <param name="tokenizerFingerprint">The host-computed tokenizer fingerprint.</param>
/// <param name="cacheLayoutFingerprint">The host-computed cache-layout fingerprint.</param>
/// <returns>The authenticated artifact loaded from disk.</returns>
public static LlamaSessionArtifact SaveAndReload(
LlamaMappedModel model,
LlamaMappedReferenceSession session,
string statePath,
string configurationFingerprint,
string tokenizerFingerprint,
string cacheLayoutFingerprint)
{
ArgumentNullException.ThrowIfNull(model);
ArgumentNullException.ThrowIfNull(session);
ArgumentException.ThrowIfNullOrWhiteSpace(statePath);
string? directory = Path.GetDirectoryName(
Path.GetFullPath(statePath));
if (!string.IsNullOrEmpty(directory))
{
Directory.CreateDirectory(directory);
}
var persistence = new LlamaSessionPersistenceOptions
{
ModelSha256 = model.Manifest.ModelSha256,
ConfigurationFingerprint = configurationFingerprint,
TokenizerFingerprint = tokenizerFingerprint,
CacheLayoutFingerprint = cacheLayoutFingerprint,
SamplerMode = "greedy",
GeneratedUtc = DateTimeOffset.UtcNow,
ClaimStatus = "local-evidence",
MaximumByteCount = 64 * 1024 * 1024
};
session.SaveState(statePath, persistence);
return session.LoadState(
statePath,
maximumByteCount: persistence.MaximumByteCount);
}
}
Boundary: The caller supplies and validates compatibility fingerprints; persisted state should be treated as model-bound untrusted input.
Expand a type to review its documented fields, properties, constructors, methods, parameter descriptions, and return descriptions. Browser Find also works across the closed detail elements.
ArrayLlamaLayerWeightSourceUAIX.LmRuntime.Models.Llama
10 members
Provides one array-backed LLaMA layer weight source.
AttentionKey
AttentionNorm
AttentionOutput
AttentionQuery
AttentionValue
FeedForwardDown
FeedForwardGate
FeedForwardNorm
FeedForwardUp
ArrayLlamaLayerWeightSource(int,UAIX.LmRuntime.Models.Llama.LlamaReferenceLayerWeights,UAIX.LmRuntime.Models.Llama.LlamaModelConfig)
Initializes a new ArrayLlamaLayerWeightSource instance with validated dependencies and operational bounds.
blockIndexweightsconfigArrayLlamaModelWeightSourceUAIX.LmRuntime.Models.Llama
10 members
Adapts the v1.8.0 float-array model to the storage-neutral v1.9.0 execution contracts.
Layers
ManagedCopiedByteCount
OutputNorm
OutputProjection
StorageDiagnostics
StorageSummary
TokenEmbeddings
UsesTiedOutputProjection
ArrayLlamaModelWeightSource(UAIX.LmRuntime.Models.Llama.LlamaModelConfig,UAIX.LmRuntime.Models.Llama.LlamaReferenceModelWeights)
Initializes a new ArrayLlamaModelWeightSource instance with validated dependencies and operational bounds.
configweightsCreate(UAIX.LmRuntime.Models.Llama.LlamaModelConfig,UAIX.LmRuntime.Models.Llama.LlamaReferenceModelWeights)
Creates an array-backed source after validating its complete model contract.
configweightsReturns: The array-backed source, with ownership and disposal obligations defined by the returned type and the Create contract.
ArrayMatrixSourceUAIX.LmRuntime.Models.Llama
9 members
Provides an immutable row-major array-backed matrix adapter for compatibility and deterministic fixtures.
ColumnCount
DataType
RowCount
StorageDiagnostics
StorageType
TensorName
Gets the semantic tensor name.
ArrayMatrixSource(string,float[],int,int)
Initializes a new ArrayMatrixSource instance with validated dependencies and operational bounds.
tensorNamevaluesrowCountcolumnCountCopyRowTo(int,System.Span<float>)
Copies the row to into caller-owned storage after validating the requested range and capacity.
rowIndexdestinationMultiply(System.ReadOnlySpan<float>,System.Span<float>)
Multiplies the supplied vector by the supplied vector without changing logical row order.
vectoroutputArrayVectorSourceUAIX.LmRuntime.Models.Llama
7 members
Provides an immutable array-backed vector adapter for compatibility and deterministic fixtures.
DataType
Length
StorageDiagnostics
StorageType
TensorName
Gets the semantic tensor name.
ArrayVectorSource(string,float[])
Initializes a new ArrayVectorSource instance with validated dependencies and operational bounds.
tensorNamevaluesCopyTo(System.Span<float>)
Copies the to into caller-owned storage after validating the requested range and capacity.
destinationFixtureDirectoryVerifierUAIX.LmRuntime.Models.Llama
1 member
Verifies fixture manifests, artifact paths, digests, and basic loadability without network access.
Verify(string)
Verifies the supplied fixture directory and returns bounded evidence only after every required check succeeds.
fixtureDirectoryReturns: The FixtureVerificationResult result produced by FixtureDirectoryVerifier.Verify for this contract: Verifies the supplied fixture directory and returns bounded evidence only after every required check succeeds. It is published only after all documented validation and ownership transitions succeed.
FixtureVerificationDiagnosticUAIX.LmRuntime.Models.Llama
2 members
Represents one diagnostic emitted while verifying a checked-in GGUF fixture directory.
Code
Gets the stable diagnostic code.
Message
Gets the diagnostic message.
FixtureVerificationResultUAIX.LmRuntime.Models.Llama
5 members
Represents the result of bounded, offline fixture directory verification.
ArtifactPath
Gets the normalized GGUF artifact path.
ArtifactSha256
Gets the verified SHA-256 digest.
Diagnostics
Gets verification diagnostics.
FixtureDirectory
Gets the normalized fixture directory.
IsValid
Gets whether no verification diagnostics were emitted.
GroupedQueryAttentionMapUAIX.LmRuntime.Models.Llama
1 member
Maps query heads to grouped key/value heads.
MapHead(int,int,int)
Maps an attention query head to the corresponding KV head.
queryHeadqueryHeadCountkeyValueHeadCountReturns: The int value computed by GroupedQueryAttentionMap.MapHead for this contract: Maps an attention query head to the corresponding KV head. Range, finite-value, and overflow checks are completed before the value is returned.
ILlamaLayerWeightSourceUAIX.LmRuntime.Models.Llama
9 members
Exposes immutable weights required by one LLaMA transformer block.
AttentionKey
Gets the key projection matrix.
AttentionNorm
Gets the attention normalization vector.
AttentionOutput
Gets the attention output projection matrix.
AttentionQuery
Gets the query projection matrix.
AttentionValue
Gets the value projection matrix.
FeedForwardDown
Gets the feed-forward down projection matrix.
FeedForwardGate
Gets the feed-forward gate projection matrix.
FeedForwardNorm
Gets the feed-forward normalization vector.
FeedForwardUp
Gets the feed-forward up projection matrix.
ILlamaModelWeightSourceUAIX.LmRuntime.Models.Llama
8 members
Exposes immutable model weights required by the deterministic LLaMA reference session.
Layers
Gets transformer-block weights in execution order.
ManagedCopiedByteCount
Gets persistent managed model-weight bytes represented by this source.
OutputNorm
Gets the final output normalization vector.
OutputProjection
Gets the output projection matrix.
StorageDiagnostics
Gets storage diagnostics for every distinct semantic source.
StorageSummary
Gets a stable summary of physical storage types used by the model.
TokenEmbeddings
Gets the token embedding table.
UsesTiedOutputProjection
Gets a value indicating whether output projection aliases token embeddings.
ILlamaSessionUAIX.LmRuntime.Models.Llama
1 member
Defines the lifecycle for a LLaMA-family inference session.
DecodeAsync(int,System.Threading.CancellationToken)
Decodes the next token for the active sequence.
tokenIdcancellationTokenReturns: An asynchronous ValueTask<int> that completes with the result of ILlamaSession.DecodeAsync: Decodes the next token for the active sequence. Fault and cancellation states are propagated without a successful partial result.
IReadOnlyMatrixSourceUAIX.LmRuntime.Models.Llama
7 members
Exposes an immutable logical row-major matrix without requiring a particular storage representation.
ColumnCount
Gets the logical column count.
DataType
Gets the logical runtime data type.
RowCount
Gets the logical row count.
StorageDiagnostics
Gets immutable storage diagnostics.
StorageType
Gets the physical GGML storage type.
CopyRowTo(int,System.Span<float>)
Copies and, when required, dequantizes one logical row into a caller-owned float32 destination.
rowIndexdestinationMultiply(System.ReadOnlySpan<float>,System.Span<float>)
Multiplies this matrix by a float32 vector without materializing a complete float32 matrix.
vectoroutputIReadOnlyVectorSourceUAIX.LmRuntime.Models.Llama
5 members
Exposes an immutable logical vector without requiring a particular storage representation.
DataType
Gets the logical runtime data type.
Length
Gets the logical vector length.
StorageDiagnostics
Gets immutable storage diagnostics.
StorageType
Gets the physical GGML storage type.
CopyTo(System.Span<float>)
Copies every vector value into a caller-owned float32 destination.
destinationIReferenceKvCacheUAIX.LmRuntime.Models.Llama
13 members
Defines a typed, deterministic key/value cache contract for the scalar LLaMA reference runtime.
ConfigurationFingerprint
Gets the configuration fingerprint required by compatible snapshots.
ContextLength
Gets the maximum sequence capacity.
HeadWidth
Gets the float width of one key/value head.
KeyValueHeadCount
Gets the number of key/value heads per layer.
LayerCount
Gets the number of transformer layers.
UsedTokenCount
Gets the highest contiguous token position written plus one.
WriteBehavior
Gets the deterministic append-versus-overwrite behavior.
CreateSnapshot
Creates a bounded snapshot for tiny-fixture testing and replay.
Returns: The immutable cache snapshot, with ownership and disposal obligations defined by the returned type and the CreateSnapshot contract.
GetKey(int,int,int)
Retrieves the key from the current cache state after validating the requested access.
layerIndexpositionheadIndexReturns: The bounded ReadOnlySpan<float> view produced by IReferenceKvCache.GetKey: Retrieves the key from the current cache state after validating the requested access. Its lifetime and ownership remain tied to the owner identified by the containing type; no out-of-range region is exposed.
GetValue(int,int,int)
Retrieves the value from the current cache state after validating the requested access.
layerIndexpositionheadIndexReturns: The bounded ReadOnlySpan<float> view produced by IReferenceKvCache.GetValue: Retrieves the value from the current cache state after validating the requested access. Its lifetime and ownership remain tied to the owner identified by the containing type; no out-of-range region is exposed.
Reset
Resets the requested state to its validated initial state without publishing partial state.
Restore(UAIX.LmRuntime.Models.Llama.ReferenceKvCacheSnapshot)
Restores the supplied snapshot from a validated persisted representation.
snapshotWrite(int,int,System.ReadOnlySpan<float>,System.ReadOnlySpan<float>)
Appends or replaces one layer's key and value vectors at a sequence position.
layerIndexpositionkeyvalueLlamaBoundLayerWeightSetUAIX.LmRuntime.Models.Llama
10 members
Represents the mapped tensors required by one LLaMA transformer block.
AttentionKey
Gets the key projection tensor.
AttentionNorm
Gets the attention normalization tensor.
AttentionOutput
Gets the attention output projection tensor.
AttentionQuery
Gets the query projection tensor.
AttentionValue
Gets the value projection tensor.
BlockIndex
Gets the zero-based transformer block index.
FeedForwardDown
Gets the feed-forward down projection tensor.
FeedForwardGate
Gets the feed-forward gate projection tensor.
FeedForwardNorm
Gets the feed-forward normalization tensor.
FeedForwardUp
Gets the feed-forward up projection tensor.
LlamaBoundTensorUAIX.LmRuntime.Models.Llama
5 members
Represents one semantic LLaMA weight bound to mapped model storage.
Binding
Gets the validated binding manifest entry.
BlockIndex
Gets the optional transformer block index.
Role
Gets the semantic tensor role.
StorageMode
Gets the storage mode represented by this binding.
View
Gets the borrowed mapped tensor view.
LlamaBoundWeightSetUAIX.LmRuntime.Models.Llama
11 members
Resolves a complete LLaMA binding manifest into stable mapped tensor views.
This object does not own the operating-system mapping. Every view borrows storage from the supplied UAIX.LmRuntime.Gguf.MappedGgufFile and becomes invalid when that mapping is disposed.
Bindings
Gets all semantic mapped tensor bindings.
Configuration
Gets the validated model configuration.
Layers
Gets the block-local mapped weight sets.
Manifest
Gets the complete tensor binding manifest.
Mapping
Gets the mapping that owns all borrowed tensor bytes.
Output
Gets the output projection tensor or tied embedding alias.
OutputNorm
Gets the final output normalization tensor.
TokenEmbeddings
Gets the token embedding tensor.
Get(UAIX.LmRuntime.Models.Llama.LlamaTensorRole,System.Nullable<int>)
Retrieves the llama bound tensor from the current LlamaBoundWeightSet state after validating the requested access.
roleblockIndexReturns: The LlamaBoundTensor result produced by LlamaBoundWeightSet.Get for this contract: Retrieves the llama bound tensor from the current LlamaBoundWeightSet state after validating the requested access. It is published only after all documented validation and ownership transitions succeed.
LlamaBoundWeightSet(UAIX.LmRuntime.Gguf.MappedGgufFile,UAIX.LmRuntime.Models.Llama.TensorBindingManifest,UAIX.LmRuntime.Models.Llama.LlamaModelConfig)
Initializes a mapped LLaMA weight set from a complete binding manifest.
mappingmanifestconfigMaterializeFloat32ReferenceWeights(int)
Materializes bounded float32 arrays for the scalar correctness runtime.
maximumCopiedBytesReturns: The immutable reference weights and explicit copy ledger.
LlamaGeneratedTokenUAIX.LmRuntime.Models.Llama
4 members
Describes one token selected during deterministic greedy generation.
The value contains only a zero-based sequence number, token identifier, and selected logit. It does not contain prompt text, decoded output, model bytes, file paths, persistent state, or provider information.
SelectedLogit
Gets the selected token's deterministic argmax logit.
Sequence
Gets the zero-based token-selection sequence.
TokenId
Gets the selected model vocabulary identifier.
LlamaGeneratedToken(int,int,float)
Initializes a new LlamaGeneratedToken instance with validated dependencies and operational bounds.
sequencetokenIdselectedLogitLlamaGenerationStopReasonUAIX.LmRuntime.Models.Llama
5 members
Identifies why deterministic greedy generation stopped.
Cancelled
Cooperative cancellation was observed between committed inference steps.
ContextCapacity
The model context window could not accept another evaluated token.
EndOfSequence
The configured end-of-sequence token was selected.
MaximumTokens
The requested maximum number of tokens was produced.
StopToken
A caller-configured stop token was selected.
LlamaGreedyGenerationOptionsUAIX.LmRuntime.Models.Llama
4 members
Defines allocation-bounded deterministic greedy generation controls.
EndOfSequenceTokenId
Gets the optional end-of-sequence token identifier.
MaximumTokens
Gets the maximum number of generated tokens.
ResetSession
Gets whether the session is reset before prompt prefill.
StopTokenIds
Gets additional token identifiers that terminate generation after being emitted.
LlamaGreedyGenerationResultUAIX.LmRuntime.Models.Llama
5 members
Describes an allocation-bounded greedy generation operation.
FinalSelectedLogit
Gets the selected logit of the final generated token, or negative infinity when none was generated.
GeneratedTokenCount
Gets the number of generated token identifiers written to the caller buffer.
Position
Gets the next sequence position maintained by the session.
PromptTokenCount
Gets the number of prompt tokens evaluated for this operation.
StopReason
Gets the deterministic stop reason.
LlamaGreedyTokenResultUAIX.LmRuntime.Models.Llama
5 members
Represents exactly one greedily selected token produced by the reference runtime.
Position
Gets the zero-based position whose logits selected this token.
PromptTokenCount
Gets the number of prompt tokens evaluated.
SelectedLogit
Gets the selected token logit.
TokenId
Gets the selected token identifier.
TokenText
Gets the selected token text when a tokenizer is attached.
LlamaLayerWeightsUAIX.LmRuntime.Models.Llama
3 members
Represents one transformer block's reference weights.
AttentionKey
Gets the attention key projection matrix.
AttentionQuery
Gets the attention query projection matrix.
AttentionValue
Gets the attention value projection matrix.
LlamaLogitComparatorUAIX.LmRuntime.Models.Llama
1 member
Compares deterministic next-token vectors without widening caller-provided tolerances.
Compare(System.Collections.Generic.IReadOnlyList<float>,System.Collections.Generic.IReadOnlyList<float>,UAIX.LmRuntime.Models.Llama.LlamaParityTolerance)
Compares two logit vectors using absolute-or-relative error acceptance.
referencecandidatetoleranceReturns: The LlamaLogitComparison result produced by LlamaLogitComparator.Compare for this contract: Compares two logit vectors using absolute-or-relative error acceptance. It is published only after all documented validation and ownership transitions succeed.
LlamaLogitComparisonUAIX.LmRuntime.Models.Llama
6 members
Summarizes a deterministic comparison of two next-token logit vectors.
FirstFailingCandidateValue
Gets the candidate value at the first failing index.
FirstFailingIndex
Gets the first failing logit index, or when none failed.
FirstFailingReferenceValue
Gets the reference value at the first failing index.
IsWithinTolerance
Gets whether every compared logit satisfies the configured tolerance.
MaximumAbsoluteError
Gets the largest absolute logit difference.
MeanAbsoluteError
Gets the arithmetic mean absolute logit difference.
LlamaLogitComputerUAIX.LmRuntime.Models.Llama
1 member
Computes reference logits from a hidden state and output projection.
ComputeLogits(System.ReadOnlySpan<float>,System.ReadOnlySpan<float>,System.Span<float>)
Computes logits from a hidden vector and a row-major projection matrix.
hiddenStateprojectionlogitsLlamaMappedGreedyTokenResultUAIX.LmRuntime.Models.Llama
20 members
Represents an end-to-end prompt-to-one-token result from a mapped GGUF model.
Architecture
Gets the model architecture identifier.
Evidence
Gets evidence statements for the deterministic one-token operation.
FinishReason
Gets the deterministic finish reason.
KeyValueCacheTokenCount
Gets the resulting key/value cache token count.
Logits
Gets the complete next-token logits for parity diagnostics.
ManagedAllocatedByteCount
Gets managed bytes allocated on the current thread during the measured operation.
ManagedModelWeightCopiedByteCount
Gets the managed model-weight bytes copied by the session path.
ModelName
Gets the model display name declared by GGUF metadata.
ModelPath
Gets the normalized GGUF model path used for the operation.
ModelSha256
Gets the optional complete-file model digest computed during load.
Position
Gets the sequence position that produced the logits.
Prompt
Gets the input prompt.
PromptTokenIds
Gets the exact prompt token identifiers.
RuntimeMode
Gets the runtime mode.
SelectedLogit
Gets the selected token logit.
StorageSummary
Gets the mapped storage-type summary.
Timings
Gets measured operation timings.
TokenId
Gets the selected token identifier.
TokenizerTrace
Gets tokenizer trace events when requested.
TokenText
Gets the selected token text.
LlamaMappedModelUAIX.LmRuntime.Models.Llama
14 members
Owns a mapped GGUF artifact and immutable LLaMA runtime composition.
BindingManifest
Gets the tensor binding manifest.
Configuration
Gets the validated LLaMA configuration.
IsDisposed
Gets whether the model has been disposed.
Manifest
Gets the immutable load evidence manifest.
Mapping
Gets the mapped model storage owner.
Options
Gets the load options retained for deterministic session creation.
Tokenizer
Gets the exact metadata-driven tokenizer.
TokenizerMetadata
Gets validated GGUF tokenizer metadata.
Weights
Gets the mapped semantic weight set.
WeightSource
Gets the direct mapped execution weight source.
CreateMaterializedReferenceSession
Creates an independent compatibility session over explicitly materialized float32 arrays.
Returns: The materialized compatibility session, with ownership and disposal obligations defined by the returned type and the CreateMaterializedReferenceSession contract.
CreateReferenceSession
Creates an independent scalar reference session with its own key/value state.
Returns: The new mapped reference session, with ownership and disposal obligations defined by the returned type and the CreateReferenceSession contract.
Dispose
Releases resources owned by LlamaMappedModel and transitions it to the disposed state.
GetReferenceMaterialization
Gets the bounded reference materialization evidence, creating it on first use.
Returns: The LlamaReferenceWeightMaterialization result produced by LlamaMappedModel.GetReferenceMaterialization for this contract: Gets the bounded reference materialization evidence, creating it on first use. It is published only after all documented validation and ownership transitions succeed.
LlamaMappedModelLoaderUAIX.LmRuntime.Models.Llama
1 member
Loads a local GGUF artifact into a mapped, tokenizer-aware LLaMA model composition.
Load(string,UAIX.LmRuntime.Models.Llama.LlamaMappedModelLoadOptions)
Loads and validates one mapped local model.
pathoptionsReturns: The owned mapped model, with ownership and disposal obligations defined by the returned type and the Load contract.
LlamaMappedModelLoadOptionsUAIX.LmRuntime.Models.Llama
5 members
Configures loading of a mapped LLaMA GGUF artifact.
BindingOptions
Gets semantic tensor binding validation options.
ComputeModelSha256
Gets whether a SHA-256 digest of the complete artifact should be computed during load.
MaximumReferenceMaterializationBytes
Gets the maximum bytes that scalar reference sessions may copy from mapped F32 weights.
ParseOptions
Gets GGUF parser safety limits.
RuntimeMode
Gets the runtime mode.
LlamaMappedModelLoadTimingsUAIX.LmRuntime.Models.Llama
5 members
Records measured stages of mapped model loading.
CompositionDuration
Gets architecture, tokenizer, and binding composition duration.
HashDuration
Gets optional complete-file digest duration.
MapDuration
Gets operating-system memory-map creation duration.
ParseDuration
Gets metadata and tensor catalog parse duration.
TotalDuration
Gets total load duration.
LlamaMappedModelManifestUAIX.LmRuntime.Models.Llama
13 members
Describes the immutable evidence produced while loading a mapped LLaMA model.
Architecture
Gets the architecture identifier.
BoundTensorCount
Gets the bound tensor count.
Evidence
Gets load evidence messages.
GgufVersion
Gets the GGUF version.
ManagedModelWeightCopiedByteCount
Gets the managed model-weight byte count copied by the default execution path.
ModelByteCount
Gets the exact mapped GGUF file length observed during parsing.
ModelName
Gets the model display name.
ModelPath
Gets the normalized model path.
ModelSha256
Gets the optional complete-file SHA-256 digest.
RuntimeMode
Gets the selected execution mode.
StorageSummary
Gets the physical tensor storage summary used by direct mapped execution.
Timings
Gets load-stage timings.
Tokenizer
Gets the tokenizer implementation name.
LlamaMappedReferenceSessionUAIX.LmRuntime.Models.Llama
12 members
Combines exact GGUF tokenization with an independent scalar reference session.
IsDisposed
Gets whether this session has released its state.
KvCache
Gets the typed session-local key/value cache.
Position
Gets the current next-token sequence position.
DecodeOneGreedy(string,UAIX.LmRuntime.Models.Llama.LlamaOneTokenOptions)
Tokenizes a prompt, executes prefill, selects argmax, and decodes exactly one token.
promptoptionsReturns: The LlamaMappedGreedyTokenResult result produced by LlamaMappedReferenceSession.DecodeOneGreedy for this contract: Tokenizes a prompt, executes prefill, selects argmax, and decodes exactly one token. It is published only after all documented validation and ownership transitions succeed.
Dispose
Releases resources owned by LlamaMappedReferenceSession and transitions it to the disposed state.
ExportState(UAIX.LmRuntime.Models.Llama.LlamaSessionPersistenceOptions)
Exports complete deterministic state with model, configuration, tokenizer, and cache-layout identities.
optionsReturns: A newly allocated byte[] containing the ordered result of LlamaMappedReferenceSession.ExportState: Exports complete deterministic state with model, configuration, tokenizer, and cache-layout identities. The caller owns the returned array and later mutation cannot alter the source object.
GenerateGreedy(string,System.Span<int>,System.Span<float>,UAIX.LmRuntime.Models.Llama.LlamaGreedyGenerationOptions,UAIX.LmRuntime.Tokenization.TokenizationOptions,System.Action<UAIX.LmRuntime.Models.Llama.LlamaGeneratedToken>,System.Threading.CancellationToken)
Tokenizes a prompt, generates greedy token identifiers, and reports each selected token synchronously.
promptgeneratedTokenIdsfinalLogitsgenerationOptionstokenizationOptionstokenObservercancellationTokenReturns: The LlamaGreedyGenerationResult result produced by LlamaMappedReferenceSession.GenerateGreedy for this contract: Tokenizes a prompt, generates greedy token identifiers, and reports each selected token synchronously. It is published only after all documented validation and ownership transitions succeed.
GenerateGreedy(string,System.Span<int>,System.Span<float>,UAIX.LmRuntime.Models.Llama.LlamaGreedyGenerationOptions,UAIX.LmRuntime.Tokenization.TokenizationOptions,System.Threading.CancellationToken)
Tokenizes a prompt and generates greedy token identifiers into caller-owned buffers.
promptgeneratedTokenIdsfinalLogitsgenerationOptionstokenizationOptionscancellationTokenReturns: The LlamaGreedyGenerationResult result produced by LlamaMappedReferenceSession.GenerateGreedy for this contract: Tokenizes a prompt and generates greedy token identifiers into caller-owned buffers. It is published only after all documented validation and ownership transitions succeed.
LoadState(string,int)
Loads and restores complete deterministic state from a local artifact.
pathmaximumByteCountReturns: The verified artifact, with ownership and disposal obligations defined by the returned type and the LoadState contract.
Reset
Resets this session's sequence and key/value state.
RestoreState(System.ReadOnlySpan<byte>,int)
Restores verified complete state after enforcing mapped model and tokenizer identities.
bytesmaximumByteCountReturns: The LlamaSessionArtifact result produced by LlamaMappedReferenceSession.RestoreState for this contract: Restores verified complete state after enforcing mapped model and tokenizer identities. It is published only after all documented validation and ownership transitions succeed.
SaveState(string,UAIX.LmRuntime.Models.Llama.LlamaSessionPersistenceOptions)
Saves complete deterministic state to a local artifact.
pathoptionsReturns: The LlamaSessionArtifact result produced by LlamaMappedReferenceSession.SaveState for this contract: Saves complete deterministic state to a local artifact. It is published only after all documented validation and ownership transitions succeed.
LlamaModelConfigUAIX.LmRuntime.Models.Llama
17 members
Represents LLaMA-family transformer configuration reconstructed from GGUF metadata.
Architecture
Gets the architecture name.
AttentionHeadCount
Gets the attention head count.
AttentionKeyValueHeadCount
Gets the attention key/value head count.
BlockCount
Gets the transformer block count.
ContextLength
Gets the training context length.
EmbeddingLength
Gets the embedding length.
FeedForwardLength
Gets the feed-forward hidden length.
HeadDimension
Gets the dimension of one query attention head.
KeyValueDimension
Gets the flattened key/value projection dimension.
ModelName
Gets the optional model display name.
RmsNormEpsilon
Gets the RMSNorm epsilon.
RopeDimensionCount
Gets the RoPE dimension count per attention head.
RopeFrequencyBase
Gets the RoPE frequency base.
SupportsTiedOutputProjection
Gets whether the loader may use token embeddings as the output projection when output.weight is absent.
VocabularySize
Gets the vocabulary size.
FromGguf(UAIX.LmRuntime.Gguf.GgufModel)
Creates a LLaMA-family configuration from GGUF metadata.
modelReturns: The LlamaModelConfig result produced by LlamaModelConfig.FromGguf for this contract: Creates a LLaMA-family configuration from GGUF metadata. It is published only after all documented validation and ownership transitions succeed.
Validate
Validates architectural invariants required by the scalar LLaMA runtime.
LlamaOneTokenFinishReasonUAIX.LmRuntime.Models.Llama
1 member
Identifies why a bounded one-token generation operation ended.
OneTokenCompleted
Exactly one greedy token was selected as requested.
LlamaOneTokenOptionsUAIX.LmRuntime.Models.Llama
4 members
Configures one deterministic mapped-model greedy-token operation.
AddSpecialTokens
Gets whether model-defined BOS/EOS behavior should be applied.
EmitTokenizerTrace
Gets whether tokenizer trace events should be captured.
ParseSpecialTokens
Gets whether raw special-token text should be recognized.
ResetSession
Gets whether the session should reset before prompt evaluation.
LlamaOneTokenTimingsUAIX.LmRuntime.Models.Llama
4 members
Records measured stages of exactly one mapped-model greedy decode operation.
PrefillDuration
Gets prompt prefill duration.
SelectionDuration
Gets greedy selection and token decode duration.
TokenizationDuration
Gets prompt tokenization duration.
TotalDuration
Gets total operation duration.
LlamaParityToleranceUAIX.LmRuntime.Models.Llama
3 members
Configures exact token and explicit floating-point tolerance checks for cross-storage parity.
AbsoluteTolerance
Gets the absolute per-logit tolerance.
RelativeTolerance
Gets the relative per-logit tolerance.
Validate
Validates the absolute and relative parity tolerances used for numerical comparison.
LlamaReferenceAttentionUAIX.LmRuntime.Models.Llama
1 member
Provides reference causal attention behavior.
ApplyCausal(System.ReadOnlySpan<float>,System.ReadOnlySpan<float>,System.ReadOnlySpan<float>,int,System.Span<float>)
Applies a minimal causal attention score computation.
querykeysvaluesheadSizeoutputLlamaReferenceExecutorUAIX.LmRuntime.Models.Llama
1 member
Provides scalar/reference execution anchors for LLaMA-family graphs.
Forward(System.ReadOnlySpan<float>,UAIX.LmRuntime.Models.Llama.LlamaWeights,System.Span<float>)
Executes a minimal reference forward pass over hidden-state logits.
hiddenStateweightslogitsLlamaReferenceFixtureUAIX.LmRuntime.Models.Llama
5 members
Represents a deterministic tiny reference fixture with one transformer block.
Configuration
Gets the fixture model configuration.
PromptTokenIds
Gets the canonical fixture prompt tokens.
Tokenizer
Gets the fixture tokenizer.
Weights
Gets the fixture model weights.
CreateSession
Creates the session from the validated inputs required by LlamaReferenceFixture.
Returns: A session with empty key/value cache state.
LlamaReferenceFixtureFactoryUAIX.LmRuntime.Models.Llama
1 member
Creates deterministic tiny fixtures used by reference-runtime tests and examples.
CreateDeterministic
Creates a one-block, five-token deterministic LLaMA fixture.
Returns: The fixture configuration, weights, tokenizer, and prompt, with ownership and disposal obligations defined by the returned type and the CreateDeterministic contract.
LlamaReferenceForwardPassUAIX.LmRuntime.Models.Llama
2 members
Provides tiny reference building blocks for LLaMA-family correctness tests.
ApplyRope(System.Span<float>,System.ReadOnlySpan<float>,System.ReadOnlySpan<float>,int)
Applies LLaMA-style RoPE to a query or key vector in place.
vectorcossinropeDimensionsRmsNorm(System.ReadOnlySpan<float>,System.ReadOnlySpan<float>,System.Span<float>,float)
Applies the LLaMA RMSNorm operation through the CPU reference kernel.
inputweightoutputepsilonLlamaReferenceLayerWeightsUAIX.LmRuntime.Models.Llama
9 members
Stores immutable float32 weights for one scalar/reference LLaMA transformer block.
AttentionKey
Gets the key projection matrix in row-major logical order.
AttentionNorm
Gets the attention RMSNorm scale.
AttentionOutput
Gets the attention output projection matrix in row-major logical order.
AttentionQuery
Gets the query projection matrix in row-major logical order.
AttentionValue
Gets the value projection matrix in row-major logical order.
FeedForwardDown
Gets the feed-forward down projection matrix in row-major logical order.
FeedForwardGate
Gets the feed-forward gate projection matrix in row-major logical order.
FeedForwardNorm
Gets the feed-forward RMSNorm scale.
FeedForwardUp
Gets the feed-forward up projection matrix in row-major logical order.
LlamaReferenceMaterializationRecordUAIX.LmRuntime.Models.Llama
5 members
Records one explicit managed copy made for the bounded scalar reference runtime.
BlockIndex
Gets the optional transformer block index.
CopiedByteCount
Gets the copied byte count.
Role
Gets the semantic tensor role.
StorageMode
Gets the resulting storage mode.
TensorName
Gets the source tensor name.
LlamaReferenceModelWeightsUAIX.LmRuntime.Models.Llama
5 members
Stores immutable float32 weights for the deterministic LLaMA reference runtime.
Layers
Gets transformer block weights in execution order.
OutputNorm
Gets the final RMSNorm scale.
OutputProjection
Gets the output projection matrix in row-major logical order. An empty value means tied embeddings.
TokenEmbeddings
Gets the token embedding table in row-major logical order.
Validate(UAIX.LmRuntime.Models.Llama.LlamaModelConfig)
Validates all reference-weight shapes against a LLaMA configuration.
configLlamaReferenceRmsNormUAIX.LmRuntime.Models.Llama
1 member
Provides reference RMSNorm behavior.
Apply(System.ReadOnlySpan<float>,System.ReadOnlySpan<float>,System.Span<float>,float)
Applies the supplied input to the supplied values while preserving the operation's numeric and shape invariants.
inputweightsoutputepsilonLlamaReferenceRopeUAIX.LmRuntime.Models.Llama
1 member
Provides reference RoPE behavior.
Apply(System.Span<float>,int,float)
Applies rotary position embedding to adjacent hidden-state pairs.
valuespositionthetaLlamaReferenceSessionUAIX.LmRuntime.Models.Llama
17 members
Executes a deterministic, scalar-first LLaMA forward path for tiny correctness fixtures.
This class is the numerical correctness anchor for later optimized kernels. It is intentionally limited to batch size one and F32, Q8_0, or Q4_0 mapped or array-backed weights. It performs no governance or adaptive policy operations and therefore belongs exclusively to deterministic parity mode.
ContextCapacity
Gets the configured sequence capacity.
KvCache
Gets the typed key/value cache owned by this session.
Position
Gets the next sequence position to be evaluated.
VocabularySize
Gets the configured vocabulary size.
WeightSource
Gets the immutable model weight source used by this session.
CaptureState
Captures complete deterministic session state without serializing live model pointers.
Returns: The LlamaReferenceSessionSnapshot result produced by LlamaReferenceSession.CaptureState for this contract: Captures complete deterministic session state without serializing live model pointers. It is published only after all documented validation and ownership transitions succeed.
CopyLastLogitsTo(System.Span<float>)
Copies the most recently computed logits to a caller-provided destination.
destinationDecodeOneGreedy(System.Collections.Generic.IReadOnlyList<int>,bool)
Evaluates a prompt and returns exactly one greedily selected next token.
promptTokenIdsresetSessionReturns: The LlamaGreedyTokenResult result produced by LlamaReferenceSession.DecodeOneGreedy for this contract: Evaluates a prompt and returns exactly one greedily selected next token. It is published only after all documented validation and ownership transitions succeed.
GenerateGreedy(System.Collections.Generic.IReadOnlyList<int>,System.Span<int>,System.Span<float>,UAIX.LmRuntime.Models.Llama.LlamaGreedyGenerationOptions,System.Action<UAIX.LmRuntime.Models.Llama.LlamaGeneratedToken>,System.Threading.CancellationToken)
Generates deterministic greedy token identifiers and reports each selection to a synchronous observer.
promptTokenIdsgeneratedTokenIdsfinalLogitsoptionstokenObservercancellationTokenReturns: The LlamaGreedyGenerationResult result produced by LlamaReferenceSession.GenerateGreedy for this contract: Generates deterministic greedy token identifiers and reports each selection to a synchronous observer. It is published only after all documented validation and ownership transitions succeed.
GenerateGreedy(System.Collections.Generic.IReadOnlyList<int>,System.Span<int>,System.Span<float>,UAIX.LmRuntime.Models.Llama.LlamaGreedyGenerationOptions,System.Threading.CancellationToken)
Generates deterministic greedy token identifiers into caller-owned buffers.
promptTokenIdsgeneratedTokenIdsfinalLogitsoptionscancellationTokenReturns: The LlamaGreedyGenerationResult result produced by LlamaReferenceSession.GenerateGreedy for this contract: Generates deterministic greedy token identifiers into caller-owned buffers. It is published only after all documented validation and ownership transitions succeed.
LlamaReferenceSession(UAIX.LmRuntime.Models.Llama.LlamaModelConfig,UAIX.LmRuntime.Models.Llama.ILlamaModelWeightSource,UAIX.LmRuntime.Tokenization.IGgufTokenizer)
Initializes a reference session over immutable array-backed or direct mapped weight sources.
configweightstokenizerLlamaReferenceSession(UAIX.LmRuntime.Models.Llama.LlamaModelConfig,UAIX.LmRuntime.Models.Llama.LlamaReferenceModelWeights,UAIX.LmRuntime.Tokenization.IGgufTokenizer)
Initializes a reference session through the v1.8.0 array-backed compatibility path.
configweightstokenizerPrefill(System.Collections.Generic.IReadOnlyList<int>,bool)
Evaluates every prompt token and leaves the final logits available for deterministic selection.
promptTokenIdsresetSessionReset
Clears sequence state and all key/value cache contents.
RestoreState(UAIX.LmRuntime.Models.Llama.LlamaReferenceSessionSnapshot)
Restores complete deterministic state after validating sequence, vocabulary, and cache identities.
snapshotRunStep(int,System.Span<float>)
Evaluates one input token and writes next-token logits.
tokenIdlogitsSelectGreedyToken(int)
Selects and decodes one greedy token from the current logits.
promptTokenCountReturns: The LlamaGreedyTokenResult result produced by LlamaReferenceSession.SelectGreedyToken for this contract: Selects and decodes one greedy token from the current logits. It is published only after all documented validation and ownership transitions succeed.
LlamaReferenceSessionSnapshotUAIX.LmRuntime.Models.Llama
5 members
Captures complete deterministic reference-session state without retaining live model pointers.
KeyValueCache
Gets complete capacity-shaped key/value state.
LastLogits
Gets the most recently computed logits.
Position
Gets the next sequence position.
SchemaVersion
Gets the in-memory snapshot schema version.
TokenHistory
Gets committed input token identifiers in sequence order.
LlamaReferenceWeightMaterializationUAIX.LmRuntime.Models.Llama
3 members
Contains immutable float32 weights and copy evidence for the scalar reference runtime.
Records
Gets every bounded copy made while materializing the fixture.
TotalCopiedByteCount
Gets the total number of copied bytes.
Weights
Gets the immutable reference weights.
LlamaRequiredTensorRegistryUAIX.LmRuntime.Models.Llama
1 member
Builds the required LLaMA-family tensor registry from model configuration.
Build(UAIX.LmRuntime.Models.Llama.LlamaModelConfig)
Creates the required tensor list for the configuration.
configReturns: An ordered read-only IReadOnlyList<LlamaTensorRequirement> result from LlamaRequiredTensorRegistry.Build: Creates the required tensor list for the configuration. Mutable internal collection aliases are not exposed through the returned contract.
LlamaRuntimeModeUAIX.LmRuntime.Models.Llama
1 member
Identifies the deterministic execution contract used by a mapped model session.
DeterministicParity
Runs only deterministic parity behavior without adaptive governance.
LlamaSessionArtifactUAIX.LmRuntime.Models.Llama
15 members
Carries verified complete deterministic session state and compatibility identities.
CacheLayoutFingerprint
Gets the cache-layout fingerprint.
ClaimStatus
Gets the evidence claim status.
ConfigurationFingerprint
Gets the model configuration fingerprint.
ContentSha256
Gets the SHA-256 of every serialized byte preceding the digest.
EndOfSequenceTokenId
Gets the optional end-of-sequence token identifier.
GeneratedUtc
Gets the artifact generation time in UTC.
MaximumCompatiblePackageVersion
Gets the newest supported package version.
MinimumCompatiblePackageVersion
Gets the oldest supported package version.
ModelSha256
Gets the complete model artifact SHA-256.
PackageVersion
Gets the package version that emitted the artifact.
SamplerMode
Gets the sampler mode.
SchemaVersion
Gets the portable schema version.
Snapshot
Gets the complete session snapshot.
StopTokenIds
Gets configured stop-token identifiers.
TokenizerFingerprint
Gets the tokenizer fingerprint.
LlamaSessionArtifactSerializerUAIX.LmRuntime.Models.Llama
5 members
Serializes complete deterministic reference-session state in bounded little-endian form.
SchemaVersion
Gets the supported artifact schema version.
Deserialize(System.ReadOnlySpan<byte>,int)
Deserializes the llama session artifact from the validated persisted representation.
bytesmaximumByteCountReturns: The LlamaSessionArtifact result produced by LlamaSessionArtifactSerializer.Deserialize for this contract: Deserializes the llama session artifact from the validated persisted representation. It is published only after all documented validation and ownership transitions succeed.
Load(string,int)
Reads and verifies a complete artifact from a local file.
pathmaximumByteCountReturns: The verified artifact, with ownership and disposal obligations defined by the returned type and the Load contract.
Save(string,UAIX.LmRuntime.Models.Llama.LlamaReferenceSessionSnapshot,UAIX.LmRuntime.Models.Llama.LlamaSessionPersistenceOptions)
Writes a complete artifact to a local file.
pathsnapshotoptionsReturns: The LlamaSessionArtifact result produced by LlamaSessionArtifactSerializer.Save for this contract: Writes a complete artifact to a local file. It is published only after all documented validation and ownership transitions succeed.
Serialize(UAIX.LmRuntime.Models.Llama.LlamaReferenceSessionSnapshot,UAIX.LmRuntime.Models.Llama.LlamaSessionPersistenceOptions)
Serializes complete session state and appends a SHA-256 digest.
snapshotoptionsReturns: A newly allocated byte[] containing the ordered result of LlamaSessionArtifactSerializer.Serialize: Serializes complete session state and appends a SHA-256 digest. The caller owns the returned array and later mutation cannot alter the source object.
LlamaSessionPersistenceOptionsUAIX.LmRuntime.Models.Llama
13 members
Configures digest-bound complete session serialization.
CacheLayoutFingerprint
Gets the persistent cache-layout identity.
ClaimStatus
Gets the evidence claim status.
ConfigurationFingerprint
Gets the LLaMA configuration fingerprint.
EndOfSequenceTokenId
Gets the optional end-of-sequence token identifier.
GeneratedUtc
Gets the UTC generation time.
MaximumByteCount
Gets the maximum accepted artifact byte count.
MaximumCompatiblePackageVersion
Gets the newest supported package version.
MinimumCompatiblePackageVersion
Gets the oldest supported package version.
ModelSha256
Gets the complete model artifact SHA-256.
PackageVersion
Gets the package version that emitted the artifact.
SamplerMode
Gets the deterministic sampler mode.
StopTokenIds
Gets configured stop-token identifiers.
TokenizerFingerprint
Gets the GGUF tokenizer fingerprint.
LlamaStorageParityCandidateResultUAIX.LmRuntime.Models.Llama
7 members
Represents one candidate model's parity result against a selected reference model.
LogitComparison
Gets the detailed logit comparison.
ModelPath
Gets the candidate model path.
ModelSha256
Gets the candidate model SHA-256.
OneTokenResult
Gets the complete candidate one-token result.
Passed
Gets whether both exact-token and floating-point contracts passed.
StorageSummary
Gets the candidate storage summary.
TokenMatches
Gets whether the selected token identifier exactly equals the reference identifier.
LlamaStorageParityResultUAIX.LmRuntime.Models.Llama
4 members
Represents a cross-storage one-token parity run.
Candidates
Gets candidate results in caller order.
Passed
Gets whether every candidate passed the explicit parity contract.
Prompt
Gets the prompt used for every model.
ReferenceResult
Gets the reference one-token result.
LlamaStorageParityRunnerUAIX.LmRuntime.Models.Llama
1 member
Executes bounded offline one-token parity comparisons across local GGUF storage variants.
Run(string,System.Collections.Generic.IReadOnlyList<string>,string,UAIX.LmRuntime.Models.Llama.LlamaParityTolerance)
Runs one reference model and one or more candidate models with identical prompt settings.
referenceModelPathcandidateModelPathsprompttoleranceReturns: The LlamaStorageParityResult result produced by LlamaStorageParityRunner.Run for this contract: Runs one reference model and one or more candidate models with identical prompt settings. It is published only after all documented validation and ownership transitions succeed.
LlamaSwiGluReferenceUAIX.LmRuntime.Models.Llama
1 member
Provides reference SwiGLU behavior.
Apply(System.ReadOnlySpan<float>,System.ReadOnlySpan<float>,System.Span<float>)
Applies the SwiGLU activation to validated gate and up-projection vectors.
gateupoutputLlamaTensorBinderUAIX.LmRuntime.Models.Llama
2 members
Binds and validates LLaMA-family GGUF tensors as a schema-validation phase.
Bind(UAIX.LmRuntime.Gguf.GgufModel,UAIX.LmRuntime.Models.Llama.LlamaModelConfig)
Binds required tensors from a parsed GGUF artifact using default validation options.
modelconfigReturns: The TensorBindingManifest result produced by LlamaTensorBinder.Bind for this contract: Binds required tensors from a parsed GGUF artifact using default validation options. It is published only after all documented validation and ownership transitions succeed.
Bind(UAIX.LmRuntime.Gguf.GgufModel,UAIX.LmRuntime.Models.Llama.LlamaModelConfig,UAIX.LmRuntime.Models.Llama.TensorBindingOptions)
Binds required tensors from a parsed GGUF artifact.
modelconfigoptionsReturns: The TensorBindingManifest result produced by LlamaTensorBinder.Bind for this contract: Binds required tensors from a parsed GGUF artifact. It is published only after all documented validation and ownership transitions succeed.
LlamaTensorRequirementUAIX.LmRuntime.Models.Llama
7 members
Describes one required LLaMA tensor contract.
BlockIndex
Gets the optional block index.
ExpectedLogicalDimensions
Gets dimensions in logical row-major order for diagnostics and manifests.
ExpectedRank
Gets the expected rank.
ExpectedStorageDimensions
Gets dimensions in GGUF storage order, where dimension zero is the row width.
IsOptional
Gets whether the tensor may be satisfied by an explicit alias rule.
Name
Gets the required tensor name.
Role
Gets the tensor role.
LlamaTensorRoleUAIX.LmRuntime.Models.Llama
12 members
Identifies semantic roles for LLaMA-family tensors.
AttentionKey
Per-block key projection.
AttentionNorm
Per-block attention normalization scale.
AttentionOutput
Per-block attention output projection.
AttentionQuery
Per-block query projection.
AttentionValue
Per-block value projection.
FeedForwardDown
Per-block feed-forward down projection.
FeedForwardGate
Per-block feed-forward gate projection.
FeedForwardNorm
Per-block feed-forward normalization scale.
FeedForwardUp
Per-block feed-forward up projection.
Output
Output projection matrix.
OutputNorm
Final output normalization scale.
TokenEmbedding
Token embedding table.
LlamaWeightsUAIX.LmRuntime.Models.Llama
2 members
Represents model-level LLaMA weights used by reference execution.
OutputProjection
Gets the output projection matrix in row-major order.
TokenEmbeddings
Gets token embedding weights.
LlamaWeightSourceValidatorUAIX.LmRuntime.Models.Llama
1 member
Validates storage-neutral LLaMA weight sources before deterministic execution begins.
Validate(UAIX.LmRuntime.Models.Llama.LlamaModelConfig,UAIX.LmRuntime.Models.Llama.ILlamaModelWeightSource)
Validates every global and block-local source against the configured model geometry.
configweightsLlamaWeightStorageModeUAIX.LmRuntime.Models.Llama
3 members
Identifies how a bound tensor participates in reference execution.
Alias
The tensor aliases another mapped tensor.
CopiedForReference
The tensor was explicitly copied into a bounded float32 reference buffer.
Mapped
The tensor remains a borrowed view over the mapped GGUF file.
MappedBFloat16MatrixSourceUAIX.LmRuntime.Models.Llama
8 members
Reads and multiplies a brain-float16 matrix directly from a mapped GGUF tensor view.
ColumnCount
DataType
RowCount
StorageDiagnostics
StorageType
CopyRowTo(int,System.Span<float>)
Copies the row to into caller-owned storage after validating the requested range and capacity.
rowIndexdestinationMappedBFloat16MatrixSource(UAIX.LmRuntime.Gguf.MappedTensorView)
Initializes a new MappedBFloat16MatrixSource instance with validated dependencies and operational bounds.
viewMultiply(System.ReadOnlySpan<float>,System.Span<float>)
Multiplies the supplied vector by the supplied vector without changing logical row order.
vectoroutputMappedBFloat16VectorSourceUAIX.LmRuntime.Models.Llama
6 members
Reads a brain-float16 vector directly from a mapped GGUF tensor view.
DataType
Length
StorageDiagnostics
StorageType
CopyTo(System.Span<float>)
Copies the to into caller-owned storage after validating the requested range and capacity.
destinationMappedBFloat16VectorSource(UAIX.LmRuntime.Gguf.MappedTensorView)
Initializes a new MappedBFloat16VectorSource instance with validated dependencies and operational bounds.
viewMappedFloat16MatrixSourceUAIX.LmRuntime.Models.Llama
8 members
Reads and multiplies an IEEE float16 matrix directly from a mapped GGUF tensor view.
ColumnCount
DataType
RowCount
StorageDiagnostics
StorageType
CopyRowTo(int,System.Span<float>)
Copies the row to into caller-owned storage after validating the requested range and capacity.
rowIndexdestinationMappedFloat16MatrixSource(UAIX.LmRuntime.Gguf.MappedTensorView)
Initializes a new MappedFloat16MatrixSource instance with validated dependencies and operational bounds.
viewMultiply(System.ReadOnlySpan<float>,System.Span<float>)
Multiplies the supplied vector by the supplied vector without changing logical row order.
vectoroutputMappedFloat16VectorSourceUAIX.LmRuntime.Models.Llama
6 members
Reads an IEEE float16 vector directly from a mapped GGUF tensor view.
DataType
Length
StorageDiagnostics
StorageType
CopyTo(System.Span<float>)
Copies the to into caller-owned storage after validating the requested range and capacity.
destinationMappedFloat16VectorSource(UAIX.LmRuntime.Gguf.MappedTensorView)
Initializes a new MappedFloat16VectorSource instance with validated dependencies and operational bounds.
viewMappedFloat32MatrixSourceUAIX.LmRuntime.Models.Llama
8 members
Reads and multiplies an F32 matrix directly from a mapped GGUF tensor view.
ColumnCount
DataType
RowCount
StorageDiagnostics
StorageType
CopyRowTo(int,System.Span<float>)
Copies the row to into caller-owned storage after validating the requested range and capacity.
rowIndexdestinationMappedFloat32MatrixSource(UAIX.LmRuntime.Gguf.MappedTensorView)
Initializes a new MappedFloat32MatrixSource instance with validated dependencies and operational bounds.
viewMultiply(System.ReadOnlySpan<float>,System.Span<float>)
Multiplies the supplied vector by the supplied vector without changing logical row order.
vectoroutputMappedFloat32VectorSourceUAIX.LmRuntime.Models.Llama
6 members
Reads a float32 vector directly from a mapped GGUF tensor view.
DataType
Length
StorageDiagnostics
StorageType
CopyTo(System.Span<float>)
Copies the to into caller-owned storage after validating the requested range and capacity.
destinationMappedFloat32VectorSource(UAIX.LmRuntime.Gguf.MappedTensorView)
Initializes a new MappedFloat32VectorSource instance with validated dependencies and operational bounds.
viewMappedLlamaLayerWeightSourceUAIX.LmRuntime.Models.Llama
10 members
Exposes one mapped LLaMA transformer block through storage-neutral execution contracts.
AttentionKey
AttentionNorm
AttentionOutput
AttentionQuery
AttentionValue
FeedForwardDown
FeedForwardGate
FeedForwardNorm
FeedForwardUp
MappedLlamaLayerWeightSource(UAIX.LmRuntime.Models.Llama.LlamaBoundLayerWeightSet)
Initializes a new MappedLlamaLayerWeightSource instance with validated dependencies and operational bounds.
weightsMappedLlamaModelWeightSourceUAIX.LmRuntime.Models.Llama
10 members
Exposes a complete mapped LLaMA model through storage-neutral execution contracts.
Layers
ManagedCopiedByteCount
Gets the total number of persistent managed model-weight bytes copied by this source.
OutputNorm
OutputProjection
StorageDiagnostics
StorageSummary
TokenEmbeddings
UsesTiedOutputProjection
Create(UAIX.LmRuntime.Models.Llama.LlamaBoundWeightSet)
Creates and validates a complete mapped model weight source.
weightsReturns: The validated mapped model weight source, with ownership and disposal obligations defined by the returned type and the Create contract.
MappedLlamaModelWeightSource(UAIX.LmRuntime.Models.Llama.LlamaBoundWeightSet)
Initializes a new MappedLlamaModelWeightSource instance with validated dependencies and operational bounds.
weightsMappedMatrixSourceFactoryUAIX.LmRuntime.Models.Llama
1 member
Creates supported matrix sources over mapped tensor views.
Create(UAIX.LmRuntime.Gguf.MappedTensorView)
Creates a direct mapped source for supported scalar and quantized storage.
viewReturns: The storage-specific matrix source, with ownership and disposal obligations defined by the returned type and the Create contract.
MappedQ4_0MatrixSourceUAIX.LmRuntime.Models.Llama
8 members
Reads and multiplies a Q4_0 matrix directly from a mapped GGUF tensor view.
ColumnCount
DataType
RowCount
StorageDiagnostics
StorageType
CopyRowTo(int,System.Span<float>)
Copies the row to into caller-owned storage after validating the requested range and capacity.
rowIndexdestinationMappedQ4_0MatrixSource(UAIX.LmRuntime.Gguf.MappedTensorView)
Initializes a new MappedQ4_0MatrixSource instance with validated dependencies and operational bounds.
viewMultiply(System.ReadOnlySpan<float>,System.Span<float>)
Multiplies the supplied vector by the supplied vector without changing logical row order.
vectoroutputMappedQ4_KMatrixSourceUAIX.LmRuntime.Models.Llama
8 members
Reads and multiplies a Q4_K matrix directly from a mapped GGUF tensor view.
ColumnCount
DataType
RowCount
StorageDiagnostics
StorageType
CopyRowTo(int,System.Span<float>)
Copies the row to into caller-owned storage after validating the requested range and capacity.
rowIndexdestinationMappedQ4_KMatrixSource(UAIX.LmRuntime.Gguf.MappedTensorView)
Initializes a new MappedQ4_KMatrixSource instance with validated dependencies and operational bounds.
viewMultiply(System.ReadOnlySpan<float>,System.Span<float>)
Multiplies the supplied vector by the supplied vector without changing logical row order.
vectoroutputMappedQ6_KMatrixSourceUAIX.LmRuntime.Models.Llama
8 members
Reads and multiplies a Q6_K matrix directly from a mapped GGUF tensor view.
ColumnCount
DataType
RowCount
StorageDiagnostics
StorageType
CopyRowTo(int,System.Span<float>)
Copies the row to into caller-owned storage after validating the requested range and capacity.
rowIndexdestinationMappedQ6_KMatrixSource(UAIX.LmRuntime.Gguf.MappedTensorView)
Initializes a new MappedQ6_KMatrixSource instance with validated dependencies and operational bounds.
viewMultiply(System.ReadOnlySpan<float>,System.Span<float>)
Multiplies the supplied vector by the supplied vector without changing logical row order.
vectoroutputMappedQ8_0MatrixSourceUAIX.LmRuntime.Models.Llama
8 members
Reads and multiplies a Q8_0 matrix directly from a mapped GGUF tensor view.
ColumnCount
DataType
RowCount
StorageDiagnostics
StorageType
CopyRowTo(int,System.Span<float>)
Copies the row to into caller-owned storage after validating the requested range and capacity.
rowIndexdestinationMappedQ8_0MatrixSource(UAIX.LmRuntime.Gguf.MappedTensorView)
Initializes a new MappedQ8_0MatrixSource instance with validated dependencies and operational bounds.
viewMultiply(System.ReadOnlySpan<float>,System.Span<float>)
Multiplies the supplied vector by the supplied vector without changing logical row order.
vectoroutputMappedVectorSourceFactoryUAIX.LmRuntime.Models.Llama
1 member
Selects a mapped scalar vector implementation from GGML storage metadata.
Create(UAIX.LmRuntime.Gguf.MappedTensorView)
Creates the read only vector source from the validated inputs required by MappedVectorSourceFactory.
viewReturns: The storage-specific vector source, with ownership and disposal obligations defined by the returned type and the Create contract.
RealModelPathPolicyUAIX.LmRuntime.Models.Llama
1 member
Resolves local model paths under an optional root without following hidden network or download behavior.
Resolve(string,string,long)
Resolves and validates one local model path.
pathallowedRootmaximumFileByteCountReturns: The text produced by RealModelPathPolicy.Resolve for this contract: Resolves and validates one local model path. The returned string is detached from mutable caller storage and is not persisted by the operation.
RealModelSmokeArtifactUAIX.LmRuntime.Models.Llama
29 members
Represents a versioned, machine-readable real-model smoke artifact.
Alignment
Gets the effective GGUF tensor alignment.
Architecture
Gets the model architecture.
BindingDiagnostics
Gets binding diagnostic messages.
ClaimStatus
Gets the evidence claim status.
CommandIdentity
Gets the non-secret command identity.
CommitIdentity
Gets the source/commit identity.
CompletedStage
Gets the deepest completed stage.
Diagnostics
Gets bounded workflow diagnostics.
EnvironmentVariableNames
Gets environment-variable names used by the workflow without values.
ExpectedOneTokenMatched
Gets whether the optional expected one-token evidence matched.
ExpectedTokenIdsMatched
Gets whether the optional expected token-identifier evidence matched.
FileByteCount
Gets the model file length.
GeneratedUtc
Gets the generation time in UTC.
GgufVersion
Gets the parsed GGUF version.
LicenseReviewStatus
Gets the operator-supplied license review status.
ModelPath
Gets the normalized local model path.
ModelSha256
Gets the optional complete-file SHA-256.
PackageVersion
Gets the package version.
PromptSha256
Gets the SHA-256 of the prompt text rather than requiring publication of the raw prompt.
PromptTokenIds
Gets exact prompt token identifiers when tokenization completed.
ProvenanceLabel
Gets the operator-supplied provenance label.
Schema
Gets the artifact schema identifier.
SelectedTokenId
Gets the selected one-token identifier when execution completed.
SelectedTokenText
Gets the selected token text when execution completed.
StageEvidence
Gets stage timing and current-thread allocation measurements.
StorageTypeCounts
Gets physical tensor counts by GGML storage name.
Succeeded
Gets whether the requested stage completed.
TokenizerFamily
Gets the tokenizer family.
UnsupportedDiagnostics
Gets exact unsupported execution diagnostics.
RealModelSmokeEnvironmentUAIX.LmRuntime.Models.Llama
1 member
Creates explicit local smoke options from the documented environment-variable contract.
Load(UAIX.LmRuntime.Models.Llama.RealModelSmokeStage)
Reads the local real-model smoke configuration from environment variables.
stageReturns: The local smoke options, with ownership and disposal obligations defined by the returned type and the Load contract.
RealModelSmokeOptionsUAIX.LmRuntime.Models.Llama
15 members
Configures an explicitly local, opt-in GGUF smoke inspection.
AllowedRoot
Gets an optional root that the resolved model path must remain under.
CommitIdentity
Gets a commit or source identity supplied by the operator.
ComputeModelSha256
Gets whether the complete model SHA-256 should be computed.
EnvironmentGateName
Gets the environment variable that enables real-model execution.
ExpectedOneTokenPath
Gets an optional local JSON file containing the expected one-token result.
ExpectedTokenIdsPath
Gets an optional local JSON file containing expected prompt token identifiers.
LicenseReviewStatus
Gets the operator-supplied license review status.
MaximumFileByteCount
Gets an optional explicit maximum file length; zero disables this limit.
ModelPath
Gets the local GGUF path.
PackageVersion
Gets the package version recorded in evidence.
Prompt
Gets the prompt used by the one-token stage.
ProvenanceLabel
Gets an operator-supplied provenance label.
RedactModelPath
Gets whether the artifact model path is reduced to its file name.
RequireEnvironmentGate
Gets whether the explicit environment gate is required.
Stage
Gets the deepest smoke stage to execute.
RealModelSmokeRunnerUAIX.LmRuntime.Models.Llama
1 member
Executes staged, offline real-model validation and emits a bounded evidence artifact.
Run(UAIX.LmRuntime.Models.Llama.RealModelSmokeOptions)
Runs the requested local smoke stages in their required order.
optionsReturns: A bounded machine-readable artifact describing the deepest completed stage.
RealModelSmokeStageUAIX.LmRuntime.Models.Llama
4 members
Identifies the deepest stage requested from the local real-model smoke workflow.
OneToken
Also executes one deterministic greedy token when every storage contract is supported.
ParseOnly
Parses and validates the GGUF container only.
TensorBinding
Also reconstructs LLaMA geometry and validates required tensor bindings.
Tokenizer
Also constructs and validates the metadata-driven tokenizer.
RealModelSmokeStageEvidenceUAIX.LmRuntime.Models.Llama
3 members
Records one real-model workflow stage duration and current-thread allocation delta.
ElapsedStopwatchTicks
Gets elapsed stopwatch ticks.
ManagedAllocatedByteCount
Gets managed bytes allocated on the measuring thread.
Stage
Gets the stage name.
ReferenceKvCacheUAIX.LmRuntime.Models.Llama
16 members
Stores reference key/value state in two contiguous arrays without per-token dictionaries.
ConfigurationFingerprint
ContextLength
HeadWidth
KeyValueHeadCount
LayerCount
UsedTokenCount
WriteBehavior
CreateDiagnosticSnapshot
Creates a small diagnostic snapshot without exposing mutable key/value arrays.
Returns: The bounded diagnostic snapshot, with ownership and disposal obligations defined by the returned type and the CreateDiagnosticSnapshot contract.
CreateSnapshot
Creates the snapshot from the validated inputs required by ReferenceKvCache.
Returns: The ReferenceKvCacheSnapshot result produced by ReferenceKvCache.CreateSnapshot for this contract: Creates the snapshot from the validated inputs required by ReferenceKvCache. It is published only after all documented validation and ownership transitions succeed.
GetKey(int,int,int)
Retrieves the key from the current cache state after validating the requested access.
layerIndexpositionheadIndexReturns: The bounded ReadOnlySpan<float> view produced by ReferenceKvCache.GetKey: Retrieves the key from the current cache state after validating the requested access. Its lifetime and ownership remain tied to the owner identified by the containing type; no out-of-range region is exposed.
GetValue(int,int,int)
Retrieves the value from the current cache state after validating the requested access.
layerIndexpositionheadIndexReturns: The bounded ReadOnlySpan<float> view produced by ReferenceKvCache.GetValue: Retrieves the value from the current cache state after validating the requested access. Its lifetime and ownership remain tied to the owner identified by the containing type; no out-of-range region is exposed.
ReferenceKvCache(int,int,int,int)
Initializes a reference key/value cache with a geometry-derived compatibility fingerprint.
layerCountcontextLengthkeyValueHeadCountheadWidthReferenceKvCache(int,int,int,int,string)
Initializes a reference key/value cache with an explicit model/configuration fingerprint.
layerCountcontextLengthkeyValueHeadCountheadWidthconfigurationFingerprintReset
Resets the reference KV cache contents and logical sequence position to their initial state.
Restore(UAIX.LmRuntime.Models.Llama.ReferenceKvCacheSnapshot)
Restores the supplied snapshot from a validated persisted representation.
snapshotWrite(int,int,System.ReadOnlySpan<float>,System.ReadOnlySpan<float>)
Writes the supplied layer index to the current cache state using the component's canonical representation.
layerIndexpositionkeyvalueReferenceKvCacheDiagnosticSnapshotUAIX.LmRuntime.Models.Llama
3 members
Represents a bounded, non-mutable diagnostic view of reference cache state.
ConfigurationFingerprint
Gets the configuration fingerprint.
ContentSha256
Gets the SHA-256 of the used key/value prefix.
UsedTokenCount
Gets the used token count.
ReferenceKvCacheFingerprintUAIX.LmRuntime.Models.Llama
1 member
Computes stable fingerprints for model configurations that own reference key/value cache snapshots.
Create(UAIX.LmRuntime.Models.Llama.LlamaModelConfig)
Creates a SHA-256 fingerprint from the configuration fields that determine cache geometry and semantics.
configReturns: The text produced by ReferenceKvCacheFingerprint.Create for this contract: Creates a SHA-256 fingerprint from the configuration fields that determine cache geometry and semantics. The returned string is detached from mutable caller storage and is not persisted by the operation.
ReferenceKvCacheSerializerUAIX.LmRuntime.Models.Llama
5 members
Serializes only logically used key/value positions in stable layer-position-head order.
Schema version two is additive and does not change the in-memory version-one snapshot contract retained for source compatibility. Unused capacity is reconstructed as zero during deserialization.
DefaultMaximumByteCount
Gets the default maximum serialized snapshot size.
SchemaVersion
Gets the portable snapshot schema version.
Deserialize(System.ReadOnlySpan<byte>,int)
Deserializes and verifies a portable key/value-cache snapshot.
bytesmaximumByteCountReturns: The ReferenceKvPortableSnapshot result produced by ReferenceKvCacheSerializer.Deserialize for this contract: Deserializes and verifies a portable key/value-cache snapshot. It is published only after all documented validation and ownership transitions succeed.
Restore(UAIX.LmRuntime.Models.Llama.ReferenceKvCache,System.ReadOnlySpan<byte>,string,string)
Restores verified portable bytes into a cache after validating model and layout identities.
cachebytesexpectedModelArtifactFingerprintexpectedCacheLayoutFingerprintSerialize(UAIX.LmRuntime.Models.Llama.ReferenceKvCacheSnapshot,string,string,int)
Serializes a bounded cache snapshot in deterministic little-endian form.
snapshotmodelArtifactFingerprintcacheLayoutFingerprintmaximumByteCountReturns: The serialized snapshot bytes including a trailing SHA-256.
ReferenceKvCacheSnapshotUAIX.LmRuntime.Models.Llama
9 members
Represents an immutable snapshot of a tiny reference key/value cache.
ConfigurationFingerprint
Gets the model/configuration fingerprint.
ContextLength
Gets the context capacity in the snapshot.
HeadWidth
Gets the per-head width.
Keys
Gets a copy of all key values.
KeyValueHeadCount
Gets the key/value head count.
LayerCount
Gets the number of layers in the snapshot.
SchemaVersion
Gets the snapshot schema version.
UsedTokenCount
Gets the used token count.
Values
Gets a copy of all value values.
ReferenceKvPortableSnapshotUAIX.LmRuntime.Models.Llama
6 members
Carries a deterministic portable key/value-cache snapshot and its compatibility identities.
CacheLayoutFingerprint
Gets the cache-layout fingerprint.
ConfigurationFingerprint
Gets the model-configuration fingerprint.
ContentSha256
Gets the SHA-256 of the serialized bytes preceding the digest field.
ModelArtifactFingerprint
Gets the optional model-artifact fingerprint.
SchemaVersion
Gets the portable schema version.
Snapshot
Gets the restored capacity-shaped snapshot.
ReferenceKvWriteBehaviorUAIX.LmRuntime.Models.Llama
1 member
Identifies the deterministic write semantics used by the scalar reference key/value cache.
AppendOrOverwrite
Writes append new positions and deterministically overwrite already written positions.
TensorBindingDiagnosticUAIX.LmRuntime.Models.Llama
4 members
Represents a tensor binding diagnostic.
BlockIndex
Gets the optional transformer block index.
Code
Gets the diagnostic code.
Message
Gets the diagnostic message.
TensorName
Gets the tensor name associated with the diagnostic.
TensorBindingEntryUAIX.LmRuntime.Models.Llama
10 members
Represents one bound tensor entry.
AbsoluteOffset
Gets the absolute source-file offset.
ByteLength
Gets the physical storage byte length.
DataType
Gets the mapped runtime data type.
Descriptor
Gets the GGUF tensor descriptor supplying storage.
IsAlias
Gets whether this binding aliases another tensor.
LogicalDimensions
Gets the normalized logical dimensions.
Ownership
Gets the ownership contract.
Requirement
Gets the tensor requirement.
SourceTensorName
Gets the source tensor name when this binding is an alias.
StorageKind
Gets the storage kind.
TensorBindingExceptionUAIX.LmRuntime.Models.Llama
2 members
Represents a failed LLaMA tensor schema binding operation.
Manifest
Gets the failed binding manifest.
TensorBindingException(UAIX.LmRuntime.Models.Llama.TensorBindingManifest)
Initializes a binding exception from a failed manifest.
manifestTensorBindingManifestUAIX.LmRuntime.Models.Llama
5 members
Represents the result of LLaMA tensor binding.
Bindings
Gets bound tensor entries.
Diagnostics
Gets binding diagnostics.
IsComplete
Gets a value indicating whether every required tensor was bound without diagnostics.
ThrowIfIncomplete
Throws when the manifest contains one or more diagnostics.
TryGetBinding(UAIX.LmRuntime.Models.Llama.LlamaTensorRole,System.Nullable<int>,UAIX.LmRuntime.Models.Llama.TensorBindingEntry@)
Attempts to find one bound tensor by semantic role and optional block index.
roleblockIndexentryReturns: True when try get binding succeeds for the supplied values; otherwise, false.
TensorBindingOptionsUAIX.LmRuntime.Models.Llama
4 members
Configures semantic validation performed by UAIX.LmRuntime.Models.Llama.LlamaTensorBinder.
AllowTiedOutputProjection
Gets whether a missing output.weight may alias token_embd.weight.
ValidateByteLengths
Gets whether physical byte lengths must match the registered tensor type traits.
ValidateFileBounds
Gets whether tensor ranges must fit inside the parsed source file length when available.
ValidateSemanticShapes
Gets whether dimensions derived from model metadata must match the GGUF storage shape.
TensorBindingOwnershipUAIX.LmRuntime.Models.Llama
2 members
Identifies ownership for a bound tensor payload.
BorrowedAlias
The binding borrows storage through another tensor binding.
BorrowedModelStorage
The binding borrows storage owned by the loaded model.
TensorBindingStorageKindUAIX.LmRuntime.Models.Llama
2 members
Identifies where a bound tensor payload is stored.
Alias
The tensor is an alias of another bound tensor.
MemoryMappedFile
The tensor remains in the GGUF memory-mapped artifact.
WeightSourceStorageDiagnosticsUAIX.LmRuntime.Models.Llama
7 members
Describes immutable storage used by one deterministic reference weight source.
ByteLength
Gets the physical byte length.
DataType
Gets the logical runtime data type.
IsAlias
Gets a value indicating whether this source aliases another semantic binding.
IsMemoryMapped
Gets a value indicating whether the source borrows memory-mapped storage.
ManagedCopiedByteCount
Gets the number of bytes copied into persistent managed model-weight storage.
StorageType
Gets the GGML physical storage type.
TensorName
Gets the semantic tensor name.
A mapped session reads supported weight storage through mapped sources. A materialized session copies compatible weights into managed reference structures. The manifest and materialization records expose the chosen ownership and copied-byte behavior.
No. Configuration validation is one gate. Required tensors, storage support, tokenizer compatibility, binding, context limits, and a real execution stage must also pass.
They should not be. Use the model hash and configuration, tokenizer, and cache-layout fingerprints as strict compatibility checks, plus a bounded size and trusted path policy.
No. It is a legible correctness and parity anchor. Performance claims require retained measurements for the exact model, hardware, settings, and code path.