StarCoder2ModelBuilder<T>

Helpers & Utilities · AiDotNet.ModelLoading.Pretrained

Reconstructs a StarCoder2 decoder from a Hugging Face HuggingFaceConfig and loads its weights. StarCoder2 differs from the dense LLaMA stack by using true LayerNorm with bias, biased attention projections, and a non-gated two-matrix GELU MLP (c_fc → GELU → c_proj) with biases.

Properties

Property Summary
IReadOnlyList<string> SupportedArchitectures { get; } The architecture family names this builder recognizes.

Methods

Method Summary
NeuralNetwork<T> Build(HuggingFaceConfig config, INamedTensorSource weights, int warmupSequenceLength) Builds and weight-loads a StarCoder2 decoder.