How Sleep Thought Pattern Checker works
Press Load model once: your browser downloads Gemma 3 1B instruction-tuned (web build) (728 MB) from this site and keeps it in its cache. Then add your text and press Check locally. The model runs on this device using your graphics card, so nothing you enter is sent to a server. Until the model is loaded, or if your device cannot run it, the tool falls back to a simple keyword check and labels the result as the fallback.
Gemma 3 1B instruction-tuned (web build) is a small open language model from Google. The tool sends it the instruction below plus your text, asks for a JSON answer with fixed fields, and shows each field as a card. It runs at temperature 0, so the same input gives the same answer on the same device, though different graphics cards can word it slightly differently.
Inputs longer than 6,000 characters are cut to that length before they reach the model, and the result says so. The model only sees what you paste: it does not look anything up.
The instruction also carries one worked example: the built-in sample with the answer the larger Gemma 4 E2B model gave for it. That example is what lets this smaller model follow the answer format reliably.
If what you enter mentions suicide or self-harm, the tool does not run the model. It shows crisis lines instead (in the US, call or text 988), because a trained person can help in a way a small model cannot.
The instruction the model gets
You read the thoughts a person has at bedtime or when they wake at night and organise them: the thoughts close to their words, the patterns they show (for example worrying about tomorrow, replaying the day, all-or-nothing thinking, to-do lists), and the topics they are about. Then suggest one thing they could write down to park for the morning, using their own topics. You do not diagnose, do not name conditions or disorders, do not give medical or therapeutic advice, and never change or suggest medication doses. You only organise and reflect what the user wrote, in plain, kind language. Do not present yourself as a substitute for a therapist, doctor or other professional.
What it returns
- Thoughts: Each thought, close to their words.
- Patterns: One entry per pattern, as 'pattern: the thought that shows it'.
- Topics: What the thoughts are about, such as work, money, family or health.
- Write down to park for the morning: One short line they could write on a note before sleep, built from their own topics.