You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api-inference/tasks/chat-completion.md
+9-10Lines changed: 9 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,13 +25,12 @@ This is a subtask of [`text-generation`](https://huggingface.co/docs/api-inferen
25
25
-[deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B](https://huggingface.co/deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B): Smaller variant of one of the most powerful models.
26
26
-[meta-llama/Meta-Llama-3.1-8B-Instruct](https://huggingface.co/meta-llama/Meta-Llama-3.1-8B-Instruct): Very powerful text generation model trained to follow instructions.
27
27
-[microsoft/phi-4](https://huggingface.co/microsoft/phi-4): Powerful text generation model by Microsoft.
28
-
-[PowerInfer/SmallThinker-3B-Preview](https://huggingface.co/PowerInfer/SmallThinker-3B-Preview): A very powerful model with reasoning capabilities.
29
28
-[Qwen/Qwen2.5-Coder-32B-Instruct](https://huggingface.co/Qwen/Qwen2.5-Coder-32B-Instruct): Text generation model used to write code.
30
29
-[deepseek-ai/DeepSeek-R1](https://huggingface.co/deepseek-ai/DeepSeek-R1): Powerful reasoning based open large language model.
31
30
32
31
#### Conversational Vision-Language Models (VLMs)
33
32
34
-
-[Qwen/QVQ-72B-Preview](https://huggingface.co/Qwen/QVQ-72B-Preview): Image-text-to-text model with reasoning capabilities.
@@ -332,7 +331,7 @@ const client = new HfInference("hf_***");
332
331
let out ="";
333
332
334
333
conststream=client.chatCompletionStream({
335
-
model:"Qwen/QVQ-72B-Preview",
334
+
model:"Qwen/Qwen2.5-VL-7B-Instruct",
336
335
messages: [
337
336
{
338
337
role:"user",
@@ -375,7 +374,7 @@ const client = new OpenAI({
375
374
let out ="";
376
375
377
376
conststream=awaitclient.chat.completions.create({
378
-
model:"Qwen/QVQ-72B-Preview",
377
+
model:"Qwen/Qwen2.5-VL-7B-Instruct",
379
378
messages: [
380
379
{
381
380
role:"user",
@@ -458,7 +457,7 @@ To use the JavaScript client, see `huggingface.js`'s [package reference](https:/
458
457
|**stop**|_string[]_| Up to 4 sequences where the API will stop generating further tokens. |
459
458
|**stream**|_boolean_||
460
459
|**stream_options**|_object_||
461
-
|** include_usage***|_boolean_| If set, an additional chunk will be streamed before the data: [DONE] message. The usage field on this chunk shows the token usage statistics for the entire request, and the choices field will always be an empty array. All other chunks will also include a usage field, but with a null value. |
460
+
|** include_usage**|_boolean_| If set, an additional chunk will be streamed before the data: [DONE] message. The usage field on this chunk shows the token usage statistics for the entire request, and the choices field will always be an empty array. All other chunks will also include a usage field, but with a null value. |
462
461
|**temperature**|_number_| What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. We generally recommend altering this or `top_p` but not both. |
463
462
|**tool_choice**|_unknown_| One of the following: |
464
463
|** (#1)**|_enum_| Possible values: auto. |
@@ -542,7 +541,7 @@ For more information about streaming, check out [this guide](https://huggingface
Copy file name to clipboardExpand all lines: docs/api-inference/tasks/image-classification.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,7 @@ For more details about the `image-classification` task, check out its [dedicated
26
26
27
27
-[google/vit-base-patch16-224](https://huggingface.co/google/vit-base-patch16-224): A strong image classification model.
28
28
-[facebook/deit-base-distilled-patch16-224](https://huggingface.co/facebook/deit-base-distilled-patch16-224): A robust image classification model.
29
+
-[facebook/convnext-large-224](https://huggingface.co/facebook/convnext-large-224): A strong image classification model.
29
30
30
31
Explore all available models and find the one that suits you best [here](https://huggingface.co/models?inference=warm&pipeline_tag=image-classification&sort=trending).
Explore all available models and find the one that suits you best [here](https://huggingface.co/models?inference=warm&pipeline_tag=image-text-to-text&sort=trending).
30
30
@@ -35,7 +35,7 @@ Explore all available models and find the one that suits you best [here](https:/
Copy file name to clipboardExpand all lines: docs/api-inference/tasks/text-generation.md
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ For more details, check out:
16
16
17
17
Generate text based on a prompt.
18
18
19
-
If you are interested in a Chat Completion task, which generates a response based on a list of messages, check out the [`chat-completion`](./chat-completion) task.
19
+
If you are interested in a Chat Completion task, which generates a response based on a list of messages, check out the [`chat-completion`](./chat_completion) task.
20
20
21
21
<Tip>
22
22
@@ -30,7 +30,6 @@ For more details about the `text-generation` task, check out its [dedicated page
30
30
-[deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B](https://huggingface.co/deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B): Smaller variant of one of the most powerful models.
31
31
-[meta-llama/Meta-Llama-3.1-8B-Instruct](https://huggingface.co/meta-llama/Meta-Llama-3.1-8B-Instruct): Very powerful text generation model trained to follow instructions.
32
32
-[microsoft/phi-4](https://huggingface.co/microsoft/phi-4): Powerful text generation model by Microsoft.
33
-
-[PowerInfer/SmallThinker-3B-Preview](https://huggingface.co/PowerInfer/SmallThinker-3B-Preview): A very powerful model with reasoning capabilities.
34
33
-[Qwen/Qwen2.5-Coder-32B-Instruct](https://huggingface.co/Qwen/Qwen2.5-Coder-32B-Instruct): Text generation model used to write code.
35
34
-[deepseek-ai/DeepSeek-R1](https://huggingface.co/deepseek-ai/DeepSeek-R1): Powerful reasoning based open large language model.
0 commit comments