Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add warning for unsupported 'use_fast' parameter in AriaProcessor #12

Merged
merged 1 commit into from
Oct 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions aria/model/processing_aria.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
# under the License.

import inspect
import logging
import re
from typing import List, Optional, Union

Expand All @@ -34,6 +35,8 @@

from .vision_processor import AriaVisionProcessor

logger = logging.getLogger(__name__)


class AriaProcessor(ProcessorMixin):
"""
Expand Down Expand Up @@ -229,6 +232,7 @@ def from_pretrained(
**cls._extract_kwargs(AriaVisionProcessor.from_pretrained, **kwargs),
)
if "use_fast" in kwargs:
logger.warning("use_fast is not supported for AriaProcessor. Ignoring...")
kwargs.pop("use_fast")
try:
tokenizer = AutoTokenizer.from_pretrained(
Expand Down
Loading