Summarization
Transformers
Safetensors
bart
text2text-generation
title-generation
scientific-text
scihigh-2026
fire-2026
Instructions to use kckrish21/SciHigh2026-Task2-BART-large with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kckrish21/SciHigh2026-Task2-BART-large with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "summarization" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("summarization", model="kckrish21/SciHigh2026-Task2-BART-large")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("kckrish21/SciHigh2026-Task2-BART-large") model = AutoModelForSeq2SeqLM.from_pretrained("kckrish21/SciHigh2026-Task2-BART-large", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download generation_config.json from kckrish21/SciHigh2026-Task2-BART-large: direct link, hf CLI and curl.
- Browser
- Download file 984 Bytes
-
https://huggingface.co/kckrish21/SciHigh2026-Task2-BART-large/resolve/main/generation_config.json
- Command line
-
hf download hf://kckrish21/SciHigh2026-Task2-BART-large/generation_config.json
-
curl -L -o generation_config.json https://huggingface.co/kckrish21/SciHigh2026-Task2-BART-large/resolve/main/generation_config.json
984 Bytes
| { | |
| "_from_model_config": false, | |
| "assistant_confidence_threshold": 0.4, | |
| "assistant_lookbehind": 10, | |
| "bos_token_id": 0, | |
| "decoder_start_token_id": 2, | |
| "diversity_penalty": 0.0, | |
| "do_sample": false, | |
| "early_stopping": true, | |
| "encoder_no_repeat_ngram_size": 0, | |
| "encoder_repetition_penalty": 1.0, | |
| "eos_token_id": [ | |
| 2 | |
| ], | |
| "epsilon_cutoff": 0.0, | |
| "eta_cutoff": 0.0, | |
| "forced_bos_token_id": 0, | |
| "forced_eos_token_id": 2, | |
| "length_penalty": 1.0, | |
| "max_length": 20, | |
| "min_length": 0, | |
| "no_repeat_ngram_size": 3, | |
| "num_assistant_tokens": 20, | |
| "num_assistant_tokens_schedule": "constant", | |
| "num_beam_groups": 1, | |
| "num_beams": 4, | |
| "num_return_sequences": 1, | |
| "output_scores": false, | |
| "pad_token_id": 1, | |
| "remove_invalid_values": false, | |
| "repetition_penalty": 1.0, | |
| "return_dict_in_generate": false, | |
| "target_lookbehind": 10, | |
| "temperature": 1.0, | |
| "top_k": 50, | |
| "top_p": 1.0, | |
| "transformers_version": "5.15.0", | |
| "typical_p": 1.0, | |
| "use_cache": true | |
| } | |