Text Classification
Transformers
ONNX
Safetensors
English
modernbert
consumer-complaints
cfpb
text-embeddings-inference
Instructions to use hasnainn19/complaintflow-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hasnainn19/complaintflow-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="hasnainn19/complaintflow-classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("hasnainn19/complaintflow-classifier") model = AutoModelForSequenceClassification.from_pretrained("hasnainn19/complaintflow-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from hasnainn19/complaintflow-classifier: direct link, hf CLI and curl.
- Browser
- Download file 15 kB
-
https://huggingface.co/hasnainn19/complaintflow-classifier/resolve/main/config.json
- Command line
-
hf download hf://hasnainn19/complaintflow-classifier/config.json
-
curl -L -o config.json https://huggingface.co/hasnainn19/complaintflow-classifier/resolve/main/config.json
15 kB
| { | |
| "architectures": [ | |
| "ModernBertForSequenceClassification" | |
| ], | |
| "attention_bias": false, | |
| "attention_dropout": 0.0, | |
| "bos_token_id": 50281, | |
| "classifier_activation": "gelu", | |
| "classifier_bias": false, | |
| "classifier_dropout": 0.0, | |
| "classifier_pooling": "mean", | |
| "cls_token_id": 50281, | |
| "decoder_bias": true, | |
| "deterministic_flash_attn": false, | |
| "dtype": "float32", | |
| "embedding_dropout": 0.0, | |
| "eos_token_id": 50282, | |
| "global_attn_every_n_layers": 3, | |
| "gradient_checkpointing": false, | |
| "hidden_activation": "gelu", | |
| "hidden_size": 768, | |
| "id2label": { | |
| "0": "Checking or savings account | Closing an account", | |
| "1": "Checking or savings account | Improper use of your report", | |
| "2": "Checking or savings account | Incorrect information on your report", | |
| "3": "Checking or savings account | Managing an account", | |
| "4": "Checking or savings account | Opening an account", | |
| "5": "Checking or savings account | Other", | |
| "6": "Checking or savings account | Problem caused by your funds being low", | |
| "7": "Checking or savings account | Problem with a company's investigation into an existing problem", | |
| "8": "Checking or savings account | Problem with a lender or other company charging your account", | |
| "9": "Credit card | Advertising and marketing, including promotional offers", | |
| "10": "Credit card | Closing your account", | |
| "11": "Credit card | Fees or interest", | |
| "12": "Credit card | Getting a credit card", | |
| "13": "Credit card | Improper use of your report", | |
| "14": "Credit card | Incorrect information on your report", | |
| "15": "Credit card | Other", | |
| "16": "Credit card | Other features, terms, or problems", | |
| "17": "Credit card | Problem when making payments", | |
| "18": "Credit card | Problem with a company's investigation into an existing problem", | |
| "19": "Credit card | Problem with a purchase shown on your statement", | |
| "20": "Credit card | Trouble using your card", | |
| "21": "Credit reporting or other personal consumer reports | Improper use of your report", | |
| "22": "Credit reporting or other personal consumer reports | Incorrect information on your report", | |
| "23": "Credit reporting or other personal consumer reports | Other", | |
| "24": "Credit reporting or other personal consumer reports | Problem with a company's investigation into an existing problem", | |
| "25": "Debt collection | Attempts to collect debt not owed", | |
| "26": "Debt collection | Communication tactics", | |
| "27": "Debt collection | Electronic communications", | |
| "28": "Debt collection | False statements or representation", | |
| "29": "Debt collection | Threatened to contact someone or share information improperly", | |
| "30": "Debt collection | Took or threatened to take negative or legal action", | |
| "31": "Debt collection | Written notification about debt", | |
| "32": "Debt or credit management | Confusing or missing disclosures", | |
| "33": "Debt or credit management | Didn't provide services promised", | |
| "34": "Debt or credit management | Other", | |
| "35": "Debt or credit management | Problem with customer service", | |
| "36": "Money transfer, virtual currency, or money service | Confusing or missing disclosures", | |
| "37": "Money transfer, virtual currency, or money service | Fraud or scam", | |
| "38": "Money transfer, virtual currency, or money service | Managing, opening, or closing your mobile wallet account", | |
| "39": "Money transfer, virtual currency, or money service | Money was not available when promised", | |
| "40": "Money transfer, virtual currency, or money service | Other", | |
| "41": "Money transfer, virtual currency, or money service | Other transaction problem", | |
| "42": "Money transfer, virtual currency, or money service | Problem with customer service", | |
| "43": "Money transfer, virtual currency, or money service | Trouble accessing funds in your mobile or digital wallet", | |
| "44": "Money transfer, virtual currency, or money service | Unauthorized transactions or other transaction problem", | |
| "45": "Money transfer, virtual currency, or money service | Unexpected or other fees", | |
| "46": "Mortgage | Applying for a mortgage or refinancing an existing mortgage", | |
| "47": "Mortgage | Closing on a mortgage", | |
| "48": "Mortgage | Improper use of your report", | |
| "49": "Mortgage | Incorrect information on your report", | |
| "50": "Mortgage | Other", | |
| "51": "Mortgage | Problem with a company's investigation into an existing problem", | |
| "52": "Mortgage | Struggling to pay mortgage", | |
| "53": "Mortgage | Trouble during payment process", | |
| "54": "Payday loan, title loan, personal loan, or advance loan | Charged fees or interest you didn't expect", | |
| "55": "Payday loan, title loan, personal loan, or advance loan | Confusing or missing disclosures", | |
| "56": "Payday loan, title loan, personal loan, or advance loan | Getting the loan", | |
| "57": "Payday loan, title loan, personal loan, or advance loan | Improper use of your report", | |
| "58": "Payday loan, title loan, personal loan, or advance loan | Incorrect information on your report", | |
| "59": "Payday loan, title loan, personal loan, or advance loan | Other", | |
| "60": "Payday loan, title loan, personal loan, or advance loan | Problem when making payments", | |
| "61": "Payday loan, title loan, personal loan, or advance loan | Problem with a company's investigation into an existing problem", | |
| "62": "Payday loan, title loan, personal loan, or advance loan | Problem with additional add-on products or services", | |
| "63": "Payday loan, title loan, personal loan, or advance loan | Problem with customer service", | |
| "64": "Payday loan, title loan, personal loan, or advance loan | Problem with the payoff process at the end of the loan", | |
| "65": "Payday loan, title loan, personal loan, or advance loan | Struggling to pay your loan", | |
| "66": "Prepaid card | Other", | |
| "67": "Prepaid card | Problem with a purchase or transfer", | |
| "68": "Prepaid card | Trouble using the card", | |
| "69": "Prepaid card | Unexpected or other fees", | |
| "70": "Student loan | Dealing with your lender or servicer", | |
| "71": "Student loan | Improper use of your report", | |
| "72": "Student loan | Incorrect information on your report", | |
| "73": "Student loan | Other", | |
| "74": "Student loan | Problem with a company's investigation into an existing problem", | |
| "75": "Student loan | Struggling to repay your loan", | |
| "76": "Vehicle loan or lease | Getting a loan or lease", | |
| "77": "Vehicle loan or lease | Improper use of your report", | |
| "78": "Vehicle loan or lease | Incorrect information on your report", | |
| "79": "Vehicle loan or lease | Managing the loan or lease", | |
| "80": "Vehicle loan or lease | Other", | |
| "81": "Vehicle loan or lease | Problem with a company's investigation into an existing problem", | |
| "82": "Vehicle loan or lease | Problems at the end of the loan or lease", | |
| "83": "Vehicle loan or lease | Repossession", | |
| "84": "Vehicle loan or lease | Struggling to pay your loan" | |
| }, | |
| "initializer_cutoff_factor": 2.0, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 1152, | |
| "label2id": { | |
| "Checking or savings account | Closing an account": 0, | |
| "Checking or savings account | Improper use of your report": 1, | |
| "Checking or savings account | Incorrect information on your report": 2, | |
| "Checking or savings account | Managing an account": 3, | |
| "Checking or savings account | Opening an account": 4, | |
| "Checking or savings account | Other": 5, | |
| "Checking or savings account | Problem caused by your funds being low": 6, | |
| "Checking or savings account | Problem with a company's investigation into an existing problem": 7, | |
| "Checking or savings account | Problem with a lender or other company charging your account": 8, | |
| "Credit card | Advertising and marketing, including promotional offers": 9, | |
| "Credit card | Closing your account": 10, | |
| "Credit card | Fees or interest": 11, | |
| "Credit card | Getting a credit card": 12, | |
| "Credit card | Improper use of your report": 13, | |
| "Credit card | Incorrect information on your report": 14, | |
| "Credit card | Other": 15, | |
| "Credit card | Other features, terms, or problems": 16, | |
| "Credit card | Problem when making payments": 17, | |
| "Credit card | Problem with a company's investigation into an existing problem": 18, | |
| "Credit card | Problem with a purchase shown on your statement": 19, | |
| "Credit card | Trouble using your card": 20, | |
| "Credit reporting or other personal consumer reports | Improper use of your report": 21, | |
| "Credit reporting or other personal consumer reports | Incorrect information on your report": 22, | |
| "Credit reporting or other personal consumer reports | Other": 23, | |
| "Credit reporting or other personal consumer reports | Problem with a company's investigation into an existing problem": 24, | |
| "Debt collection | Attempts to collect debt not owed": 25, | |
| "Debt collection | Communication tactics": 26, | |
| "Debt collection | Electronic communications": 27, | |
| "Debt collection | False statements or representation": 28, | |
| "Debt collection | Threatened to contact someone or share information improperly": 29, | |
| "Debt collection | Took or threatened to take negative or legal action": 30, | |
| "Debt collection | Written notification about debt": 31, | |
| "Debt or credit management | Confusing or missing disclosures": 32, | |
| "Debt or credit management | Didn't provide services promised": 33, | |
| "Debt or credit management | Other": 34, | |
| "Debt or credit management | Problem with customer service": 35, | |
| "Money transfer, virtual currency, or money service | Confusing or missing disclosures": 36, | |
| "Money transfer, virtual currency, or money service | Fraud or scam": 37, | |
| "Money transfer, virtual currency, or money service | Managing, opening, or closing your mobile wallet account": 38, | |
| "Money transfer, virtual currency, or money service | Money was not available when promised": 39, | |
| "Money transfer, virtual currency, or money service | Other": 40, | |
| "Money transfer, virtual currency, or money service | Other transaction problem": 41, | |
| "Money transfer, virtual currency, or money service | Problem with customer service": 42, | |
| "Money transfer, virtual currency, or money service | Trouble accessing funds in your mobile or digital wallet": 43, | |
| "Money transfer, virtual currency, or money service | Unauthorized transactions or other transaction problem": 44, | |
| "Money transfer, virtual currency, or money service | Unexpected or other fees": 45, | |
| "Mortgage | Applying for a mortgage or refinancing an existing mortgage": 46, | |
| "Mortgage | Closing on a mortgage": 47, | |
| "Mortgage | Improper use of your report": 48, | |
| "Mortgage | Incorrect information on your report": 49, | |
| "Mortgage | Other": 50, | |
| "Mortgage | Problem with a company's investigation into an existing problem": 51, | |
| "Mortgage | Struggling to pay mortgage": 52, | |
| "Mortgage | Trouble during payment process": 53, | |
| "Payday loan, title loan, personal loan, or advance loan | Charged fees or interest you didn't expect": 54, | |
| "Payday loan, title loan, personal loan, or advance loan | Confusing or missing disclosures": 55, | |
| "Payday loan, title loan, personal loan, or advance loan | Getting the loan": 56, | |
| "Payday loan, title loan, personal loan, or advance loan | Improper use of your report": 57, | |
| "Payday loan, title loan, personal loan, or advance loan | Incorrect information on your report": 58, | |
| "Payday loan, title loan, personal loan, or advance loan | Other": 59, | |
| "Payday loan, title loan, personal loan, or advance loan | Problem when making payments": 60, | |
| "Payday loan, title loan, personal loan, or advance loan | Problem with a company's investigation into an existing problem": 61, | |
| "Payday loan, title loan, personal loan, or advance loan | Problem with additional add-on products or services": 62, | |
| "Payday loan, title loan, personal loan, or advance loan | Problem with customer service": 63, | |
| "Payday loan, title loan, personal loan, or advance loan | Problem with the payoff process at the end of the loan": 64, | |
| "Payday loan, title loan, personal loan, or advance loan | Struggling to pay your loan": 65, | |
| "Prepaid card | Other": 66, | |
| "Prepaid card | Problem with a purchase or transfer": 67, | |
| "Prepaid card | Trouble using the card": 68, | |
| "Prepaid card | Unexpected or other fees": 69, | |
| "Student loan | Dealing with your lender or servicer": 70, | |
| "Student loan | Improper use of your report": 71, | |
| "Student loan | Incorrect information on your report": 72, | |
| "Student loan | Other": 73, | |
| "Student loan | Problem with a company's investigation into an existing problem": 74, | |
| "Student loan | Struggling to repay your loan": 75, | |
| "Vehicle loan or lease | Getting a loan or lease": 76, | |
| "Vehicle loan or lease | Improper use of your report": 77, | |
| "Vehicle loan or lease | Incorrect information on your report": 78, | |
| "Vehicle loan or lease | Managing the loan or lease": 79, | |
| "Vehicle loan or lease | Other": 80, | |
| "Vehicle loan or lease | Problem with a company's investigation into an existing problem": 81, | |
| "Vehicle loan or lease | Problems at the end of the loan or lease": 82, | |
| "Vehicle loan or lease | Repossession": 83, | |
| "Vehicle loan or lease | Struggling to pay your loan": 84 | |
| }, | |
| "layer_norm_eps": 1e-05, | |
| "layer_types": [ | |
| "full_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "full_attention" | |
| ], | |
| "local_attention": 128, | |
| "max_position_embeddings": 8192, | |
| "mlp_bias": false, | |
| "mlp_dropout": 0.0, | |
| "model_type": "modernbert", | |
| "norm_bias": false, | |
| "norm_eps": 1e-05, | |
| "num_attention_heads": 12, | |
| "num_hidden_layers": 22, | |
| "pad_token_id": 50283, | |
| "position_embedding_type": "absolute", | |
| "problem_type": "single_label_classification", | |
| "rope_parameters": { | |
| "full_attention": { | |
| "rope_theta": 160000.0, | |
| "rope_type": "default" | |
| }, | |
| "sliding_attention": { | |
| "rope_theta": 10000.0, | |
| "rope_type": "default" | |
| } | |
| }, | |
| "sep_token_id": 50282, | |
| "sparse_pred_ignore_index": -100, | |
| "sparse_prediction": false, | |
| "tie_word_embeddings": true, | |
| "transformers_version": "5.23.0", | |
| "vocab_size": 50368 | |
| } | |