Flashcards: Where does generation run?

What are the options for where LLM generation runs in a mobile RAG app?