Does transformers work for mobile apps?

Basic question.

Does transformers work for mobile apps (Android, iOS)?

If I implement this in py file:

from transformers import pipeline
    summarizer = pipeline("summarization", model="t5-base")
    summary_text = summarizer(text, max_length=28, min_length=5, do_sample=False)[0]['summary_text']

Will this run? Or is there a special library I need to use for mobile phones?

2 Likes

No, I think you can not install and call pytorch(not pytorch mobile) in mobile.
Mobile is always second choice for ML/DL, they only consider for PC and publishing papers