Run this model with HF Jobs
Run nvidia/domain-classifier 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/nvidia/domain-classifier. 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/nvidia/domain-classifier 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 nvidia/domain-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nvidia/domain-classifier with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("nvidia/domain-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
#2
by BoLiu - opened
8 unmodified lines910111213142 unmodified lines17181920212223242526271 unmodified line2930313233341 unmodified line3637383940414243444546478 unmodified lines# Model ArchitectureThe model architecture is Deberta V3 BaseContext length is 512 tokens# Training (details)2 unmodified lines- 500k Wikepedia articles, curated using Wikipedia-API: https://pypi.org/project/Wikipedia-API/## Training steps:- Train a first model on Wikipedia data- Randomly sample 1 million Common Crawl data; label them using Google Cloud API- Predict these 1 million samples using the first model- Google’s labels and first model’s prediction agree on about 500k samples- Split these 500k samples 80%/20%. Train the final model on the 80%, and evaluate on the 20%# How To Use This Model1 unmodified lineThe model takes one or several paragraphs of text as input.Example input:q Directions1. Mix 2 flours and baking powder together1 unmodified line3. Heat frying pan on medium4. Pour batter into pan and then put blueberries on top before flipping5. Top with desired toppings!## OutputThe model outputs one of the 26 domain classes as the predicted domain for each input sample.Example output:Food_and_Drink# Evaluation BenchmarksAccuracy on 500 human annotated samples8 unmodified lines91011121314152 unmodified lines181920212223241 unmodified line262728293031321 unmodified line3435363738394041424344454647488 unmodified lines# Model ArchitectureThe model architecture is Deberta V3 BaseContext length is 512 tokens# Training (details)2 unmodified lines- 500k Wikepedia articles, curated using Wikipedia-API: https://pypi.org/project/Wikipedia-API/## Training steps:Model was trained in multiple rounds using Wikipedia and Common Crawl data, labeled by a combination of pseudo labels and Google Cloud API.# How To Use This Model1 unmodified lineThe model takes one or several paragraphs of text as input.Example input:```q Directions1. Mix 2 flours and baking powder together1 unmodified line3. Heat frying pan on medium4. Pour batter into pan and then put blueberries on top before flipping5. Top with desired toppings!```## OutputThe model outputs one of the 26 domain classes as the predicted domain for each input sample.Example output:```Food_and_Drink```# Evaluation BenchmarksAccuracy on 500 human annotated samples
README.md+6-5