Run this model with HF Jobs
Run hadifar/summarizer 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/hadifar/summarizer. 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/hadifar/summarizer 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 hadifar/summarizer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hadifar/summarizer with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("hadifar/summarizer") model = AutoModelForSeq2SeqLM.from_pretrained("hadifar/summarizer", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload tokenizer
Browse filesFiles changed (3)
- special_tokens_map.json+42-6
- tokenizer.json+18-6
- tokenizer_config.json+51-2
123423456789101112131415161718192021222324251 unmodified line27282912131430313233343536373839404142434445464748495051{ "bos_token": "<s>", "cls_token": "<s>", "eos_token": "</s>", "bos_token": { "content": "<s>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "cls_token": { "content": "<s>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "eos_token": { "content": "</s>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "mask_token": { "content": "<mask>", "lstrip": true,1 unmodified line "rstrip": false, "single_word": false }, "pad_token": "<pad>", "sep_token": "</s>", "unk_token": "<unk>" "pad_token": { "content": "<pad>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "sep_token": { "content": "</s>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "unk_token": { "content": "<unk>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }}12343456789101112131415161718191 unmodified line21222312242526272 unmodified lines30313221333435362 unmodified lines39404130424344452 unmodified lines4849503951525354{ "version": "1.0", "truncation": null, "padding": null, "truncation": { "direction": "Right", "max_length": 512, "strategy": "LongestFirst", "stride": 0 }, "padding": { "strategy": "BatchLongest", "direction": "Right", "pad_to_multiple_of": null, "pad_id": 1, "pad_type_id": 0, "pad_token": "<pad>" }, "added_tokens": [ { "id": 0,1 unmodified line "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "normalized": true, "special": true }, {2 unmodified lines "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "normalized": true, "special": true }, {2 unmodified lines "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "normalized": true, "special": true }, {2 unmodified lines "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "normalized": true, "special": true }, {12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505195253545556575812596061626364{ "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>", "max_length": 512, "model_max_length": 1024, "model_max_length": 512, "pad_to_multiple_of": null, "pad_token": "<pad>", "pad_token_type_id": 0, "padding_side": "right", "sep_token": "</s>", "stride": 0, "tokenizer_class": "BartTokenizer", "tokenizer_class": "RobertaTokenizer", "trim_offsets": true, "truncation_side": "right", "truncation_strategy": "longest_first", "unk_token": "<unk>"}special_tokens_map.json+42-6
tokenizer.json+18-6
tokenizer_config.json+51-2