Text Classification
Transformers
TensorFlow
ONNX
bert
generated_from_keras_callback
text-embeddings-inference
Run this model with HF Jobs
Run tarekziade/topic_classification 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/tarekziade/topic_classification. 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/tarekziade/topic_classification 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 tarekziade/topic_classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tarekziade/topic_classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="tarekziade/topic_classification")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("tarekziade/topic_classification") model = AutoModelForSequenceClassification.from_pretrained("tarekziade/topic_classification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
ea6e063
1
Parent(s): 524aa1b
use transformers.js converter
Browse filesFiles changed (6)
- config.json+9-9
- onnx/model.onnx+2-2
- onnx/model_quantized.onnx+2-2
- quantize_config.jsonAdded+31
- special_tokens_map.json+35-5
- tokenizer_config.json+51-2
1234518 unmodified lines242526272829303132333435363738393 unmodified lines43444546474849{"_name_or_path": "microsoft/xtremedistil-l6-h256-uncased","architectures": ["BertForSequenceClassification"],18 unmodified lines"initializer_range": 0.02,"intermediate_size": 1024,"label2id": {"Society & Culture": 0,"Science & Mathematics": 1,"Health": 2,"Education & Reference": 3,"Computers & Internet": 4,"Sports": 5,"Business & Finance": 6,"Entertainment & Music": 7,"Family & Relationships": 8,"Politics & Government": 9},"layer_norm_eps": 1e-12,"max_position_embeddings": 512,3 unmodified lines"pad_token_id": 0,"position_embedding_type": "absolute","problem_type": "multi_label_classification","transformers_version": "4.20.1","type_vocab_size": 2,"use_cache": true,"vocab_size": 305221234518 unmodified lines242526272829303132333435363738393 unmodified lines43444546474849{"_name_or_path": "jonaskoenig/topic_classification_04","architectures": ["BertForSequenceClassification"],18 unmodified lines"initializer_range": 0.02,"intermediate_size": 1024,"label2id": {"Business & Finance": 6,"Computers & Internet": 4,"Education & Reference": 3,"Entertainment & Music": 7,"Family & Relationships": 8,"Health": 2,"Politics & Government": 9,"Science & Mathematics": 1,"Society & Culture": 0,"Sports": 5},"layer_norm_eps": 1e-12,"max_position_embeddings": 512,3 unmodified lines"pad_token_id": 0,"position_embedding_type": "absolute","problem_type": "multi_label_classification","transformers_version": "4.36.1","type_vocab_size": 2,"use_cache": true,"vocab_size": 30522
123version https://git-lfs.github.com/spec/v1oid sha256:8b16459e6e0f96cf71216ab3971284df38dbda1d5c56160b9a415ba4071d16e6size 51234517123version https://git-lfs.github.com/spec/v1oid sha256:94e75119882aaaabebcd3abdf6ea9d3b84dac550a480bafe779e4feaf94cfa69size 51233961
123version https://git-lfs.github.com/spec/v1oid sha256:5def0132b3eb0fa83de927fbe5ff4ed7372a0318e63d5af6a3507e755d70115esize 13215348123version https://git-lfs.github.com/spec/v1oid sha256:db08136f6794c723d017b22237cba58a2185fabb09d48e1710613850bedf08bdsize 13256259
12345678910111213141516171819202122232425262728293031{ "per_channel": true, "reduce_range": true, "per_model_config": { "model": { "op_types": [ "Add", "Gather", "GlobalAveragePool", "Tanh", "MatMul", "Reshape", "Softmax", "Slice", "Reciprocal", "Cast", "Shape", "Concat", "Squeeze", "Mul", "Unsqueeze", "Erf", "Range", "Transpose", "Sqrt", "Sub" ], "weight_type": "QInt8" } }}1234567{"cls_token": "[CLS]","mask_token": "[MASK]","pad_token": "[PAD]","sep_token": "[SEP]","unk_token": "[UNK]"}12345678910111213141516171819202122232425262728293031323334353637{"cls_token": {"content": "[CLS]","lstrip": false,"normalized": false,"rstrip": false,"single_word": false},"mask_token": {"content": "[MASK]","lstrip": false,"normalized": false,"rstrip": false,"single_word": false},"pad_token": {"content": "[PAD]","lstrip": false,"normalized": false,"rstrip": false,"single_word": false},"sep_token": {"content": "[SEP]","lstrip": false,"normalized": false,"rstrip": false,"single_word": false},"unk_token": {"content": "[UNK]","lstrip": false,"normalized": false,"rstrip": false,"single_word": false}}
123456789101112131415{"cls_token": "[CLS]","do_basic_tokenize": true,"do_lower_case": true,"mask_token": "[MASK]","name_or_path": "microsoft/xtremedistil-l6-h256-uncased","never_split": null,"pad_token": "[PAD]","sep_token": "[SEP]","special_tokens_map_file": null,"strip_accents": null,"tokenize_chinese_chars": true,"tokenizer_class": "BertTokenizer","unk_token": "[UNK]"}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364{"added_tokens_decoder": {"0": {"content": "[PAD]","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"100": {"content": "[UNK]","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"101": {"content": "[CLS]","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"102": {"content": "[SEP]","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"103": {"content": "[MASK]","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true}},"clean_up_tokenization_spaces": true,"cls_token": "[CLS]","do_basic_tokenize": true,"do_lower_case": true,"mask_token": "[MASK]","max_length": 64,"model_max_length": 1000000000000000019884624838656,"never_split": null,"pad_to_multiple_of": null,"pad_token": "[PAD]","pad_token_type_id": 0,"padding_side": "right","sep_token": "[SEP]","stride": 0,"strip_accents": null,"tokenize_chinese_chars": true,"tokenizer_class": "BertTokenizer","truncation_side": "right","truncation_strategy": "longest_first","unk_token": "[UNK]"}
config.json+9-9
onnx/model.onnx+2-2
onnx/model_quantized.onnx+2-2
quantize_config.jsonAdded+31
special_tokens_map.json+35-5
tokenizer_config.json+51-2