Back to Prompt Library
implementation
Build the application
Inspect the original prompt language first, then copy or adapt it once you know how it fits your workflow.
Linked challenge: Build a Local Open-Weight Quantization Precision Tradeoff Explorer
Format
Code-aware
Lines
65
Sections
11
Linked challenge
Build a Local Open-Weight Quantization Precision Tradeoff Explorer
Prompt source
Original prompt text with formatting preserved for inspection.
65 lines
11 sections
No variables
1 code block
## Build
Profile open-weight models across INT4, INT8, and FP8 formats on test hardware. Synthesize memory savings and degradation trade-offs using hosted Claude.
## User
ML Platforms Engineer
## Workflow
1. Ingest local open-weight model parameter definitions and candidate quantization profiles (FP8, INT8, INT4).
2. Compute theoretical memory footprint reductions and simulated memory bandwidth requirement metrics.
3. Query hosted Claude via Anthropic API to analyze accuracy retention trade-offs and recommended target workloads.
4. Output an executive precision trade-off dossier with hardware memory occupancy curves.
## Interface
Web dashboard displaying memory compression charts and Claude-generated deployment recommendations.
## Data
Synthetic open-weight model architecture specs (Qwen, Llama variants) paired with mock benchmark compression ratios.
Starter examples below are synthetic. They are not downloaded records.
## Source
[vLLM open-model serving](https://raw.githubusercontent.com/vllm-project/vllm/main/README.md)
Leverages vLLM quantization format definitions including FP8, INT8, and INT4 for open-weight serving optimization.
## Tools
mlflow, anthropic.
MLflow tracks quantization experiment runs, model artifact sizes, and throughput metrics across local test configurations.
Hosted a currently available hosted Claude model for trade-off evaluation; local execution handles open-weight configuration parsing.
## Deliverables
Submit runnable source, pinned dependencies, setup commands, a working interface, example outputs, and a recorded end-to-end demo. Include tests and an action log.
## Acceptance
- Accurately calculates memory compression factors across FP8, INT8, and INT4.
- Records experiment runs into MLflow tracking tracking server.
- Produces hosted Claude rationales for production quantization deployment readiness.
## Starter Examples
```json
[
{
"input": {
"base_model": "Llama-3-8B",
"base_precision": "FP16",
"target_precision": "INT4",
"parameter_count_b": 8,
"benchmark_eval_loss_delta": 0.08
},
"expected_output": {
"original_size_gb": 16,
"quantized_size_gb": 4.5,
"memory_reduction_pct": 71.8,
"deployment_verdict": "Suitable for edge deployment or high-throughput batching where 0.08 loss increase is tolerable."
}
},
{
"input": {
"base_model": "Llama-3-70B",
"base_precision": "FP16",
"target_precision": "FP8",
"parameter_count_b": 70,
"benchmark_eval_loss_delta": 0.01
},
"expected_output": {
"original_size_gb": 140,
"quantized_size_gb": 70,
"memory_reduction_pct": 50,
"deployment_verdict": "Recommended for enterprise deployment. Halves memory requirements with negligible loss degradation."
}
}
]
```
## Safety
Processes local open-weight model metadata only; no remote execution of unverified binaries.
Use mock external writes. Require human review before any real deployment.Adaptation plan
Keep the source stable, then change the prompt in a predictable order so the next run is easier to evaluate.
Keep stable
Hold the task contract and output shape stable so generated implementations remain comparable.
Tune next
Update libraries, interfaces, and environment assumptions to match the stack you actually run.
Verify after
Test failure handling, edge cases, and any code paths that depend on hidden context or secrets.