Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/source/en/model_doc/albert.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ for token_id in top_k[0]:
<hfoption id="transformers CLI">

```bash
echo -e "Plants create [MASK] through a process known as photosynthesis." | transformers run --task fill-mask --model albert-base-v2 --device 0
echo -e "Plants create [MASK] through a process known as photosynthesis." | transformers run fill-mask --model albert-base-v2 --device 0
```

</hfoption>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/en/model_doc/apertus.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ print(tokenizer.decode(output[0], skip_special_tokens=True))
<hfoption id="transformers CLI">

```bash
echo -e "Plants create energy through a process known as" | transformers run --task text-generation --model swiss-ai/Apertus-8B --device 0
echo -e "Plants create energy through a process known as" | transformers run text-generation --model swiss-ai/Apertus-8B --device 0
```

</hfoption>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/en/model_doc/bamba.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ print(tokenizer.decode(output[0], skip_special_tokens=True))

<hfoption id="transformers CLI">
```bash
echo "Plants create energy through a process known as" | transformers run --task text-generation --model ibm-ai-platform/Bamba-9B-v2 --device 0
echo "Plants create energy through a process known as" | transformers run text-generation --model ibm-ai-platform/Bamba-9B-v2 --device 0
```
</hfoption>
</hfoptions>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/en/model_doc/bart.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ print(f"The predicted token is: {predicted_token}")
<hfoption id="transformers CLI">

```bash
echo -e "Plants create <mask> through a process known as photosynthesis." | transformers run --task fill-mask --model facebook/bart-large --device 0
echo -e "Plants create <mask> through a process known as photosynthesis." | transformers run fill-mask --model facebook/bart-large --device 0
```

</hfoption>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/en/model_doc/barthez.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ print(f"The predicted token is: {predicted_token}")
<hfoption id="transformers CLI">

```bash
echo -e "Les plantes produisent <mask> grâce à un processus appelé photosynthèse." | transformers run --task fill-mask --model moussaKam/barthez --device 0
echo -e "Les plantes produisent <mask> grâce à un processus appelé photosynthèse." | transformers run fill-mask --model moussaKam/barthez --device 0
```

</hfoption>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/en/model_doc/bert-generation.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ print(tokenizer.decode(outputs[0]))
<hfoption id="transformers CLI">

```bash
echo -e "Plants create energy through " | transformers run --task text2text-generation --model "google/roberta2roberta_L-24_discofuse" --device 0
echo -e "Plants create energy through " | transformers run text2text-generation --model "google/roberta2roberta_L-24_discofuse" --device 0
```

</hfoption>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/en/model_doc/bert.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ print(f"The predicted token is: {predicted_token}")
<hfoption id="transformers CLI">

```bash
echo -e "Plants create [MASK] through a process known as photosynthesis." | transformers run --task fill-mask --model google-bert/bert-base-uncased --device 0
echo -e "Plants create [MASK] through a process known as photosynthesis." | transformers run fill-mask --model google-bert/bert-base-uncased --device 0
```

</hfoption>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/en/model_doc/bertweet.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ print(f"The predicted token is: {predicted_token}")
<hfoption id="transformers CLI">

```bash
echo -e "Plants create <mask> through a process known as photosynthesis." | transformers run --task fill-mask --model vinai/bertweet-base --device 0
echo -e "Plants create <mask> through a process known as photosynthesis." | transformers run fill-mask --model vinai/bertweet-base --device 0
```

</hfoption>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/en/model_doc/bigbird_pegasus.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ print(tokenizer.decode(output[0], skip_special_tokens=True))
<hfoption id="transformers">

```bash
echo -e "Plants are among the most remarkable and essential life forms on Earth, possessing a unique ability to produce their own food through a process known as photosynthesis. This complex biochemical process is fundamental not only to plant life but to virtually all life on the planet. Through photosynthesis, plants capture energy from sunlight using a green pigment called chlorophyll, which is located in specialized cell structures called chloroplasts." | transformers run --task summarization --model google/bigbird-pegasus-large-arxiv --device 0
echo -e "Plants are among the most remarkable and essential life forms on Earth, possessing a unique ability to produce their own food through a process known as photosynthesis. This complex biochemical process is fundamental not only to plant life but to virtually all life on the planet. Through photosynthesis, plants capture energy from sunlight using a green pigment called chlorophyll, which is located in specialized cell structures called chloroplasts." | transformers run summarization --model google/bigbird-pegasus-large-arxiv --device 0
```

</hfoption>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/en/model_doc/byt5.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ print(tokenizer.decode(output[0], skip_special_tokens=True))
<hfoption id="transformers">

```bash
echo -e "translate English to French: Life is beautiful." | transformers run --task text2text-generation --model google/byt5-small --device 0
echo -e "translate English to French: Life is beautiful." | transformers run text2text-generation --model google/byt5-small --device 0
```

</hfoption>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/en/model_doc/camembert.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ print(f"The predicted token is: {predicted_token}")
<hfoption id="transformers CLI">

```bash
echo -e "Le camembert est un délicieux fromage <mask>." | transformers run --task fill-mask --model camembert-base --device 0
echo -e "Le camembert est un délicieux fromage <mask>." | transformers run fill-mask --model camembert-base --device 0
```

</hfoption>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/en/model_doc/canine.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ sequence_output = outputs.last_hidden_state
<hfoption id="transformers CLI">

```bash
echo -e "Plant create energy through a process known as photosynthesis." | transformers run --task feature-extraction --model google/canine-c --device 0
echo -e "Plant create energy through a process known as photosynthesis." | transformers run feature-extraction --model google/canine-c --device 0
```

</hfoption>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/en/model_doc/code_llama.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ print(filled_text)
<hfoption id="transformers CLI">

```bash
echo -e "# Function to calculate the factorial of a number\ndef factorial(n):" | transformers run --task text-generation --model meta-llama/CodeLlama-7b-hf --device 0
echo -e "# Function to calculate the factorial of a number\ndef factorial(n):" | transformers run text-generation --model meta-llama/CodeLlama-7b-hf --device 0
```

</hfoption>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/en/model_doc/deberta-v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ print(f"Predicted label: {predicted_label}")
<hfoption id="transformers CLI">

```bash
echo -e "DeBERTa-v2 is great at understanding context!" | transformers run --task fill-mask --model microsoft/deberta-v2-xlarge-mnli --device 0
echo -e "DeBERTa-v2 is great at understanding context!" | transformers run fill-mask --model microsoft/deberta-v2-xlarge-mnli --device 0
```

</hfoption>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/en/model_doc/deberta.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ print(f"The predicted relation is: {labels[predicted_class]}")
<hfoption id="transformers CLI">

```bash
echo -e '{"text": "A soccer game with multiple people playing.", "text_pair": "Some people are playing a sport."}' | transformers run --task text-classification --model microsoft/deberta-base-mnli --device 0
echo -e '{"text": "A soccer game with multiple people playing.", "text_pair": "Some people are playing a sport."}' | transformers run text-classification --model microsoft/deberta-base-mnli --device 0
```

</hfoption>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/en/model_doc/distilbert.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ print(f"Predicted label: {predicted_label}")
<hfoption id="transformers CLI">

```bash
echo -e "I love using Hugging Face Transformers!" | transformers run --task text-classification --model distilbert-base-uncased-finetuned-sst-2-english
echo -e "I love using Hugging Face Transformers!" | transformers run text-classification --model distilbert-base-uncased-finetuned-sst-2-english
```

</hfoption>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/en/model_doc/electra.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ print(f"Predicted label: {predicted_label}")
<hfoption id="transformers CLI">

```bash
echo -e "This restaurant has amazing food." | transformers run --task text-classification --model bhadresh-savani/electra-base-emotion --device 0
echo -e "This restaurant has amazing food." | transformers run text-classification --model bhadresh-savani/electra-base-emotion --device 0
```

</hfoption>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/en/model_doc/encoder-decoder.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ print(tokenizer.decode(summary[0], skip_special_tokens=True))
<hfoption id="transformers CLI">

```bash
echo -e "Plants create energy through a process known as photosynthesis. This involves capturing sunlight and converting carbon dioxide and water into glucose and oxygen." | transformers run --task summarization --model "patrickvonplaten/bert2bert-cnn_dailymail-fp16" --device 0
echo -e "Plants create energy through a process known as photosynthesis. This involves capturing sunlight and converting carbon dioxide and water into glucose and oxygen." | transformers run summarization --model "patrickvonplaten/bert2bert-cnn_dailymail-fp16" --device 0
```

</hfoption>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/en/model_doc/ernie.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ print(f"The predicted token is: {predicted_token}")
<hfoption id="transformers CLI">

```bash
echo -e "巴黎是[MASK]国的首都。" | transformers run --task fill-mask --model nghuyong/ernie-3.0-xbase-zh --device 0
echo -e "巴黎是[MASK]国的首都。" | transformers run fill-mask --model nghuyong/ernie-3.0-xbase-zh --device 0
```

</hfoption>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/en/model_doc/gemma.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ print(tokenizer.decode(outputs[0], skip_special_tokens=True))
<hfoption id="transformers CLI">

```bash
echo -e "LLMs generate text through a process known as" | transformers run --task text-generation --model google/gemma-2b --device 0
echo -e "LLMs generate text through a process known as" | transformers run text-generation --model google/gemma-2b --device 0
```

</hfoption>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/en/model_doc/gemma2.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ print(tokenizer.decode(outputs[0], skip_special_tokens=True))
<hfoption id="transformers CLI">

```bash
echo -e "Explain quantum computing simply." | transformers run --task text-generation --model google/gemma-2-2b --device 0
echo -e "Explain quantum computing simply." | transformers run text-generation --model google/gemma-2-2b --device 0
```

</hfoption>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/en/model_doc/gemma3.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ print(processor.decode(output[0], skip_special_tokens=True))
<hfoption id="transformers CLI">

```bash
echo -e "Plants create energy through a process known as" | transformers run --task text-generation --model google/gemma-3-1b-pt --device 0
echo -e "Plants create energy through a process known as" | transformers run text-generation --model google/gemma-3-1b-pt --device 0
```

</hfoption>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/en/model_doc/gemma3n.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ print(processor.decode(output[0], skip_special_tokens=True))
<hfoption id="transformers CLI">

```bash
echo -e "Plants create energy through a process known as" | transformers run --task text-generation --model google/gemma-3n-e2b --device 0
echo -e "Plants create energy through a process known as" | transformers run text-generation --model google/gemma-3n-e2b --device 0
```

</hfoption>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/en/model_doc/gpt2.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ print(tokenizer.decode(output[0], skip_special_tokens=True))
<hfoption id="transformers CLI">

```bash
echo -e "Hello, I'm a language model" | transformers run --task text-generation --model openai-community/gpt2 --device 0
echo -e "Hello, I'm a language model" | transformers run text-generation --model openai-community/gpt2 --device 0
```

</hfoption>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/en/model_doc/gpt_neo.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ print(tokenizer.decode(output[0], skip_special_tokens=True))
<hfoption id="transformers CLI">

```bash
echo -e "Hello, I'm a language model" | transformers run --task text-generation --model EleutherAI/gpt-neo-1.3B --device 0
echo -e "Hello, I'm a language model" | transformers run text-generation --model EleutherAI/gpt-neo-1.3B --device 0
```

</hfoption>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/en/model_doc/gpt_neox_japanese.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ print(tokenizer.decode(outputs[0], skip_special_tokens=True))
</hfoption>
<hfoption id="transformers CLI">
```bash
echo -e "人とAIが協調するためには、" | transformers run --task text-generation --model abeja/gpt-neox-japanese-2.7b --device 0
echo -e "人とAIが協調するためには、" | transformers run text-generation --model abeja/gpt-neox-japanese-2.7b --device 0
```

</hfoption>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/en/model_doc/granite.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ print(tokenizer.decode(outputs[0], skip_special_tokens=True))
<hfoption id="transformers CLI">

```python
echo -e "Explain quantum computing simply." | transformers run --task text-generation --model ibm-granite/granite-3.3-8b-instruct --device 0
echo -e "Explain quantum computing simply." | transformers run text-generation --model ibm-granite/granite-3.3-8b-instruct --device 0
```

</hfoption>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/en/model_doc/led.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ print(tokenizer.decode(output[0], skip_special_tokens=True))
<hfoption id="transformers">

```bash
!echo -e "Plants are among the most remarkable and essential life forms on Earth, possessing a unique ability to produce their own food through a process known as photosynthesis. This complex biochemical process is fundamental not only to plant life but to virtually all life on the planet. Through photosynthesis, plants capture energy from sunlight using a green pigment called chlorophyll, which is located in specialized cell structures called chloroplasts." | transformers run --task summarization --model allenai/led-base-16384 --device 0
!echo -e "Plants are among the most remarkable and essential life forms on Earth, possessing a unique ability to produce their own food through a process known as photosynthesis. This complex biochemical process is fundamental not only to plant life but to virtually all life on the planet. Through photosynthesis, plants capture energy from sunlight using a green pigment called chlorophyll, which is located in specialized cell structures called chloroplasts." | transformers run summarization --model allenai/led-base-16384 --device 0
```

</hfoption>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/en/model_doc/longformer.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ tokenizer.decode(predictions).split()
<hfoption id="transformers CLI">

```bash
echo -e "San Francisco 49ers cornerback Shawntae Spencer will miss the rest of the <mask> with a torn ligament in his left knee." | transformers run --task fill-mask --model allenai/longformer-base-4096 --device 0
echo -e "San Francisco 49ers cornerback Shawntae Spencer will miss the rest of the <mask> with a torn ligament in his left knee." | transformers run fill-mask --model allenai/longformer-base-4096 --device 0
```

</hfoption>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/en/model_doc/mamba.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ print(tokenizer.decode(output[0], skip_special_tokens=True)
<hfoption id="transformers CLI">

```bash
echo -e "Plants create energy through a process known as" | transformers run --task text-generation --model state-spaces/mamba-130m-hf --device 0
echo -e "Plants create energy through a process known as" | transformers run text-generation --model state-spaces/mamba-130m-hf --device 0
```

</hfoption>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/en/model_doc/mamba2.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ print(tokenizer.decode(output[0], skip_special_tokens=True))
<hfoption id="transformers CLI">

```bash
echo -e "Plants create energy through a process known as" | transformers run --task text-generation --model mistralai/Mamba-Codestral-7B-v0.1 --device 0
echo -e "Plants create energy through a process known as" | transformers run text-generation --model mistralai/Mamba-Codestral-7B-v0.1 --device 0
```

</hfoption>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/en/model_doc/modernbert-decoder.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ print(f"Generated text: {generated_text}")
<hfoption id="transformers CLI">

```bash
echo "The future of artificial intelligence is" | transformers run --task text-generation --model jhu-clsp/ettin-decoder-17m --device 0
echo "The future of artificial intelligence is" | transformers run text-generation --model jhu-clsp/ettin-decoder-17m --device 0
```

</hfoption>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/en/model_doc/modernbert.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ print(f"The predicted token is: {predicted_token}")
<hfoption id="transformers CLI">

```bash
echo -e "Plants create [MASK] through a process known as photosynthesis." | transformers run --task fill-mask --model answerdotai/ModernBERT-base --device 0
echo -e "Plants create [MASK] through a process known as photosynthesis." | transformers run fill-mask --model answerdotai/ModernBERT-base --device 0
```

</hfoption>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/en/model_doc/mt5.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ print(tokenizer.decode(output[0], skip_special_tokens=True))
<hfoption id="transformers CLI">

```bash
echo -e "Plants are remarkable organisms that produce their own food using a method called photosynthesis." | transformers run --task text2text-generation --model csebuetnlp/mT5_multilingual_XLSum --device 0
echo -e "Plants are remarkable organisms that produce their own food using a method called photosynthesis." | transformers run text2text-generation --model csebuetnlp/mT5_multilingual_XLSum --device 0
```

</hfoption>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/en/model_doc/nllb.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ print(tokenizer.batch_decode(translated_tokens, skip_special_tokens=True)[0])
<hfoption id="transformers CLI">

```bash
echo -e "UN Chief says there is no military solution in Syria" | transformers run --task "translation_en_to_fr" --model facebook/nllb-200-distilled-600M --device 0
echo -e "UN Chief says there is no military solution in Syria" | transformers run translation_en_to_fr --model facebook/nllb-200-distilled-600M --device 0
```

</hfoption>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/en/model_doc/olmo.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ print(tokenizer.decode(output[0], skip_special_tokens=True))
<hfoption id="transformers CLI">

```bash
echo -e "Plants create energy through a process known as" | transformers run --task text-generation --model allenai/OLMo-7B-hf --device 0
echo -e "Plants create energy through a process known as" | transformers run text-generation --model allenai/OLMo-7B-hf --device 0
```

</hfoption>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/en/model_doc/olmo2.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ print(tokenizer.decode(output[0], skip_special_tokens=True))
<hfoption id="transformers CLI">

```bash
echo -e "Plants create energy through a process known as" | transformers run --task text-generation --model allenai/OLMo-2-0425-1B --device 0
echo -e "Plants create energy through a process known as" | transformers run text-generation --model allenai/OLMo-2-0425-1B --device 0
```

</hfoption>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/en/model_doc/olmo3.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ print(tokenizer.decode(output[0], skip_special_tokens=True))
<hfoption id="transformers CLI">

```bash
echo -e "Plants create energy through a process known as" | transformers run --task text-generation --model allenai/TBA --device 0
echo -e "Plants create energy through a process known as" | transformers run text-generation --model allenai/TBA --device 0
```

</hfoption>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/en/model_doc/openai-gpt.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ print(tokenizer.decode(outputs[0], skip_special_tokens=True))
<hfoption id="transformers CLI">

```bash
echo -e "The future of AI is" | transformers run --task text-generation --model openai-community/openai-gpt --device 0
echo -e "The future of AI is" | transformers run text-generation --model openai-community/openai-gpt --device 0

```

Expand Down
2 changes: 1 addition & 1 deletion docs/source/en/model_doc/opt.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ tokenizer.batch_decode(generated_ids)[0]
<hfoption id="transformers CLI">

```py
echo -e "Plants create energy through a process known as" | transformers run --task text-generation --model facebook/opt-125m --device 0
echo -e "Plants create energy through a process known as" | transformers run text-generation --model facebook/opt-125m --device 0
```

</hfoption>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/en/model_doc/pegasus.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ print(tokenizer.decode(output[0], skip_special_tokens=True))
<hfoption id="transformers CLI">

```bash
echo -e "Plants are remarkable organisms that produce their own food using a method called photosynthesis. This process involves converting sunlight, carbon dioxide, and water into glucose, which provides energy for growth. Plants play a crucial role in sustaining life on Earth by generating oxygen and serving as the foundation of most ecosystems." | transformers run --task summarization --model google/pegasus-xsum --device 0
echo -e "Plants are remarkable organisms that produce their own food using a method called photosynthesis. This process involves converting sunlight, carbon dioxide, and water into glucose, which provides energy for growth. Plants play a crucial role in sustaining life on Earth by generating oxygen and serving as the foundation of most ecosystems." | transformers run summarization --model google/pegasus-xsum --device 0
```

</hfoption>
Expand Down
Loading