fast
fast
¶
FAST action processor loading compatible with transformers>=5.0.
Transformers 5.0 changed ProcessorMixin._get_arguments_from_pretrained to load any attribute containing "tokenizer" from a subfolder. This breaks custom processors like physical-intelligence/fast's UniversalActionProcessor, whose bpe_tokenizer attribute has no corresponding subfolder on the hub. This module bypasses AutoProcessor.from_pretrained by loading the config and tokenizer separately, then constructing the processor directly.
load_fast_processor
¶
Load a FAST action processor from a HuggingFace hub model or local directory.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model_path
|
str
|
HuggingFace model ID or local directory path. |
required |
Returns:
| Type | Description |
|---|---|
ProcessorMixin
|
Instantiated FAST action processor. |