From Tokens to Transformers: LLM Foundations Tutor

Ravikumar Gelli, Ph.D.
FAMU-FSU College of Engineering

Students identify knowledge gaps in their understanding of Large Language Models (LLM) with an AI tutor, working to explain complex concepts in their own words.

Introducing this Spark

Students often memorize Large Language Model (LLM) terminology without developing a connected understanding of how tokens, embeddings, positional information, attention, and transformer components work together. This AI Spark uses a custom Gemini Gem as an adaptive Socratic tutor that diagnoses prior understanding, provides progressive hints, corrects misconceptions, and connects foundational concepts to GenAI systems engineering.

Learning Outcome

After completing this activity, students will be able to explain a selected LLM foundation concept in their own words, connect it to the transformer/LLM processing pipeline, identify and correct a common misconception, and evaluate the quality and limitations of an AI tutor response rather than accepting it uncritically.

Featured AI Tools

Gemini Gem

Featured Skills

Implementation Guide for Instructors

The information below is provided to help instructors implement this AI Spark learning activity in other courses. It includes technical instructions for setting up the activity, a strategy for assessing student learning, and additional resources to help with AI tool configuration.

Overview

In this Gemini Gem-based AI Spark, students interact with a custom "From Tokens to Transformers: LLM Foundations Tutor" designed to strengthen conceptual understanding of LLM foundations through adaptive Socratic tutoring. The Gem diagnoses prior understanding, asks one question at a time, provides progressive hints rather than immediately revealing answers, corrects common misconceptions, adapts explanations from foundational to advanced levels, and adds an engineering lens connecting concepts to real GenAI system behavior. Students document the interaction in a Learning Log and complete a short explanation, AI judgment, and engineering reflection, turning AI use into a structured learning and evaluation activity rather than a shortcut.

Technical Instructions
  1. Gem Creation: Go to gemini.google.com using an FSU Google for Education account. Click Gems in the left sidebar and choose New Gem. 
  2. Naming & Tool Setting: Name the Gem "From Tokens to Transformers: LLM Foundations Tutor" and select Guided Learning as the default tool. 
  3. Description: Enter: "An adaptive Socratic tutor that helps engineering students develop conceptual understanding of large language model foundations, including tokenization, embeddings, positional information, self-attention, transformer architecture, and next-token prediction."
  4. System Prompt: In the Instructions field, paste the comprehensive system prompt provided in the Resources tab. Click Save and test using diagnostic-first and progressive-hint prompts (version 0.4 validated). 
  5. Canvas Setup: Provide the shared Gem link within Canvas instructions. Ensure students sign in with their institutional FSU credentials so that custom behavioral constraints operate correctly. 

 

Assessment Strategy

Learning Log: Assessed for at least five meaningful exchanges demonstrating genuine iterative engagement, evidence of reasoning, and use of the tutor's questions/hints rather than simple answer extraction. 

Concept Explanation and Engineering Reflection: Evaluated using a 10-point rubric: meaningful engagement (2), conceptual understanding (3), critical evaluation/AI judgment (2), engineering reflection (2), and completion/professional engagement (1).

Resources

Link to the Shared Gem: From Tokens to Transformers: LLM Foundations Tutor

Knowledge Source: None required for the current version. The Gem is intentionally designed to teach foundational concepts directly from its configured instructions. 

Deployment Notes: Advise students to use prompts like "Practice" or "Challenge my understanding..." for turn-by-turn Socratic interaction; the phrase "Quiz me" can trigger Gemini's native multi-question quiz layout. 

Key Behavioral Constraints: The Gem acts as an adaptive tutor rather than an answer generator. It enforces a strict diagnostic-first rule, asks one main question at a time, uses a four-stage progressive hint sequence, refuses copy-ready answers for graded coursework, and redirects out-of-scope queries. 

Instructions for Students

In addition to helping students understand the purpose of this AI-based learning activity, the information below provides step-by-step instructions for completing the assignment and includes a micro training on how to use the featured AI tool(s).

Overview

This activity uses a Gemini Gem, a custom AI assistant configured by your instructor as a Large Language Model (LLM) Foundations Tutor. Unlike a general chatbot, this Gem follows a defined tutoring workflow: it first diagnoses what you know, asks one question at a time, uses progressive hints when you are stuck, corrects misconceptions, adapts the technical depth to your level, and connects concepts to GenAI systems engineering. The goal is not to use AI to obtain a ready-made answer, but to reason through an LLM foundation concept, respond to hints, explain the concept back in your own words, and evaluate the AI output itself.

Assignment Instructions

Step 1. Choose a Foundation Concept: Choose one concept assigned by the instructor or select from tokenization, embeddings, positional information, self-attention, multi-head attention, transformer architecture, or next-token prediction. Before opening the Gem, write 1-2 sentences describing what you currently believe about the concept. 

Step 2. Open the Gem: Sign in to Gemini using your FSU Google for Education account and open the shared "From Tokens to Transformers: LLM Foundations Tutor" Gem link. 

Step 3. Begin a Guided Session: Start with a prompt such as "Teach me embeddings," "Practice tokenization with me," or "Challenge my understanding of positional information." Respond to the diagnostic question and continue for at least five meaningful exchanges without asking for the final answer. 

Step 4. Complete Challenge and Teach-Back: Use the prompt "Challenge my understanding of [concept]. Ask one conceptual question at a time." Work through the questions and hints. Before ending, explain the key concept back to the Gem in your own words and review its feedback. 

Step 5. Create Learning Log: Capture a screenshot or PDF export showing at least five meaningful exchanges demonstrating reasoning progression. 

Step 6. Submit to Canvas: Submit your Learning Log along with an AI Insight and Engineering Reflection (approx. 250-300 words). 

What to Submit:

  • Learning Log: Screenshot or PDF export showing at least five meaningful exchanges with the Gem. 
  • Concept Explanation & Engineering Reflection (250-300 words): Addressing:
    • Concept Explanation: Explain the selected LLM concept in your own words and connect it to at least one other component of the LLM pipeline. 
    • AI Judgment: Identify one Gem response that was especially useful, incomplete, questionable, or worth verifying, and explain why. 
    • Engineering Reflection: Explain one practical implication of the concept for GenAI system design (latency, memory, context length, computational cost, reliability, or deployment). 
    • AI Insight: Conclude with one sentence labeled "AI Insight" stating your most important takeaway.
How to Use This Tool

What is a Gem? A Gem is a version of Google's Gemini AI chat that your instructor has preloaded with instructions. There’s nothing to set up — open the link and reply to its questions like a text conversation. Read more about Google Gems. 

  • Sign in. Open the Gem link and sign in with your Google account. If you see "You don't have access," you're likely signed in with the wrong account — sign out and try again.  
  • Send a message. Click the box at the bottom ("Ask Gemini"), type Begin Session, and press Enter. Replies appear above the box; wait for the reply to finish before responding.  
  • Reply in the same chat. The Gem remembers the whole conversation. Don't click "New chat", which will start the session over. 
  • Lost the page? Go to gemini.google.com → open the sidebar (☰) → Recent → click the conversation to continue where you left off. 
  • Copy the output. Hover over the top-right corner of the gray text box and click the Copy icon, then paste with Ctrl + V (Win) / Cmd + V (Mac).  
  • Good to know. Type text, rather than use voice (Gems don't work with Gemini Live). Don't enter passwords or sensitive personal information. Keep in mind that the Gem may ask you to expand a short answer.  
  • Access via FSU. Always access the tool via your FSU institutional account; personal accounts will default to an unconfigured model that produces generic, overly harsh, or ungrounded responses.