quark-torch-model-intake
Purpose
Validate the target model and extract the structural facts that quark-torch-quant-plan needs to make correct quantization decisions. This step exists because different model architectures have different quantization requirements — MoE models need expert module replacement, some models require trust_remote_code, and certain architectures have known compatibility issues with specific transformers versions.
Inputs
- Model path (HuggingFace ID or local directory)
env_context.jsonfor Python and accelerator constraintsworkspace_context.jsonfor the validated model path
Outputs: model_analysis.json
Captures architecture facts, quantizable layer count, transformer compatibility, and risks.