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
12345671 unmodified line9101112131415{"bos_token": "<s>","cls_token": "<s>","eos_token": "</s>","mask_token": {"content": "<mask>","lstrip": true,1 unmodified line"rstrip": false,"single_word": false},"pad_token": "<pad>","sep_token": "</s>","unk_token": "<unk>"}123456789101112131415161718192021222324251 unmodified line27282930313233343536373839404142434445464748495051{"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": {"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}}
12345671 unmodified line91011121314152 unmodified lines181920212223242 unmodified lines272829303132332 unmodified lines36373839404142{"version": "1.0","truncation": null,"padding": null,"added_tokens": [{"id": 0,1 unmodified line"single_word": false,"lstrip": false,"rstrip": false,"normalized": false,"special": true},{2 unmodified lines"single_word": false,"lstrip": false,"rstrip": false,"normalized": false,"special": true},{2 unmodified lines"single_word": false,"lstrip": false,"rstrip": false,"normalized": false,"special": true},{2 unmodified lines"single_word": false,"lstrip": false,"rstrip": false,"normalized": false,"special": true},{123456789101112131415161718191 unmodified line212223242526272 unmodified lines303132333435362 unmodified lines394041424344452 unmodified lines48495051525354{"version": "1.0","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": true,"special": true},{2 unmodified lines"single_word": false,"lstrip": false,"rstrip": false,"normalized": true,"special": true},{2 unmodified lines"single_word": false,"lstrip": false,"rstrip": false,"normalized": true,"special": true},{2 unmodified lines"single_word": false,"lstrip": false,"rstrip": false,"normalized": true,"special": true},{
123456789101112131415{"add_prefix_space": false,"bos_token": "<s>","clean_up_tokenization_spaces": true,"cls_token": "<s>","eos_token": "</s>","errors": "replace","mask_token": "<mask>","model_max_length": 1024,"pad_token": "<pad>","sep_token": "</s>","tokenizer_class": "BartTokenizer","trim_offsets": true,"unk_token": "<unk>"}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364{"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": 512,"pad_to_multiple_of": null,"pad_token": "<pad>","pad_token_type_id": 0,"padding_side": "right","sep_token": "</s>","stride": 0,"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