continue-custom/docs/docs/reference/Models/huggingfaceinferenceapi.md
Tim Dahlmanns 6ef8ae6d5a
fix: docs and install dependencies task for new directory structure (#551)
* docs: update directory structure

* fix: install dependencies task

* undo reset

* Remove create-a-recipe.md

---------

Co-authored-by: Nate Sesti <sestinj@gmail.com>
2023-10-16 11:05:15 -07:00

7.1 KiB

import ClassPropertyRef from '@site/src/components/ClassPropertyRef.tsx';

HuggingFaceInferenceAPI

Hugging Face Inference API is a great option for newly released language models. Sign up for an account and add billing here, access the Inference Endpoints here, click on “New endpoint”, and fill out the form (e.g. select a model like WizardCoder-Python-34B-V1.0), and then deploy your model by clicking “Create Endpoint”. Change ~/.continue/config.py to look like this:

from continuedev.core.models import Models
from continuedev.libs.llm.hf_inference_api import HuggingFaceInferenceAPI

config = ContinueConfig(
    ...
    models=Models(
        default=HuggingFaceInferenceAPI(
            endpoint_url: "<INFERENCE_API_ENDPOINT_URL>",
            hf_token: "<HUGGING_FACE_TOKEN>",
    )
)

View the source

Properties

Inherited Properties