Text Classification
Transformers
Safetensors
PyTorch
English
attentiontypes
custom-code
commonsense-reasoning
course-project
experimental
custom_code
Run this model with HF Jobs
Run owenarink/attentiontypes-commonsense 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/owenarink/attentiontypes-commonsense. 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/owenarink/attentiontypes-commonsense 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 owenarink/attentiontypes-commonsense with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use owenarink/attentiontypes-commonsense with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="owenarink/attentiontypes-commonsense", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForSequenceClassification model = AutoModelForSequenceClassification.from_pretrained("owenarink/attentiontypes-commonsense", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from owenarink/attentiontypes-commonsense: direct link, hf CLI and curl.
- Browser
- Download file 937 Bytes
-
https://huggingface.co/owenarink/attentiontypes-commonsense/resolve/main/config.json
- Command line
-
hf download hf://owenarink/attentiontypes-commonsense/config.json
-
curl -L -o config.json https://huggingface.co/owenarink/attentiontypes-commonsense/resolve/main/config.json
937 Bytes
| { | |
| "architectures": [ | |
| "AttentionTypesForSequenceClassification" | |
| ], | |
| "auto_map": { | |
| "AutoConfig": "configuration_attentiontypes.AttentionTypesConfig", | |
| "AutoModelForSequenceClassification": "modeling_attentiontypes.AttentionTypesForSequenceClassification" | |
| }, | |
| "bbpe_min_freq": 2, | |
| "bbpe_vocab_size": 12000, | |
| "bos_token_id": 3, | |
| "ce_weight": 1.0, | |
| "dropout": 0.3, | |
| "dtype": "float32", | |
| "eos_token_id": 4, | |
| "ff_mult": 4, | |
| "grouped_max_len": 128, | |
| "hinge_margin": 0.0, | |
| "hinge_weight": 0.0, | |
| "id2label": { | |
| "0": "LABEL_0" | |
| }, | |
| "label2id": { | |
| "LABEL_0": 0 | |
| }, | |
| "max_position_embeddings": 512, | |
| "model_dim": 256, | |
| "model_type": "attentiontypes", | |
| "num_heads": 8, | |
| "num_layers": 4, | |
| "pad_token_id": 0, | |
| "pooling": "mean", | |
| "sep_token_id": 2, | |
| "tokenizer_class": "PreTrainedTokenizerFast", | |
| "transformers_version": "5.3.0", | |
| "unk_token_id": 1, | |
| "use_absolute_pos": false, | |
| "vocab_size": 12000 | |
| } | |