PES
EN English 한국어 日本語 中文 हिन्दी বাংলা اردو Español Português Français Deutsch Русский العربية Bahasa Indonesia Tiếng Việt ไทย Türkçe

How to enable notifications

Notifications are unavailable in this browser or on this address. Try a supported browser on the secure PES site.

If notifications are blocked, allow them in your browser settings.

  1. Open the site controls beside the address bar, or your browser’s site settings. Set Notifications for this site to Allow.
  2. In your device settings, allow notifications for your browser and check Do Not Disturb or Focus.
  3. Return to PES, reload the page, and use the bell to enable notifications.

On iPhone or iPad, add PES to your Home Screen, open it there, then allow notifications.

My learning progress
  1. How to use AI
  2. Terminal commands
  3. Advanced AI
  4. Vibe coding
  5. AI certification Getting ready
  6. Keyboard
See details
Build AI Yourself · Lab

How is AI made?

You don't need to know code. Feed in data and watch AI being built through tokenization → vectorization → training → generation. If you want, you can also build it with real Python code.

A toy word-bigram model: it looks only at the previous word. It does not learn embeddings, attention, or facts. The word splitter is a teaching example, not an LLM tokenizer.

  1. Data prep
  2. ① Tokenization
  3. ② IDs and one-hot vectors
  4. ③ Training
  5. ④ Generation

Data prep

Collect a few short example sentences. Repetition changes the counts; more text is useful only if it fits your purpose. Each sentence ends separately.

① Tokenization

This demo splits sentences into word-like pieces. Real LLM tokenizers can use words, word pieces, characters, and bytes. Tokenization is about representing text, not about text being too long to understand.

② IDs and one-hot vectors

An ID is a number used as a label. A one-hot vector marks that ID's position with 1. Neither tells us which words have similar meanings. A learned embedding is a different kind of vector; this demo does not train one.

③ Training

Count each transition, including sentence endings. A candidate's probability is its count divided by the total count after the selected word. Neural language models learn weights instead of just storing this small table.

④ Generation

Choose the most likely candidate (greedy), or draw according to probabilities (sampling). Sentence-end stops generation. Sampling can produce the same result again. Generated text is not checked for truth.

Word Number Number vector (one-hot)

Pick a word to see what the AI learned about which word is likely to come next:

Percentages are rounded; their displayed total may differ slightly from 100%.

This word only appears at the end of a sentence, so there's no next word. Try another word.

The table shows observed frequencies at temperature 1. Temperature changes sampling probabilities, not the learned counts or factual accuracy.

A sentence your AI made

Preparing the Python runtime…

0 XP

My Code

Output

Press [Run] and the result will appear here.

Guidelines

AI

AI Certification

Study

Vibe Coding

Game

Practice

Tutors

Chat

Forum

Create

Community

More

Glossary

Pick a word you don't know. You'll see a simple explanation and related terms.

No matching term yet.

Pick a term to see its explanation.