Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

sagard21
/
python-code-explainer

Summarization
Transformers
PyTorch
Safetensors
English
t5
text2text-generation
Trained with AutoTrain
text-generation-inference
Model card Files Files and versions
xet
Community
3

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")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
    
    tokenizer = AutoTokenizer.from_pretrained("sagard21/python-code-explainer")
    model = AutoModelForSeq2SeqLM.from_pretrained("sagard21/python-code-explainer")
  • Notebooks
  • Google Colab
  • Kaggle
python-code-explainer
2.95 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 6 commits
sagard21's picture
sagard21
Update README.md
a0fac8a over 3 years ago
  • .gitattributes
    1.62 kB
    Commit From AutoTrain over 3 years ago
  • README.md
    2.18 kB
    Update README.md over 3 years ago
  • config.json
    1.5 kB
    Commit From AutoTrain over 3 years ago
  • merges.txt
    294 kB
    Commit From AutoTrain over 3 years ago
  • pytorch_model.bin
    2.95 GB
    xet
    Commit From AutoTrain over 3 years ago
  • special_tokens_map.json
    15.5 kB
    Commit From AutoTrain over 3 years ago
  • tokenizer.json
    1.37 MB
    xet
    Commit From AutoTrain over 3 years ago
  • tokenizer_config.json
    1.52 kB
    Commit From AutoTrain over 3 years ago
  • vocab.json
    511 kB
    Commit From AutoTrain over 3 years ago