Skip to content

Simplify installation for dev #74

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 1 commit into from
Jun 6, 2025
Merged

Conversation

guangy10
Copy link
Collaborator

@guangy10 guangy10 commented Jun 6, 2025

  • Simplified the setup for dev, which typically require installing torch related packages from latest nightly and installing transformers from source. Run python install_dev.py will install key deps from nightly or source.
  • Updated instructions in the README.md.
  • Use this script in CI.

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

@guangy10 guangy10 marked this pull request as ready for review June 6, 2025 00:59
@guangy10
Copy link
Collaborator Author

guangy10 commented Jun 6, 2025

Tag @kimishpatel for review

Comment on lines 87 to +93
--model "HuggingFaceTB/SmolLM2-135M-Instruct" \
--task "text-generation" \
--recipe "xnnpack" \
--output_dir="hf_smollm2" \
--use_custom_sdpa \
--qlinear
--use_custom_kv_cache \
--qlinear \
--qembedding \
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@kimishpatel Since we're adding all optimizations here, this path must be tested in CI, which we don't have yet. I will put another PR to cover this shortly

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Here: #75

Copy link
Contributor

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

@guangy10 guangy10 merged commit 1a6be72 into huggingface:main Jun 6, 2025
105 of 107 checks passed
@guangy10 guangy10 deleted the dev_install branch June 6, 2025 04:19
kimishpatel pushed a commit to kimishpatel/optimum-executorch that referenced this pull request Jun 6, 2025
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.

None yet

3 participants