Ask a question to get started
Enter to sendā¢Shift+Enter new line
from_model_id( cls, model_id: str, task: str | None = None, backend: Literal
model_id
str
The model ID of the Hugging Face model.
task
str | None
None
The task to perform (e.g., "text-generation").
backend
Literal['pipeline', 'endpoint', 'text-gen']
'pipeline'
The backend to use. One of "pipeline", "endpoint", "text-gen".
**kwargs
Any
{}
Construct a ChatHuggingFace model from a model_id.
Additional arguments to pass to the backend or ChatHuggingFace.