Repository navigation
docs: add Llama 3.1 8B operator pruning profiles - #1057
Merged
Merged
Conversation
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.
Summary
scripts/configs/.Motivation
InfiniLM users can start from a tested operator selection for their backend and adjust it for their model. The example files capture both the operators needed at runtime and the C++ APIs needed to build InfiniLM.
Type of Change
docs(examples and usage guidance)Platforms Affected
WITH_CPU, for Moore's generated dispatch)WITH_NVIDIA)WITH_METAX)WITH_MOORE)WITH_ASCEND)WITH_TORCH, for Moore's ATen providers)Smoke Test Result
Built and installed each pruned C++ SDK with its JSON selected via
-DINFINI_OPS_OPS. Ran the following InfiniLM inference smoke test withDEVICEset tonvidia,metax,moore, orascendandMODEL_DIRpointing to the BF16Meta-Llama-3.1-8B-Instructcheckpoint.All four committed JSON files match the smoke-tested inputs. On the PR base, local checks confirmed JSON parsing, native provider selection, and
git diff --check. The repository Python smoke and full suites were not run for these C++ SDK profiles.Test Results on Supported Platforms
Benchmark / Performance Impact
N/A
Notes for Reviewers
12cc072awith InfiniCore08d972c6and its pinned InfiniOpsc630ee54. It covered single-device BF16 inference with static attention, a static KV cache, and greedy decoding. Each profile keeps 42 additional entries aspublic_api_onlyfor the InfiniLM build.argmax,tril, andtriu. Its smoke build usedWITH_TORCH=ONandWITH_CPU=ONto satisfy generated dispatch references, plus a local FP16 type mapping fix on the pinned InfiniRTc0810cf. The corresponding upstream fix is InfiniRT #58.