Text Classification
Transformers
TensorBoard
Safetensors
bert
Trained with AutoTrain
text-embeddings-inference
Instructions to use institutional/institutional-books-topic-classifier-bert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use institutional/institutional-books-topic-classifier-bert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="institutional/institutional-books-topic-classifier-bert")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("institutional/institutional-books-topic-classifier-bert") model = AutoModelForSequenceClassification.from_pretrained("institutional/institutional-books-topic-classifier-bert", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download training_params.json from institutional/institutional-books-topic-classifier-bert: direct link, hf CLI and curl.
- Browser
- Download file 905 Bytes
-
https://huggingface.co/institutional/institutional-books-topic-classifier-bert/resolve/refs%2Fpr%2F2/training_params.json
- Command line
-
hf download hf://institutional/institutional-books-topic-classifier-bert@refs/pr/2/training_params.json
-
curl -L -o training_params.json https://huggingface.co/institutional/institutional-books-topic-classifier-bert/resolve/refs%2Fpr%2F2/training_params.json
905 Bytes
| { | |
| "data_path": "institutional-books-topic-classifier-bert/autotrain-data", | |
| "model": "google-bert/bert-base-multilingual-uncased", | |
| "lr": 5e-05, | |
| "epochs": 3, | |
| "max_seq_length": 512, | |
| "batch_size": 16, | |
| "warmup_ratio": 0.1, | |
| "gradient_accumulation": 1, | |
| "optimizer": "adamw_torch", | |
| "scheduler": "linear", | |
| "weight_decay": 0.0, | |
| "max_grad_norm": 1.0, | |
| "seed": 42, | |
| "train_split": "train", | |
| "valid_split": "validation", | |
| "text_column": "autotrain_text", | |
| "target_column": "autotrain_label", | |
| "logging_steps": -1, | |
| "project_name": "institutional-books-topic-classifier-bert", | |
| "auto_find_batch_size": false, | |
| "mixed_precision": "fp16", | |
| "save_total_limit": 1, | |
| "push_to_hub": true, | |
| "eval_strategy": "epoch", | |
| "username": "instdin", | |
| "log": "tensorboard", | |
| "early_stopping_patience": 5, | |
| "early_stopping_threshold": 0.01 | |
| } |