Run this model with HF Jobs
Run SmartPy/readability-longformer 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/SmartPy/readability-longformer. 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/SmartPy/readability-longformer 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 SmartPy/readability-longformer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SmartPy/readability-longformer with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="SmartPy/readability-longformer")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("SmartPy/readability-longformer") model = AutoModelForSequenceClassification.from_pretrained("SmartPy/readability-longformer", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Training in progress, epoch 1
Browse filesFiles changed (12)
- config.jsonAdded+54
- merges.txtAdded
- model.safetensorsAdded+3
- runs/Apr11_14-02-41_c23hpda5/events.out.tfevents.1712836963.c23hpda5.2370034.0Added+3
- runs/Apr11_14-04-42_c23hpda5/events.out.tfevents.1712837083.c23hpda5.3971694.0Added+3
- runs/Apr11_14-16-06_c23hpda5/events.out.tfevents.1712837768.c23hpda5.4076826.0Added+3
- runs/Apr11_14-30-51_c23hpda5/events.out.tfevents.1712838651.c23hpda5.4076826.1Added+3
- special_tokens_map.jsonAdded+15
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+57
- training_args.binAdded+3
- vocab.jsonAdded
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354{ "_name_or_path": "allenai/longformer-base-4096", "architectures": [ "LongformerForSequenceClassification" ], "attention_mode": "longformer", "attention_probs_dropout_prob": 0.1, "attention_window": [ 256, 256, 256, 256, 256, 256, 256, 256, 512, 512, 512, 512 ], "bos_token_id": 0, "eos_token_id": 2, "gradient_checkpointing": false, "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "hidden_size": 768, "id2label": { "0": "short", "1": "normal", "2": "long" }, "ignore_attention_mask": false, "initializer_range": 0.02, "intermediate_size": 3072, "label2id": { "long": 2, "normal": 1, "short": 0 }, "layer_norm_eps": 1e-05, "max_position_embeddings": 4098, "model_type": "longformer", "num_attention_heads": 12, "num_hidden_layers": 12, "onnx_export": false, "pad_token_id": 1, "problem_type": "single_label_classification", "sep_token_id": 2, "torch_dtype": "float32", "transformers_version": "4.38.0", "type_vocab_size": 1, "vocab_size": 50265}123version https://git-lfs.github.com/spec/v1oid sha256:b99640b2520a652f6cce2429b1a1f0cece3f4e585e2d6769cff5d5838becbbddsize 594681260123version https://git-lfs.github.com/spec/v1oid sha256:a185e6a44b53cc060eaf18b6f98174e1fed4d46d66d66dbe5a505ceadd796b81size 4895123version https://git-lfs.github.com/spec/v1oid sha256:4d295ccdc4901e273b9a12b26bdb9e9b6c0b20627f004d8ec9936a5b1c2ec969size 4893123version https://git-lfs.github.com/spec/v1oid sha256:56c173d4d1e0c3fef36b8449b798c688e6eb69f6643799d301dda8e5bbf8376bsize 4893123version https://git-lfs.github.com/spec/v1oid sha256:95fa3dacee00213b1c2b2a0f397f1c7c56ee628513d8c6bed2af39617fb0f028size 5208123456789101112131415{ "bos_token": "<s>", "cls_token": "<s>", "eos_token": "</s>", "mask_token": { "content": "<mask>", "lstrip": true, "normalized": false, "rstrip": false, "single_word": false }, "pad_token": "<pad>", "sep_token": "</s>", "unk_token": "<unk>"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657{ "add_prefix_space": false, "added_tokens_decoder": { "0": { "content": "<s>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false, "special": true }, "1": { "content": "<pad>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false, "special": true }, "2": { "content": "</s>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false, "special": true }, "3": { "content": "<unk>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false, "special": true }, "50264": { "content": "<mask>", "lstrip": true, "normalized": false, "rstrip": false, "single_word": false, "special": true } }, "bos_token": "<s>", "clean_up_tokenization_spaces": true, "cls_token": "<s>", "eos_token": "</s>", "errors": "replace", "mask_token": "<mask>", "model_max_length": 4096, "pad_token": "<pad>", "sep_token": "</s>", "tokenizer_class": "LongformerTokenizer", "trim_offsets": true, "unk_token": "<unk>"}123version https://git-lfs.github.com/spec/v1oid sha256:7ff17af81084335b09cf54243da687eca513a6516f1757aeecc022da4d8f07a7size 4475config.jsonAdded+54
merges.txtAdded
model.safetensorsAdded+3
runs/Apr11_14-02-41_c23hpda5/events.out.tfevents.1712836963.c23hpda5.2370034.0Added+3
runs/Apr11_14-04-42_c23hpda5/events.out.tfevents.1712837083.c23hpda5.3971694.0Added+3
runs/Apr11_14-16-06_c23hpda5/events.out.tfevents.1712837768.c23hpda5.4076826.0Added+3
runs/Apr11_14-30-51_c23hpda5/events.out.tfevents.1712838651.c23hpda5.4076826.1Added+3
special_tokens_map.jsonAdded+15
tokenizer.jsonAdded
tokenizer_config.jsonAdded+57
training_args.binAdded+3
vocab.jsonAdded