Text Classification
Transformers
TensorFlow
English
distilbert
generated_from_keras_callback
text-embeddings-inference
Run this model with HF Jobs
Run FourthBrainGenAI/distilbert_classifier_newsgroups 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/FourthBrainGenAI/distilbert_classifier_newsgroups. 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/FourthBrainGenAI/distilbert_classifier_newsgroups 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 FourthBrainGenAI/distilbert_classifier_newsgroups with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use FourthBrainGenAI/distilbert_classifier_newsgroups with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="FourthBrainGenAI/distilbert_classifier_newsgroups")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("FourthBrainGenAI/distilbert_classifier_newsgroups") model = AutoModelForSequenceClassification.from_pretrained("FourthBrainGenAI/distilbert_classifier_newsgroups", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Chris Alexiuk commited on
Commit ·
37a30ac
1
Parent(s): d6a713b
Upload TFDistilBertForSequenceClassification
Browse filesFiles changed (3)
- README.mdAdded+48
- config.jsonAdded+67
- tf_model.h5Added+3
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748---license: apache-2.0tags:- generated_from_keras_callbackmodel-index:- name: distilbert_classifier_newsgroups results: []---
<!-- This model card has been generated automatically according to the information Keras had access to. You shouldprobably proofread and complete it, then remove this comment. -->
# distilbert_classifier_newsgroups
This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on an unknown dataset.It achieves the following results on the evaluation set:
## 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:- optimizer: {'name': 'Adam', 'weight_decay': None, 'clipnorm': None, 'global_clipnorm': None, 'clipvalue': None, 'use_ema': False, 'ema_momentum': 0.99, 'ema_overwrite_frequency': None, 'jit_compile': True, 'is_legacy_optimizer': False, 'learning_rate': {'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 2e-05, 'decay_steps': 1908, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}}, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False}- training_precision: float32
### Training results
### Framework versions
- Transformers 4.28.0- TensorFlow 2.12.0- Datasets 2.12.0- Tokenizers 0.13.312345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667{ "_name_or_path": "distilbert-base-uncased", "activation": "gelu", "architectures": [ "DistilBertForSequenceClassification" ], "attention_dropout": 0.1, "dim": 768, "dropout": 0.1, "hidden_dim": 3072, "id2label": { "0": "LABEL_0", "1": "LABEL_1", "2": "LABEL_2", "3": "LABEL_3", "4": "LABEL_4", "5": "LABEL_5", "6": "LABEL_6", "7": "LABEL_7", "8": "LABEL_8", "9": "LABEL_9", "10": "LABEL_10", "11": "LABEL_11", "12": "LABEL_12", "13": "LABEL_13", "14": "LABEL_14", "15": "LABEL_15", "16": "LABEL_16", "17": "LABEL_17", "18": "LABEL_18", "19": "LABEL_19" }, "initializer_range": 0.02, "label2id": { "LABEL_0": 0, "LABEL_1": 1, "LABEL_10": 10, "LABEL_11": 11, "LABEL_12": 12, "LABEL_13": 13, "LABEL_14": 14, "LABEL_15": 15, "LABEL_16": 16, "LABEL_17": 17, "LABEL_18": 18, "LABEL_19": 19, "LABEL_2": 2, "LABEL_3": 3, "LABEL_4": 4, "LABEL_5": 5, "LABEL_6": 6, "LABEL_7": 7, "LABEL_8": 8, "LABEL_9": 9 }, "max_position_embeddings": 512, "model_type": "distilbert", "n_heads": 12, "n_layers": 6, "pad_token_id": 0, "qa_dropout": 0.1, "seq_classif_dropout": 0.2, "sinusoidal_pos_embds": false, "tie_weights_": true, "transformers_version": "4.28.0", "vocab_size": 30522}123version https://git-lfs.github.com/spec/v1oid sha256:60eb3f0a77fbd12ae55341b6fff595039344eea88c941396d2dcb98dffd40472size 268007104README.mdAdded+48
config.jsonAdded+67
tf_model.h5Added+3