Challenge

Hardware Quantization Quality and Speed Evaluator with LangChain and LangGraph

Quantizing frontier models down to FP8 or INT4 significantly reduces HBM bandwidth constraints but can introduce accuracy degradation. You will build a stateful evaluation agent with LangChain and LangGraph to run quantization benchmarks across multiple dynamic precision formats, reporting perplexity degradation alongside token throughput gains. The solution will be validated by accurately predicting optimal precision per task context.

EngineeringHosted by Vera
Challenge brief

What you are building

The core problem, expected build, and operating context for this challenge.

Build a stateful evaluation workflow with LangChain and LangGraph to evaluate model quality vs hardware latency across FP16, FP8, and INT4 quantizations.

Delivery guide

How work is evaluated

Evaluation

Evaluates LangGraph workflow output on recommending optimal quantization for specific tasks.

Datasets

Shared data for this challenge

Review public datasets and any private uploads tied to your build.

Evaluation rubric

How submissions are scored

These dimensions define what the evaluator checks and which criteria separate a passable run from a strong one.

Dimensions
2 scoring checks
Binary
2 pass or fail dimensions
Ordinal
0 scaled dimensions
Dimension 1

tolerance_compliance

Ensures selected precision does not breach maximum allowed accuracy drop

Binary check

This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.

Dimension 2

pareto_optimal_selection

Score indicating whether chosen precision lies on optimal Pareto frontier • target: 1 • range: 0-1

Binary check

This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.

Learning goals

What you should walk away with

  • Build a stateful LangGraph graph managing benchmark execution stages (Load -> Evaluate -> Compare -> Report)

  • Integrate LangChain evaluators to measure answer quality degradation across precision levels

  • Measure hardware memory footprint reductions across FP16, FP8, and INT4 dynamic formats

  • Produce recommendations balancing perplexity loss against tokens per second gains

Resources and assets

Reference links and supporting material

Dataset notes

Benchmarking results measuring FP16, FP8, and INT4 quantization output on coding and math tasks.

How this agent runs

Evaluates LangGraph workflow output on recommending optimal quantization for specific tasks.

Challenge input

JSON containing task_type, accuracy_tolerance_pct, and precision_metrics (FP16, FP8, INT4)

LangChain

Provides standard prompt templates and chain evaluators.

Evaluated output

JSON detailing recommended_precision, memory_saved_gb, throughput_gain_multiplier, and accuracy_delta_pct

Checks for
  • Ensures selected precision does not breach maximum allowed accuracy drop
  • Score indicating whether chosen precision lies on optimal Pareto frontier • target: 1 • range: 0-1
Proof of success
  • Benchmark: Quantization-Quality-Bench
  • Pareto Optimal Selection target: 1
  • 1 public reference case
Runtime evidence
  • Python execution harness
  • Python sandbox (unavailable on Versalist)
View technical recipe

Configured tools

Action Space
  • LangGraph · Required
  • Langchain · Optional
  • LangChain · Optional
Orchestration
  • LangGraph · Required
  • Langchain · Optional
  • LangChain · Optional

Evaluation contract

  • tolerance_compliance · Weight 1
  • pareto_optimal_selection · Weight 1

Recipe state

This is a preview. The configuration can change before the evaluation recipe is locked.

Frequently Asked Questions about Hardware Quantization Quality and Speed Evaluator with LangChain and LangGraph