Instructions to use mlaprise/foobar with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mlaprise/foobar with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="mlaprise/foobar")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("mlaprise/foobar") model = AutoModelForSequenceClassification.from_pretrained("mlaprise/foobar", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from mlaprise/foobar: direct link, hf CLI and curl.
- Browser
- Download file 2.29 kB
-
https://huggingface.co/mlaprise/foobar/resolve/main/config.json
- Command line
-
hf download hf://mlaprise/foobar/config.json
-
curl -L -o config.json https://huggingface.co/mlaprise/foobar/resolve/main/config.json
2.29 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, | |
| "embedding_dropout": 0.0, | |
| "eos_token_id": 50282, | |
| "global_attn_every_n_layers": 3, | |
| "global_rope_theta": 160000.0, | |
| "gradient_checkpointing": false, | |
| "hidden_activation": "gelu", | |
| "hidden_size": 768, | |
| "id2label": { | |
| "0": "action_set_delivery_options", | |
| "1": "typing_sku", | |
| "2": "asking_complex_query", | |
| "3": "action_search_product", | |
| "4": "action_return_product", | |
| "5": "action_add_to_cart", | |
| "6": "typing_customer", | |
| "7": "action_search_a_customer", | |
| "8": "typing_address", | |
| "9": "action_set_payment_options", | |
| "10": "action_set_delivery_address", | |
| "11": "action_go_to_a_specific_cart", | |
| "12": "action_set_payment_method", | |
| "13": "typing_product_name" | |
| }, | |
| "initializer_cutoff_factor": 2.0, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 1152, | |
| "label2id": { | |
| "action_add_to_cart": "5", | |
| "action_go_to_a_specific_cart": "11", | |
| "action_return_product": "4", | |
| "action_search_a_customer": "7", | |
| "action_search_product": "3", | |
| "action_set_delivery_address": "10", | |
| "action_set_delivery_options": "0", | |
| "action_set_payment_method": "12", | |
| "action_set_payment_options": "9", | |
| "asking_complex_query": "2", | |
| "typing_address": "8", | |
| "typing_customer": "6", | |
| "typing_product_name": "13", | |
| "typing_sku": "1" | |
| }, | |
| "layer_norm_eps": 1e-05, | |
| "local_attention": 128, | |
| "local_rope_theta": 10000.0, | |
| "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", | |
| "repad_logits_with_grad": false, | |
| "sep_token_id": 50282, | |
| "sparse_pred_ignore_index": -100, | |
| "sparse_prediction": false, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.53.3", | |
| "vocab_size": 50368 | |
| } | |