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
122345674896101181213141516171819202122232425261011122728293014313233341617353637193839404121222324254243444546474849272850515253545556575859606162636465666768697071303172737475{ "_name_or_path": "model/patent_classifier", "_name_or_path": "model/summarizer_myds_v9", "activation_dropout": 0.1, "activation_function": "gelu", "add_bias_logits": false, "add_final_layer_norm": false, "architectures": [ "RobertaForSequenceClassification" "BartForConditionalGeneration" ], "attention_probs_dropout_prob": 0.1, "attention_dropout": 0.1, "bos_token_id": 0, "classifier_dropout": null, "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, "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "hidden_size": 768, "forced_bos_token_id": 0, "forced_eos_token_id": 2, "gradient_checkpointing": false, "id2label": { "0": "LABEL_0" "0": "LABEL_0", "1": "LABEL_1", "2": "LABEL_2" }, "initializer_range": 0.02, "intermediate_size": 3072, "init_std": 0.02, "is_encoder_decoder": true, "label2id": { "LABEL_0": 0 "LABEL_0": 0, "LABEL_1": 1, "LABEL_2": 2 }, "layer_norm_eps": 1e-05, "max_position_embeddings": 514, "model_type": "roberta", "num_attention_heads": 12, "num_hidden_layers": 12, "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, "position_embedding_type": "absolute", "problem_type": "regression", "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.37.2", "type_vocab_size": 1, "transformers_version": "4.35.2", "use_cache": true, "vocab_size": 50265}8 unmodified lines910111212138 unmodified lines "no_repeat_ngram_size": 3, "num_beams": 4, "pad_token_id": 1, "transformers_version": "4.31.0" "transformers_version": "4.35.2"}12323version https://git-lfs.github.com/spec/v1oid sha256:4f10e82746330fddc98f2771f1c466f15338fe5e1cebf19f8561ecbf910557b8size 498609748oid sha256:eb70fdab00537437a55c30ea3fcc3124a24e59f72204ed7c10309247288dc1dfsize 557912620config.json+61-20
generation_config.json+1-1
model.safetensors+2-2