Class DeploymentConfiguration
- Namespace
- AiDotNet.Deployment.Configuration
- Assembly
- AiDotNet.dll
Aggregates all deployment-related configurations. Used to pass deployment settings from AiModelBuilder to AiModelResult.
public class DeploymentConfiguration
- Inheritance
-
DeploymentConfiguration
- Inherited Members
Properties
ABTesting
Gets or sets the A/B testing configuration (null = disabled).
public ABTestingConfig? ABTesting { get; set; }
Property Value
Caching
Gets or sets the caching configuration (null = use defaults).
public CacheConfig? Caching { get; set; }
Property Value
Compression
Gets or sets the compression configuration (null = no compression).
public CompressionConfig? Compression { get; set; }
Property Value
Remarks
For Beginners: When configured, compression is automatically applied during model serialization (saving) and reversed during deserialization (loading). This reduces model file sizes by 50-90% with minimal accuracy impact.
Export
Gets or sets the export configuration (null = use defaults).
public ExportConfig? Export { get; set; }
Property Value
GpuAcceleration
Gets or sets the GPU acceleration configuration (null = use defaults).
public GpuAccelerationConfig? GpuAcceleration { get; set; }
Property Value
Profiling
Gets or sets the profiling configuration (null = disabled).
public ProfilingConfig? Profiling { get; set; }
Property Value
Remarks
For Beginners: When configured, profiling measures the performance of training and inference operations. The profiling report will be available in AiModelResult.
Quantization
Gets or sets the quantization configuration (null = no quantization).
public QuantizationConfig? Quantization { get; set; }
Property Value
Telemetry
Gets or sets the telemetry configuration (null = use defaults).
public TelemetryConfig? Telemetry { get; set; }
Property Value
Versioning
Gets or sets the versioning configuration (null = use defaults).
public VersioningConfig? Versioning { get; set; }
Property Value
Methods
Create(QuantizationConfig?, CacheConfig?, VersioningConfig?, ABTestingConfig?, TelemetryConfig?, ExportConfig?, GpuAccelerationConfig?, CompressionConfig?, ProfilingConfig?)
Creates a deployment configuration from individual config objects.
public static DeploymentConfiguration Create(QuantizationConfig? quantization, CacheConfig? caching, VersioningConfig? versioning, ABTestingConfig? abTesting, TelemetryConfig? telemetry, ExportConfig? export, GpuAccelerationConfig? gpuAcceleration, CompressionConfig? compression = null, ProfilingConfig? profiling = null)
Parameters
quantizationQuantizationConfigcachingCacheConfigversioningVersioningConfigabTestingABTestingConfigtelemetryTelemetryConfigexportExportConfiggpuAccelerationGpuAccelerationConfigcompressionCompressionConfigprofilingProfilingConfig