Class HfModelAttribute
Identifies the parser for an implementation of IMapper
Inherited Members
Namespace: Unity.InferenceEngine.Tokenization.Parsers.HuggingFace
Assembly: Unity.InferenceEngine.Tokenization.dll
Syntax
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
public class HfModelAttribute : HfAttribute
Constructors
HfModelAttribute(string)
Initializes a new instance of the HfModelAttribute type.
Declaration
public HfModelAttribute(string type)
Parameters
| Type | Name | Description |
|---|---|---|
| string | type | The type name of the model (mapper). It corresponds to the name in the Hugging Face JSON configuration. |
Fields
Type
The type of decoder.
Declaration
public readonly string Type
Field Value
| Type | Description |
|---|---|
| string |