Hugging Face's logo Hugging Face
    • Models
    • Datasets
    • Pricing
      • Website
        • Metrics
        • Languages
        • Organizations
      • Community
        • Forum
        • Blog
        • GitHub
      • Documentation
        • Model Hub doc
        • Inference API doc
        • Transformers doc
        • Tokenizers doc
        • Datasets doc
    • We're hiring!

    • Log In
    • Sign Up
    • Account
      • Log In
      • Sign Up
    • Website
      • Models
      • Datasets
      • Metrics
      • Languages
      • Organizations
      • Pricing
    • Community
      • Forum
      • Blog
    • Documentation
      • Model Hub doc
      • Inference API doc
      • Transformers doc
      • Tokenizers doc
      • Datasets doc

    Software Engineering for Business Information Systems (sebis)'s picture SEBIS
    /
    code_trans_t5_base_source_code_summarization_sql_transfer_learning_finetune

    Summarization
    PyTorch t5
    Model card Files and versions

    How to serve this model with the Accelerated Inference API

    Try the Inference API for free, and get an organization plan to use it in your apps.
    import json
    import requests
    
    API_URL = "https://api-inference.huggingface.co/models/SEBIS/code_trans_t5_base_source_code_summarization_sql_transfer_learning_finetune"
    headers = {"Authorization": f"Bearer {API_TOKEN}"}
    
    def query(payload):
    	data = json.dumps(payload)
    	response = requests.request("POST", API_URL, headers=headers, data=data)
    	return json.loads(response.content.decode("utf-8"))
    data = query(
        {
            "inputs": "The tower is 324 metres (1,063 ft) tall, about the same height as an 81-storey building, and the tallest structure in Paris. Its base is square, measuring 125 metres (410 ft) on each side. During its construction, the Eiffel Tower surpassed the Washington Monument to become the tallest man-made structure in the world, a title it held for 41 years until the Chrysler Building in New York City was finished in 1930. It was the first structure to reach a height of 300 metres. Due to the addition of a broadcasting aerial at the top of the tower in 1957, it is now taller than the Chrysler Building by 5.2 metres (17 ft). Excluding transmitters, the Eiffel Tower is the second tallest free-standing structure in France after the Millau Viaduct.",
        }
    )

    Quick Links

    • Inference API Documentation
    • How to get started

    How to use from the 🤗/transformers library

    from transformers import AutoTokenizer, AutoModel
      
    tokenizer = AutoTokenizer.from_pretrained("SEBIS/code_trans_t5_base_source_code_summarization_sql_transfer_learning_finetune")
    
    model = AutoModel.from_pretrained("SEBIS/code_trans_t5_base_source_code_summarization_sql_transfer_learning_finetune")

    Or just clone the model repo

    git lfs install
    git clone https://huggingface.co/SEBIS/code_trans_t5_base_source_code_summarization_sql_transfer_learning_finetune
    # if you want to clone without large files – just their pointers
    # prepend your git clone with the following env var:
    GIT_LFS_SKIP_SMUDGE=1
      • main
      code_trans_t5_base_source_code_summarization_sql_transfer_learning_finetune
      History: 3 commits
      wei's picture
      wei
      Update README.md caf080d 2 months ago
      • .gitattributes 345.0B initial commit last year
      • README.md 4.0KB Update README.md 2 months ago
      • config.json 633.0B Update from weiding last year
      • pytorch_model.bin 850.4MB Update from weiding last year
      • special_tokens_map.json 1.7KB Update from weiding last year
      • spiece.model 778.3KB Update from weiding last year
      • tokenizer_config.json 24.0B Update from weiding last year