-
Notifications
You must be signed in to change notification settings - Fork 453
No more text2text
#1590
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
No more text2text
#1590
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import type { TaskDataCustom } from "../index.js"; | ||
|
||
const taskData: TaskDataCustom = { | ||
canonicalId: "text2text-generation", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. shouldn't we replace by canonicalId: "text-generation", ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. well no, because since those examples were created, we added dedicated pipelines for both summarization and translation, iiuc, cc @SBrandeis or is it not how it works? ^^' |
||
canonicalId: "text-generation", | ||
datasets: [ | ||
{ | ||
description: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
This task covers guides on both [text-generation](https://huggingface.co/models?pipeline_tag=text-generation&sort=downloads) and [text-to-text generation](https://huggingface.co/models?pipeline_tag=text2text-generation&sort=downloads) models. Popular large language models that are used for chats or following instructions are also covered in this task. You can find the list of selected open-source large language models [here](https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard), ranked by their performance scores. | ||
This task covers guides on [text-generation](https://huggingface.co/models?pipeline_tag=text-generation&sort=downloads) models. Popular large language models that are used for chats or following instructions are also covered in this task. You can find the list of selected open-source large language models [here](https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard), ranked by their performance scores. | ||
|
||
## Use Cases | ||
|
||
|
@@ -58,19 +58,6 @@ generator("Hello, I'm a language model", max_length = 30, num_return_sequences=3 | |
## {'generated_text': "Hello, I'm a language modeler. I write and maintain software in Python. I love to code, and that includes coding things that require writing"}, ... | ||
``` | ||
|
||
[Text-to-Text generation models](https://huggingface.co/models?pipeline_tag=text2text-generation&sort=downloads) have a separate pipeline called `text2text-generation`. This pipeline takes an input containing the sentence including the task and returns the output of the accomplished task. | ||
|
||
```python | ||
from transformers import pipeline | ||
|
||
text2text_generator = pipeline("text2text-generation") | ||
text2text_generator("question: What is 42 ? context: 42 is the answer to life, the universe and everything") | ||
[{'generated_text': 'the answer to life, the universe and everything'}] | ||
|
||
text2text_generator("translate from English to French: I'm very happy") | ||
[{'generated_text': 'Je suis très heureux'}] | ||
``` | ||
|
||
You can use [huggingface.js](https://github.com/huggingface/huggingface.js) to infer text classification models on Hugging Face Hub. | ||
Comment on lines
-61
to
-73
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This still exists in transformers, so I'm not entirely sure we should remove it There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd suggest we keep it here but add a "historical note" comment. cc @LysandreJik @ArthurZucker for viz |
||
|
||
```javascript | ||
|
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import type { TaskDataCustom } from "../index.js"; | ||
|
||
const taskData: TaskDataCustom = { | ||
canonicalId: "text2text-generation", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here ? |
||
canonicalId: "text-generation", | ||
datasets: [ | ||
{ | ||
description: "A dataset of copyright-free books translated into 16 different languages.", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or we could just remove it, but fine to keep it as a subtask i guess
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no strong opinion, just copied what had been done for
conversational
in #457There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok to keep