Skip to content

[docs] ViTPose #38630

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

Merged
merged 8 commits into from
Jul 2, 2025
Merged

[docs] ViTPose #38630

merged 8 commits into from
Jul 2, 2025

Conversation

stevhliu
Copy link
Member

@stevhliu stevhliu commented Jun 6, 2025

Updates model card for ViTPose and fixes #36773

@stevhliu stevhliu force-pushed the vitpose branch 2 times, most recently from 2bff6a5 to f7abea2 Compare June 16, 2025 19:45
@stevhliu stevhliu requested a review from NielsRogge June 25, 2025 20:50
@stevhliu
Copy link
Member Author

Sorry for the delay @NielsRogge, but I think it should be resolved here. Just trying to figure out why the build_pr_documentation test is failing :(


inputs = person_image_processor(images=image, return_tensors="pt").to(device)
inputs = person_image_processor(images=image, return_tensors="pt").to("cuda")
Copy link
Contributor

Choose a reason for hiding this comment

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

We typically don't add "cuda" by default for users who want to run this on CPU

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated!

@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.

@stevhliu stevhliu requested a review from NielsRogge June 26, 2025 20:41
<img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/model_doc/vitpose.png"/>
</div>

Quantization reduces the memory burden of large models by representing the weights in a lower precision. Refer to the [Quantization](../quantization/overview) overview for more available quantization backends.
Copy link
Contributor

Choose a reason for hiding this comment

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

Quantization seems indeed useful for large (language) models, but ViTPose are pretty small models you can run on-device. The weights are about 300MB. Any reason to push for quantization here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, I included it in case users want to run the vitpose-plus-huge checkpoint! Those weights are about 3.6GB. Let me know if this is large enough to warrant quantization, otherwise happy to remove

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok sounds good (wouldn't recommend it for the base or large versions)

@stevhliu
Copy link
Member Author

Let me know if there any other changes @NielsRogge , otherwise lets merge it! 😄

Copy link
Contributor

@NielsRogge NielsRogge left a comment

Choose a reason for hiding this comment

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

Thanks for improving!

@stevhliu stevhliu merged commit df12d87 into huggingface:main Jul 2, 2025
15 checks passed
@stevhliu stevhliu deleted the vitpose branch July 2, 2025 14:56
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.

Inconsistent Documentation for ⁠dataset_index Requirement Across ViTPose Models
3 participants