Add recipe for HuggingFaceTB-SmolLM2-135M-Instruct (CPU INT4)Add optimization recipe for SmolLM2-135M (CPU INT4)#224
Open
Habibur-02 wants to merge 3 commits intomicrosoft:mainfrom
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds a new Olive/ONNX Runtime GenAI recipe to optimize the HuggingFaceTB/SmolLM2-135M-Instruct model to INT4 for CPU, including config, CI wiring, metadata, and documentation.
Changes:
- Added
olive_config.jsondefining a CPU INT4ModelBuilderpipeline forHuggingFaceTB/SmolLM2-135M-Instruct. - Added
olive_ci.jsonto integrate the new recipe into the GitHub Actions matrix-based CI for Windows CPU. - Added
requirements.txt,info.yml, andREADME.mdto describe, index, and document the recipe.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| HuggingFaceTB-SmolLM2-135M-Instruct/CPU/requirements.txt | Declares Olive, ONNX Runtime, and ONNX Runtime GenAI dependencies needed to run the CPU INT4 recipe. |
| HuggingFaceTB-SmolLM2-135M-Instruct/CPU/olive_config.json | Defines the Olive configuration for converting and quantizing SmolLM2-135M-Instruct to INT4 on CPU via ModelBuilder. |
| HuggingFaceTB-SmolLM2-135M-Instruct/CPU/olive_ci.json | Intended to register the Windows CPU INT4 recipe with the CI matrix generator. |
| HuggingFaceTB-SmolLM2-135M-Instruct/CPU/info.yml | Adds indexing metadata for the SmolLM2 architecture and this CPU INT4 recipe. |
| HuggingFaceTB-SmolLM2-135M-Instruct/CPU/README.md | Documents how to install dependencies, run the optimization, and perform inference with the generated INT4 model. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Author
|
@microsoft-github-policy-service agree |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds a new optimization recipe for the
HuggingFaceTB-SmolLM2-135M-Instructmodel targeting CPU execution.Changes
olive_config.jsonfor INT4 optimization using ModelBuilder.olive_ci.jsonfor automated testing configuration.requirements.txtwith necessary dependencies.info.ymlfor repository indexing.README.md.Verification