Summarization
Transformers
PyTorch
Safetensors
English
t5
text2text-generation
Trained with AutoTrain
text-generation-inference
Instructions to use sagard21/python-code-explainer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sagard21/python-code-explainer 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="sagard21/python-code-explainer")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("sagard21/python-code-explainer") model = AutoModelForSeq2SeqLM.from_pretrained("sagard21/python-code-explainer", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download pytorch_model.bin from sagard21/python-code-explainer: direct link, hf CLI and curl.
- Browser
- Download file 2.95 GB
-
https://huggingface.co/sagard21/python-code-explainer/resolve/c24b3be2f2d11aa0ca31a6a5956be13c462d1d16/pytorch_model.bin
- Command line
-
hf download hf://sagard21/python-code-explainer@c24b3be2f2d11aa0ca31a6a5956be13c462d1d16/pytorch_model.bin
-
curl -L -o pytorch_model.bin https://huggingface.co/sagard21/python-code-explainer/resolve/c24b3be2f2d11aa0ca31a6a5956be13c462d1d16/pytorch_model.bin
2.95 GB
- Xet hash:
- 88ff15c8e1a311243056993f30b72ff5e96069f983889c27ebd1e4f52f69d4ae
- Size of remote file:
- 2.95 GB
- SHA256:
- e8eaf24cf06354f8adf76f137f0319cfb618cfd2abb19496c94fd3d3a9e08404
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.