opensi·si

The NeuronTracedModel class is available for instantiating a base Neuron model without a specific head.

Auto Model Classes

Generic model classes

NeuronTracedModel

The NeuronTracedModel class is available for instantiating a base Neuron model without a specific head. It is used as the base class for all tasks but text generation.

[[autodoc]] modeling_traced.NeuronTracedModel

Natural Language Processing

The following Neuron model classes are available for natural language processing tasks.

NeuronModelForFeatureExtraction

[[autodoc]] modeling.NeuronModelForFeatureExtraction

NeuronSentenceTransformers

[[autodoc]] modeling_sentence_transformers.NeuronSentenceTransformers

NeuronModelForMaskedLM

[[autodoc]] modeling.NeuronModelForMaskedLM

NeuronModelForSequenceClassification

[[autodoc]] modeling.NeuronModelForSequenceClassification

NeuronModelForQuestionAnswering

[[autodoc]] modeling.NeuronModelForQuestionAnswering

NeuronModelForTokenClassification

[[autodoc]] modeling.NeuronModelForTokenClassification

NeuronModelForMultipleChoice

[[autodoc]] modeling.NeuronModelForMultipleChoice

NeuronModelForCausalLM

[[autodoc]] models.inference.modeling_utils.NeuronModelForCausalLM - forward

NeuronModelForSeq2SeqLM

[[autodoc]] modeling_seq2seq.NeuronModelForSeq2SeqLM - forward

Computer Vision

The following Neuron model classes are available for computer vision tasks.

NeuronModelForImageClassification

[[autodoc]] modeling.NeuronModelForImageClassification

NeuronModelForSemanticSegmentation

[[autodoc]] modeling.NeuronModelForSemanticSegmentation

NeuronModelForObjectDetection

[[autodoc]] modeling.NeuronModelForObjectDetection

Audio

The following auto classes are available for the following audio tasks.

NeuronModelForAudioClassification

[[autodoc]] modeling.NeuronModelForAudioClassification

NeuronModelForAudioFrameClassification

[[autodoc]] modeling.NeuronModelForAudioFrameClassification

NeuronModelForCTC

[[autodoc]] modeling.NeuronModelForCTC

NeuronModelForXVector

[[autodoc]] modeling.NeuronModelForXVector

Stable Diffusion

The following Neuron model classes are available for stable diffusion tasks.

NeuronStableDiffusionPipeline

[[autodoc]] modeling_diffusion.NeuronStableDiffusionPipeline - call

NeuronStableDiffusionImg2ImgPipeline

[[autodoc]] modeling_diffusion.NeuronStableDiffusionImg2ImgPipeline - call

NeuronStableDiffusionInpaintPipeline

[[autodoc]] modeling_diffusion.NeuronStableDiffusionInpaintPipeline - call

NeuronLatentConsistencyModelPipeline

[[autodoc]] modeling_diffusion.NeuronLatentConsistencyModelPipeline - call

NeuronStableDiffusionControlNetPipeline

[[autodoc]] modeling_diffusion.NeuronStableDiffusionControlNetPipeline - call

NeuronPixArtAlphaPipeline

[[autodoc]] modeling_diffusion.NeuronPixArtAlphaPipeline - call

NeuronStableDiffusionXLPipeline

[[autodoc]] modeling_diffusion.NeuronStableDiffusionXLPipeline - call

NeuronStableDiffusionXLImg2ImgPipeline

[[autodoc]] modeling_diffusion.NeuronStableDiffusionXLImg2ImgPipeline - call

NeuronStableDiffusionXLInpaintPipeline

[[autodoc]] modeling_diffusion.NeuronStableDiffusionXLInpaintPipeline - call

NeuronStableDiffusionXLControlNetPipeline

[[autodoc]] modeling_diffusion.NeuronStableDiffusionXLControlNetPipeline - call

Source and license

Source: AWS Trainium & Inferentia documentation, adapted for this site. Licensing and attribution follow the terms of the upstream project.