Skip to content

Add attribute descriptions for GenerateParameters#1798

Merged
Narsil merged 1 commit intomainfrom
add-attribute-description-for-generate-parameters
Apr 23, 2024
Merged

Add attribute descriptions for GenerateParameters#1798
Narsil merged 1 commit intomainfrom
add-attribute-description-for-generate-parameters

Conversation

@Wauplin
Copy link
Contributor

@Wauplin Wauplin commented Apr 23, 2024

Once huggingface/huggingface.js#629 gets merged, we will rely on TGI's specs to generate jsonschema types for text_generation and chat_completion.

This PR adds some documentation for GenerationParameters's properties so that they get documented in the downstream tools (TGI docs but also huggingface.js/huggingface_hub inference clients). I mostly took inspiration from the python client for the descriptions.

Copy link
Contributor

@Narsil Narsil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hero PR :)

@Narsil Narsil merged commit 455cada into main Apr 23, 2024
@Narsil Narsil deleted the add-attribute-description-for-generate-parameters branch April 23, 2024 14:22
Nilabhra pushed a commit to TII-AI-Research-Center/text-generation-inference that referenced this pull request May 14, 2024
Once huggingface/huggingface.js#629 gets merged,
we will rely on TGI's specs to generate jsonschema types for
`text_generation` and `chat_completion`.

This PR adds some documentation for `GenerationParameters`'s properties
so that they get documented in the downstream tools (TGI docs but also
`huggingface.js`/`huggingface_hub` inference clients). I mostly took
inspiration from [the python
client](https://github.com/huggingface/text-generation-inference/blob/main/clients/python/text_generation/types.py)
for the descriptions.
kdamaszk pushed a commit to kdamaszk/tgi-gaudi that referenced this pull request Jun 10, 2024
Once huggingface/huggingface.js#629 gets merged,
we will rely on TGI's specs to generate jsonschema types for
`text_generation` and `chat_completion`.

This PR adds some documentation for `GenerationParameters`'s properties
so that they get documented in the downstream tools (TGI docs but also
`huggingface.js`/`huggingface_hub` inference clients). I mostly took
inspiration from [the python
client](https://github.com/huggingface/text-generation-inference/blob/main/clients/python/text_generation/types.py)
for the descriptions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants