Skip to content
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

[Bot] Update inference types #2664

Merged
merged 16 commits into from
Nov 28, 2024
Merged

Conversation

HuggingFaceInfra
Copy link
Contributor

This PR updates the inference types. It has been generated by running:

# Generate Python code
pnpm run inference-codegen  # from @huggingface/tasks-gen

# Copy to this repository
cp -r ./huggingface.js/packages/tasks/.python_generated/* ./huggingface_hub/src/huggingface_hub/inference/_generated/types

# Clean things
make inference_update
make style

This PR was automatically created by the Update Inference Types workflow.

Make sure the changes are correct before merging.

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@HuggingFaceInfra HuggingFaceInfra force-pushed the update-inference-types-automated-pr branch from 8149425 to 7b3624a Compare November 15, 2024 10:44
@Wauplin
Copy link
Contributor

Wauplin commented Nov 15, 2024

(generated as part of #2600, let's not merge yet)

Base automatically changed from add-workflow-update-inference-types to main November 18, 2024 17:11
@HuggingFaceInfra HuggingFaceInfra force-pushed the update-inference-types-automated-pr branch from 7b3624a to 15d8612 Compare November 19, 2024 03:10
@HuggingFaceInfra HuggingFaceInfra force-pushed the update-inference-types-automated-pr branch from 690decf to 05df70f Compare November 21, 2024 03:10
…ingface/huggingface_hub into update-inference-types-automated-pr
Copy link
Contributor

@hanouticelina hanouticelina left a comment

Choose a reason for hiding this comment

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

looks good!

Comment on lines 17 to 18
"""Additional inference parameters
Additional inference parameters for Text Classification
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Let's remove it then (we can still merge this PR first)

Copy link
Contributor

Choose a reason for hiding this comment

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

		"parameters": {
			"$ref": "#/$defs/TextClassificationParameters"
		}

seems enough

Copy link
Contributor

Choose a reason for hiding this comment

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

i'm opening a PR now to remove it!

hanouticelina added a commit to huggingface/huggingface.js that referenced this pull request Nov 21, 2024
this PR removes redundant description in task parameter classes
definition while keeping it in the parameters field reference. this
avoids duplicate documentation, see:
[huggingface/huggingface_hub/pull/2664#discussion](huggingface/huggingface_hub#2664 (comment))
for more context.

Note : `packages/tasks/src/tasks/{task_name/inference.ts` files are
auto-generated.
@HuggingFaceInfra HuggingFaceInfra force-pushed the update-inference-types-automated-pr branch from d274efb to a6e1cd2 Compare November 22, 2024 03:11
@HuggingFaceInfra HuggingFaceInfra force-pushed the update-inference-types-automated-pr branch from c63d566 to b8c5b97 Compare November 23, 2024 03:08
@HuggingFaceInfra HuggingFaceInfra force-pushed the update-inference-types-automated-pr branch from b8c5b97 to 911c175 Compare November 24, 2024 03:14
…ingface/huggingface_hub into update-inference-types-automated-pr
@HuggingFaceInfra HuggingFaceInfra force-pushed the update-inference-types-automated-pr branch from 9b5de39 to 08d3f65 Compare November 28, 2024 03:13
@hanouticelina
Copy link
Contributor

the CI is finally 💚 let's merge this

@hanouticelina hanouticelina merged commit 503d353 into main Nov 28, 2024
17 checks passed
@hanouticelina hanouticelina deleted the update-inference-types-automated-pr branch November 28, 2024 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants