Hugging Face Models
See Model Configuration for a full list of available model properties.
Overview
Use the procedure outlined below to configure and use Hugging Face models within Profound AI.
Steps
Log into your account at huggingface.co.
If you don’t have an account, create one.
Find the model you’re looking to use.
For best results with Profound AI, the model should support function calling.
A foundation model that doesn’t support function calling can be fine tuned for function calling.
Select Deploy and follow the process to create an Inference endpoint.
Copy the endpoint URL to your model configuration.
Go to your Hugging Face profile settings and select Access Tokens.
Create a new access token and copy it to the apiKey property of your model configuration.
Example
The example below shows a sample configuration for the Trelis/CodeLlama-70b-Instruct-hf-function-calling-v3 Hugging Face model:
"HuggingFace model": {
provider: "huggingface",
endpoint: "......",
model: "Trelis/CodeLlama-70b-Instruct-hf-function-calling-v3",
apiKey: "......"
}