Skip to content

Conversation

jackzhxng
Copy link
Contributor

Summary: Fix internal tests for diff external diff generated by #13805 for adding LiquidAI's LFM2 model to ExecuTorch.

Reviewed By: mergennachin

Differential Revision: D81491136

Copy link

pytorch-bot bot commented Sep 3, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/13916

Note: Links to docs will display an error until the docs builds have been completed.

❌ 2 New Failures, 1 Pending

As of commit 2111b34 with merge base 8607c89 (image):

NEW FAILURES - The following jobs have failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 3, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D81491136

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D81491136

jackzhxng added a commit to jackzhxng/executorch that referenced this pull request Sep 3, 2025
Summary:
Pull Request resolved: pytorch#13916

Fix internal tests for diff external diff generated by pytorch#13805 for adding LiquidAI's LFM2 model to ExecuTorch.

Reviewed By: mergennachin

Differential Revision: D81491136
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D81491136

1 similar comment
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D81491136

Summary:
Add support for [LiquidAI LFM2](https://huggingface.co/collections/LiquidAI/lfm2-686d721927015b2ad73eaa38) model family. For more information about models, please read [the blog post](https://www.liquid.ai/blog/liquid-foundation-models-v2-our-second-series-of-generative-ai-models).

- Support hybrid LFM2-350M, LFM2-700M, and LFM2-1.2B models.
- Add `ShortConvBlock`.
- Modify `construct_transformer` to construct hybrid architectures.
- Move FeedForward to avoid cyclid dependency

Instructions are in `examples/models/lfm2/README.md`.

Pull Request resolved: pytorch#13805

Test Plan:
All commands in `README.md` are tests.
```
❯ python -m examples.models.llama.runner.native \
  --model lfm2_700m \
  --pte lfm2_700m_8da4w.pte \
  --tokenizer ~/.cache/huggingface/hub/models--LiquidAI--LFM2-700M/snapshots/ab260293733f05dd4ce22399bea1cae2cf9b272d/tokenizer.json \
  --tokenizer_config ~/.cache/huggingface/hub/models--LiquidAI--LFM2-700M/snapshots/ab260293733f05dd4ce22399bea1cae2cf9b272d/tokenizer_config.json \
  --prompt "<|startoftext|><|im_start|>user\nWho are you?<|im_end|>\n<|im_start|>assistant\n" \
  --params examples/models/lfm2/config/lfm2_700m_config.json \
  --max_len 128 \
  -kv \
  --temperature 0.3

...
I'm an AI designed to assist with generating text based on the prompts you provide. I'm a type of language model, but I don't have a physical form or consciousness. I operate based on complex algorithms and vast amounts of training data. How can I help you today? If you have a specific question or need assistance with something, feel free to ask!
...
```

Differential Revision: D81593776

Pulled By: jackzhxng
Summary:
Pull Request resolved: pytorch#13916

Fix internal tests for diff external diff generated by pytorch#13805 for adding LiquidAI's LFM2 model to ExecuTorch.

Reviewed By: mergennachin

Differential Revision: D81491136
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D81491136

@jackzhxng jackzhxng added the release notes: none Do not include this in the release notes label Sep 4, 2025
@facebook-github-bot facebook-github-bot merged commit 4628f89 into pytorch:main Sep 5, 2025
113 of 116 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported release notes: none Do not include this in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants