Machine Learning Experiments
An interactive laboratory for exploring and experimenting with various machine learning models, from text generation to image classification. Run models directly in your browser with Transformers.js.
Experiments
Text Generation
activeGenerate text using GPT-2 and other language models
Sentiment Analysis
activeAnalyze the sentiment of text input in real-time
Image Classification
plannedClassify images using Vision Transformer models
About This Lab
The Machine Learning Experiments lab provides a hands-on environment for exploring state-of-the-art AI models without requiring any backend infrastructure. All models run directly in your browser using WebAssembly and modern web APIs.
Available Experiments
Text Generation
Use transformer-based language models to generate coherent text continuations. Great for understanding how autoregressive language models work.
Try it: Enter a prompt and watch the model generate text one token at a time.
Sentiment Analysis
Analyze the emotional tone of any text input. The model classifies text as positive, negative, or neutral with confidence scores.
Try it: Enter a movie review, tweet, or any text to see its sentiment analyzed.
Image Classification (Coming Soon)
Upload or capture images to have them classified by Vision Transformer models trained on ImageNet.
Technical Details
All experiments use models from the Hugging Face Hub, converted to ONNX format for browser execution via Transformers.js. This approach offers several advantages:
- Privacy: Your data never leaves your device
- Speed: After initial model download, inference is fast
- Accessibility: No GPU required, works on any modern browser
Getting Started
- Select an experiment from the sidebar
- Provide input (text or image)
- Click “Run” to see results
- Explore model outputs and confidence scores
Model Information
| Experiment | Model | Size | Task |
|---|---|---|---|
| Text Generation | Xenova/distilgpt2 | 82M | text-generation |
| Sentiment | Xenova/distilbert-base-uncased-finetuned-sst-2-english | 67M | text-classification |
| Image | Xenova/vit-base-patch16-224 | 86M | image-classification |