fix docstring
This commit is contained in:
parent
8760f50f8e
commit
0c31f41536
|
@ -188,14 +188,12 @@ class HfApiModel(Model):
|
||||||
This engine allows you to communicate with Hugging Face's models using the Inference API. It can be used in both serverless mode or with a dedicated endpoint, supporting features like stop sequences and grammar customization.
|
This engine allows you to communicate with Hugging Face's models using the Inference API. It can be used in both serverless mode or with a dedicated endpoint, supporting features like stop sequences and grammar customization.
|
||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
model (`str`, *optional*, defaults to `"Qwen/Qwen2.5-Coder-32B-Instruct"`):
|
model_id (`str`, *optional*, defaults to `"Qwen/Qwen2.5-Coder-32B-Instruct"`):
|
||||||
The Hugging Face model ID to be used for inference. This can be a path or model identifier from the Hugging Face model hub.
|
The Hugging Face model ID to be used for inference. This can be a path or model identifier from the Hugging Face model hub.
|
||||||
token (`str`, *optional*):
|
token (`str`, *optional*):
|
||||||
Token used by the Hugging Face API for authentication. This token need to be authorized 'Make calls to the serverless Inference API'.
|
Token used by the Hugging Face API for authentication. This token need to be authorized 'Make calls to the serverless Inference API'.
|
||||||
If the model is gated (like Llama-3 models), the token also needs 'Read access to contents of all public gated repos you can access'.
|
If the model is gated (like Llama-3 models), the token also needs 'Read access to contents of all public gated repos you can access'.
|
||||||
If not provided, the class will try to use environment variable 'HF_TOKEN', else use the token stored in the Hugging Face CLI configuration.
|
If not provided, the class will try to use environment variable 'HF_TOKEN', else use the token stored in the Hugging Face CLI configuration.
|
||||||
max_tokens (`int`, *optional*, defaults to 1500):
|
|
||||||
The maximum number of tokens allowed in the output.
|
|
||||||
timeout (`int`, *optional*, defaults to 120):
|
timeout (`int`, *optional*, defaults to 120):
|
||||||
Timeout for the API request, in seconds.
|
Timeout for the API request, in seconds.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue