From 62bd83947a95ee209600c4972e2bd11926a4f47a Mon Sep 17 00:00:00 2001 From: Joao Gante Date: Wed, 22 Jan 2025 14:32:27 +0000 Subject: [PATCH] [chat] docs fix (#35840) docs fix --- docs/source/en/chat_templating.md | 2 +- docs/source/en/generation_strategies.md | 2 +- docs/source/en/llm_tutorial.md | 2 +- docs/source/en/quicktour.md | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/source/en/chat_templating.md b/docs/source/en/chat_templating.md index d387ba069c..03d891a664 100644 --- a/docs/source/en/chat_templating.md +++ b/docs/source/en/chat_templating.md @@ -64,7 +64,7 @@ for you, allowing you to write universal code that works for any model. -Chat templates are a critical component of our [`transformers-cli chat` CLI](quicktour#chat-with-text-generation-models). +Chat templates are a critical component of our [chat CLI](quicktour#chat-with-text-generation-models). You can apply the learnings of this guide there as well. diff --git a/docs/source/en/generation_strategies.md b/docs/source/en/generation_strategies.md index ff257c567c..7274b00265 100644 --- a/docs/source/en/generation_strategies.md +++ b/docs/source/en/generation_strategies.md @@ -43,7 +43,7 @@ This guide describes: -`generate()` is a critical component of our [`transformers-cli chat` CLI](quicktour#chat-with-text-generation-models). +`generate()` is a critical component of our [chat CLI](quicktour#chat-with-text-generation-models). You can apply the learnings of this guide there as well. diff --git a/docs/source/en/llm_tutorial.md b/docs/source/en/llm_tutorial.md index dbec07084d..99ec73e3c6 100644 --- a/docs/source/en/llm_tutorial.md +++ b/docs/source/en/llm_tutorial.md @@ -25,7 +25,7 @@ Autoregressive generation is the inference-time procedure of iteratively calling -If you want to jump straight to chatting with a model, [try our `transformers-cli chat` CLI](quicktour#chat-with-text-generation-models). +If you want to jump straight to chatting with a model, [try our chat CLI](quicktour#chat-with-text-generation-models). diff --git a/docs/source/en/quicktour.md b/docs/source/en/quicktour.md index a40798a164..bd472aba36 100755 --- a/docs/source/en/quicktour.md +++ b/docs/source/en/quicktour.md @@ -564,13 +564,13 @@ This CLI is implemented on top of our `AutoClass` abstraction, leveraging our [t [chat](chat_templating.md) tooling, and thus will be compatible with any 🤗 Transformers model. If you have the library [installed](installation.md), you can launch the chat session on your terminal with -``` +```bash transformers-cli chat --model_name_or_path Qwen/Qwen2.5-0.5B-Instruct ``` For a full list of options to launch the chat, type -``` +```bash transformers-cli chat -h ```