Goal: Use NVIDIA's published, Colab-compatible TensorRT-LLM workflow to quantize a small model with INT4 AWQ, compile it into an optimized engine with trtllm-build, and produce a before/after benchmark report that demonstrates the "compile once, serve fast" theme of the week. All tools used are free and run on a free-tier GPU (e.g., Google Colab's free T4 runtime). Steps:
TinyLlama/TinyLlama-1.1B-Chat-v1.0 from Hugging Face using the huggingface_hub or transformers library.transformers generation, FP16), measure and record: (a) time-to-first-token (TTFT) and (b) tokens/sec throughput, on a fixed prompt of your choice, averaged over at least 3 runs.examples/quantization/quantize.py script from the TensorRT-LLM repository against TinyLlama with --qformat int4_awq, producing a converted, quantized checkpoint directory.trtllm-build --checkpoint_dir <your_quantized_checkpoint_dir> to compile the quantized checkpoint into an optimized TensorRT engine. If the build fails, do not simply re-run the same command — first delete the build tree (rm -r build cpp/build, or the Colab-equivalent path) and rebuild.Deliverables: Submit your notebook (.ipynb or exported .pdf) showing all commands and output, plus your before/after optimization report (table + reflection), via online upload or text entry.