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 BartForConditionalGeneration
Browse filesFiles changed (3)
- config.json+61-20
- generation_config.json+1-1
- model.safetensors+2-2
12345678910111213141516171819202122232425262728293031323334{"_name_or_path": "model/patent_classifier","architectures": ["RobertaForSequenceClassification"],"attention_probs_dropout_prob": 0.1,"bos_token_id": 0,"classifier_dropout": null,"eos_token_id": 2,"hidden_act": "gelu","hidden_dropout_prob": 0.1,"hidden_size": 768,"id2label": {"0": "LABEL_0"},"initializer_range": 0.02,"intermediate_size": 3072,"label2id": {"LABEL_0": 0},"layer_norm_eps": 1e-05,"max_position_embeddings": 514,"model_type": "roberta","num_attention_heads": 12,"num_hidden_layers": 12,"pad_token_id": 1,"position_embedding_type": "absolute","problem_type": "regression","torch_dtype": "float32","transformers_version": "4.37.2","type_vocab_size": 1,"use_cache": true,"vocab_size": 50265}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475{"_name_or_path": "model/summarizer_myds_v9","activation_dropout": 0.1,"activation_function": "gelu","add_bias_logits": false,"add_final_layer_norm": false,"architectures": ["BartForConditionalGeneration"],"attention_dropout": 0.1,"bos_token_id": 0,"classif_dropout": 0.1,"classifier_dropout": 0.0,"d_model": 768,"decoder_attention_heads": 12,"decoder_ffn_dim": 3072,"decoder_layerdrop": 0.0,"decoder_layers": 6,"decoder_start_token_id": 2,"dropout": 0.1,"early_stopping": true,"encoder_attention_heads": 12,"encoder_ffn_dim": 3072,"encoder_layerdrop": 0.0,"encoder_layers": 6,"eos_token_id": 2,"forced_bos_token_id": 0,"forced_eos_token_id": 2,"gradient_checkpointing": false,"id2label": {"0": "LABEL_0","1": "LABEL_1","2": "LABEL_2"},"init_std": 0.02,"is_encoder_decoder": true,"label2id": {"LABEL_0": 0,"LABEL_1": 1,"LABEL_2": 2},"max_position_embeddings": 1024,"model_type": "bart","no_repeat_ngram_size": 3,"normalize_before": false,"normalize_embedding": true,"num_beams": 4,"num_hidden_layers": 6,"pad_token_id": 1,"scale_embedding": false,"task_specific_params": {"summarization": {"length_penalty": 1.0,"max_length": 128,"min_length": 12,"num_beams": 4},"summarization_cnn": {"length_penalty": 2.0,"max_length": 142,"min_length": 56,"num_beams": 4},"summarization_xsum": {"length_penalty": 1.0,"max_length": 62,"min_length": 11,"num_beams": 6}},"torch_dtype": "float32","transformers_version": "4.35.2","use_cache": true,"vocab_size": 50265}
8 unmodified lines9101112138 unmodified lines"no_repeat_ngram_size": 3,"num_beams": 4,"pad_token_id": 1,"transformers_version": "4.31.0"}8 unmodified lines9101112138 unmodified lines"no_repeat_ngram_size": 3,"num_beams": 4,"pad_token_id": 1,"transformers_version": "4.35.2"}
123version https://git-lfs.github.com/spec/v1oid sha256:4f10e82746330fddc98f2771f1c466f15338fe5e1cebf19f8561ecbf910557b8size 498609748123version https://git-lfs.github.com/spec/v1oid sha256:eb70fdab00537437a55c30ea3fcc3124a24e59f72204ed7c10309247288dc1dfsize 557912620
config.json+61-20
generation_config.json+1-1
model.safetensors+2-2