philschmid / codegen-6B-mono-sharded-bnb

huggingface.co
Total runs: 36
24-hour runs: 4
7-day runs: 11
30-day runs: 29
Model's Last Updated: September 02 2022
text-generation

Introduction of codegen-6B-mono-sharded-bnb

Model Details of codegen-6B-mono-sharded-bnb

Sharded fork of Salesforce/codegen-6B-mono with a custom pipeline.py

This repository implements a custom pipeline task for text-generation for 🤗 Inference Endpoints for LLM inference using bitsandbytes quantization. The code for the customized pipeline is in the pipeline.py .

There is also a notebook included.

expected Request payload
{
    "inputs": "# load distilbert model and initialize text-classification pipeline\nmodel_id = 'distil",
    "parameters": {
        "top_k": 100,
        "max_length": 64,
        "early_stopping": true,
        "do_sample": true,
        "eos_token_id": 50256,
    }
}

below is an example on how to run a request using Python and requests .

Run Request
import json
from typing import List
import requests as r
import base64
ENDPOINT_URL = ""
HF_TOKEN = ""

parameters={
        "top_k": 100,
        "max_length": 64,
        "early_stopping": True,
        "do_sample": True,
        "eos_token_id": 50256,
    }

def predict(code_snippet:str=None):
    payload = {"inputs": code_snippet,"parameters": parameters}
    response = r.post(
        ENDPOINT_URL, headers={"Authorization": f"Bearer {HF_TOKEN}"}, json=payload
    )
    return response.json()
prediction = predict(
    code_snippet="# load distilbert model and initialize text-classification pipeline\nmodel_id = 'distil"
)

expected output

{'generated_text': "# load distilbert model and initialize text-classification pipeline\nmodel_id = 'distilbert-base-uncased'\nmodel_url = 'https://tfhub.dev/tensorflow/small_bert/1'\n\nmodel_dir = './distilBERT'"}

Runs of philschmid codegen-6B-mono-sharded-bnb on huggingface.co

36
Total runs
4
24-hour runs
4
3-day runs
11
7-day runs
29
30-day runs

More Information About codegen-6B-mono-sharded-bnb huggingface.co Model

More codegen-6B-mono-sharded-bnb license Visit here:

https://choosealicense.com/licenses/bsd-3-clause

codegen-6B-mono-sharded-bnb huggingface.co

codegen-6B-mono-sharded-bnb huggingface.co is an AI model on huggingface.co that provides codegen-6B-mono-sharded-bnb's model effect (), which can be used instantly with this philschmid codegen-6B-mono-sharded-bnb model. huggingface.co supports a free trial of the codegen-6B-mono-sharded-bnb model, and also provides paid use of the codegen-6B-mono-sharded-bnb. Support call codegen-6B-mono-sharded-bnb model through api, including Node.js, Python, http.

codegen-6B-mono-sharded-bnb huggingface.co Url

https://huggingface.co/philschmid/codegen-6B-mono-sharded-bnb

philschmid codegen-6B-mono-sharded-bnb online free

codegen-6B-mono-sharded-bnb huggingface.co is an online trial and call api platform, which integrates codegen-6B-mono-sharded-bnb's modeling effects, including api services, and provides a free online trial of codegen-6B-mono-sharded-bnb, you can try codegen-6B-mono-sharded-bnb online for free by clicking the link below.

philschmid codegen-6B-mono-sharded-bnb online free url in huggingface.co:

https://huggingface.co/philschmid/codegen-6B-mono-sharded-bnb

codegen-6B-mono-sharded-bnb install

codegen-6B-mono-sharded-bnb is an open source model from GitHub that offers a free installation service, and any user can find codegen-6B-mono-sharded-bnb on GitHub to install. At the same time, huggingface.co provides the effect of codegen-6B-mono-sharded-bnb install, users can directly use codegen-6B-mono-sharded-bnb installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

codegen-6B-mono-sharded-bnb install url in huggingface.co:

https://huggingface.co/philschmid/codegen-6B-mono-sharded-bnb

Url of codegen-6B-mono-sharded-bnb

codegen-6B-mono-sharded-bnb huggingface.co Url

Provider of codegen-6B-mono-sharded-bnb huggingface.co

philschmid
ORGANIZATIONS

Other API from philschmid