Skip to main content

Python module

max.pipelines.architectures.phi3

Phi-3 transformer architecture for text generation.

Phi3Model​

class max.pipelines.architectures.phi3.Phi3Model(pipeline_config, session, devices, kv_cache_config, weights, adapter=None, return_logits=ReturnLogits.LAST_TOKEN)

source

Bases: LlamaModelBase

Phi 3 pipeline model implementation.

Parameters:

norm_method​

norm_method: Literal['rms_norm'] | Literal['layer_norm'] = 'rms_norm'

source

Normalization layer.