Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Update CoreML recipe and add LLM test#102

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
metascroy wants to merge3 commits intohuggingface:main
base:main
Choose a base branch
Loading
frommetascroy:coreml-recipe-update

Conversation

metascroy
Copy link
Contributor

This updates CoreML recipes to be export friendly, and adds test for SmolLM.

It also adds option to disable dynamic shapes

@metascroymetascroy mentioned this pull requestJul 11, 2025
@HuggingFaceDocBuilderDev

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

@@ -5,7 +5,7 @@

def install_torch_nightly_deps():
"""Install torch related dependencies from pinned nightly"""
EXECUTORCH_NIGHTLY_VERSION = "dev20250625"
EXECUTORCH_NIGHTLY_VERSION = "dev20250627"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just curious, what are the new features/fixes from ET?

@@ -5,7 +5,7 @@

def install_torch_nightly_deps():
"""Install torch related dependencies from pinned nightly"""
EXECUTORCH_NIGHTLY_VERSION = "dev20250625"
EXECUTORCH_NIGHTLY_VERSION = "dev20250627"
TORCHAO_NIGHTLY_VERSION = "dev20250620"
# Torch nightly is aligned with pinned nightly in https://github.com/pytorch/executorch/blob/main/install_requirements.py#L74
TORCH_NIGHTLY_VERSION = "dev20250601"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should update the pinned PT accordingly. Source of truth is the one pinned on ET trunk. To avoid testing multiple version combinations of different libraries

),
take_over_mutable_buffer=take_over_mutable_buffer,
)
],
compile_config=EdgeCompileConfig(
_check_ir_validity=False,
_skip_dim_order=False,
# In ET 0.7, we can set _skip_dim_order=False
Copy link
Collaborator

Choose a reason for hiding this comment

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

Are you saying there is a regression in the pinned ET? 0.7 has been cut already, new nightly should be created for 0.7. Do we still need to toggle this on/off?

@@ -61,6 +61,7 @@ def load_causal_lm_model(model_name_or_path: str, **kwargs) -> CausalLMExportabl
use_custom_sdpa = use_custom_sdpa or attn_implementation == "custom_sdpa"
max_length = kwargs.get("max_length", 2048)
config = kwargs.get("config") or AutoConfig.from_pretrained(model_name_or_path)
disable_dynamic_shapes = kwargs.get("disable_dynamic_shapes", False)
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: Maybe change the name touse_dynamic_shapes and default toTrue as it will be the mainstream for both XNNPACK and CoreML.

Copy link
Collaborator

@guangy10guangy10 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 to me. Need to fix the CI before merging

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@guangy10guangy10guangy10 approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@metascroy@HuggingFaceDocBuilderDev@guangy10

[8]ページ先頭

©2009-2025 Movatter.jp