Run this model with HF Jobs
Run IvanLayer7/ModernBERT-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/IvanLayer7/ModernBERT-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/IvanLayer7/ModernBERT-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 IvanLayer7/ModernBERT-domain-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use IvanLayer7/ModernBERT-domain-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="IvanLayer7/ModernBERT-domain-classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("IvanLayer7/ModernBERT-domain-classifier") model = AutoModelForSequenceClassification.from_pretrained("IvanLayer7/ModernBERT-domain-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
End of training
Browse filesFiles changed (2)
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061---library_name: transformerslicense: apache-2.0base_model: answerdotai/ModernBERT-basetags:- generated_from_trainermetrics:- f1model-index:- name: ModernBERT-domain-classifier results: []---
<!-- 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. -->
# ModernBERT-domain-classifier
This model is a fine-tuned version of [answerdotai/ModernBERT-base](https://huggingface.co/answerdotai/ModernBERT-base) on the None dataset.It achieves the following results on the evaluation set:- Loss: 1.0051- F1: 0.4552
## Model description
More information needed
## Intended uses & limitations
More information needed
## Training and evaluation data
More information needed
## Training procedure
### Training hyperparameters
The following hyperparameters were used during training:- learning_rate: 5e-05- train_batch_size: 4- eval_batch_size: 2- seed: 42- optimizer: Use 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: 1
### Training results
| Training Loss | Epoch | Step | Validation Loss | F1 ||:-------------:|:-----:|:----:|:---------------:|:------:|| 1.1249 | 1.0 | 167 | 1.0051 | 0.4552 |
### Framework versions
- Transformers 4.48.0.dev0- Pytorch 2.5.0+cu124- Datasets 3.1.0- Tokenizers 0.21.0123version https://git-lfs.github.com/spec/v1oid sha256:07cb52d5df0f4cb92a43eb417593409f44f855d473591db8b21394a5ec2122a4size 6324123version https://git-lfs.github.com/spec/v1oid sha256:9f75afcf9dc506b94f513da6834b5dc9a4304501ceb16d90e62a325f24f61334size 6995
README.mdAdded+61
runs/Jan07_18-35-36_cf24861113a8/events.out.tfevents.1736274937.cf24861113a8.11561.2+2-2