Instructions to use chenmingxuan/PatQwenSum with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use chenmingxuan/PatQwenSum 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="chenmingxuan/PatQwenSum")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("chenmingxuan/PatQwenSum") model = AutoModelForCausalLM.from_pretrained("chenmingxuan/PatQwenSum", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download generation_config.json from chenmingxuan/PatQwenSum: direct link, hf CLI and curl.
- Browser
- Download file 217 Bytes
-
https://huggingface.co/chenmingxuan/PatQwenSum/resolve/main/generation_config.json
- Command line
-
hf download hf://chenmingxuan/PatQwenSum/generation_config.json
-
curl -L -o generation_config.json https://huggingface.co/chenmingxuan/PatQwenSum/resolve/main/generation_config.json
217 Bytes
| { | |
| "bos_token_id": 151643, | |
| "do_sample": true, | |
| "eos_token_id": [ | |
| 151645, | |
| 151643 | |
| ], | |
| "repetition_penalty": 1.05, | |
| "temperature": 0.7, | |
| "top_k": 20, | |
| "top_p": 0.8, | |
| "transformers_version": "4.37.2" | |
| } | |