Run this model with HF Jobs
Run TinyModels/prompt-intent-mini on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/TinyModels/prompt-intent-mini. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/TinyModels/prompt-intent-mini on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use TinyModels/prompt-intent-mini with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TinyModels/prompt-intent-mini with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="TinyModels/prompt-intent-mini")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("TinyModels/prompt-intent-mini") model = AutoModelForSequenceClassification.from_pretrained("TinyModels/prompt-intent-mini", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files6 unmodified lines78910111213141516171819202122232425262728293031323334353637383940414243444546474849505152536 unmodified linesmodel-index:- name: intent_modelresults: []---<!-- This model card has been generated automatically according to the information the Trainer had access to. Youshould probably proofread and complete it, then remove this comment. --># intent_modelThis model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on the None dataset.## Model descriptionMore information needed## Intended uses & limitationsMore information needed## Training and evaluation dataMore information needed## Training procedure### Training hyperparametersThe following hyperparameters were used during training:- learning_rate: 5e-05- train_batch_size: 16- eval_batch_size: 8- seed: 42- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments- lr_scheduler_type: linear- num_epochs: 5### Training results### Framework versions- Transformers 5.0.0- Pytorch 2.10.0+cu128- Datasets 4.0.0- Tokenizers 0.22.26 unmodified lines78910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091926 unmodified linesmodel-index:- name: intent_modelresults: []language:- en---# prompt-intent-mini**A lightweight model for classifying the intent behind a prompt.**Built by [TinyModels](https://huggingface.co/TinyModels) — small footprint, serious performance.---## What it does`prompt-intent-mini` takes a user prompt as input and returns its intent label — what the user is *actually trying to do* with that prompt. Whether it's a question, a command, a creative request, or something else entirely, the model picks it up fast and with minimal compute.This is useful anywhere you need to route, filter, or understand prompts before passing them downstream — chatbots, pipelines, safety layers, you name it.---## Quick Start```pythonfrom transformers import pipelineclassifier = pipeline("text-classification", model="TinyModels/prompt-intent-mini")result = classifier("Write me a poem about the ocean")print(result)# [{'label': 'creative_generation', 'score': 0.97}]```---## Model Details| Property | Value ||---|---|| **Model type** | Text classification || **Base architecture** | Transformer (encoder) || **Task** | Prompt intent classification || **Size** | Tiny / <50M params || **Framework** | PyTorch + 🤗 Transformers || **Organization** | [TinyModels](https://huggingface.co/TinyModels) |---## Why we built thisMost intent classifiers are either too big to run cheaply or too narrow to generalize. We wanted something that sits at the front of a pipeline and just *works* — fast inference, low memory, no GPU required for most use cases.`prompt-intent-mini` follows the same principle as everything we ship at TinyModels: it does one job well, fits anywhere, and doesn't cost you a GPU bill to run.---## Installation```bashpip install transformers torch```---## Intended Use- Prompt routing in LLM pipelines- Intent-aware moderation or filtering- Chatbot understanding layers- Any application that needs to know *what a user wants* before acting on it---## Limitations- Trained on English prompts. Other languages may see reduced accuracy.- Edge cases with highly ambiguous or mixed-intent prompts may not classify cleanly.- This is a `mini` model — for more complex, multi-label scenarios, a larger variant may be more appropriate.---## Part of the TinyModels familyThis model was created by [TinyModels](https://huggingface.co/TinyModels), a community building small, fast, open models that anyone can run. No paywalls. No gatekeeping.> *Tiny models. Huge ambitions.*
README.md+65-26