ai-engineering-lab / projects /document_rag /data /samples /pc_inference_notes.md
Yogesh18018's picture
Publish reviewed AI Engineering Lab snapshot
667a0a4 verified
|
Raw History Blame Contribute Delete
987 Bytes

A newer version of the Gradio SDK is available: 6.31.0

Upgrade

Local inference and PC building

These are project-authored demonstration notes connecting the project to local PC experimentation.

A neural model's weights, activations, and key-value cache all consume memory. GPU VRAM is separate from system RAM. Available VRAM, numerical precision, batch size, and sequence length influence which model fits.

CPU inference is useful for small models and lightweight demos. A GPU may improve throughput, but model loading and tokenization can still dominate a short request. Measure end-to-end time as well as model execution time.

This document RAG demo uses a small CPU embedding model through ONNX. Large-model answer generation is optional and runs through the configured provider. It does not require a local high-end GPU.

When comparing hardware, keep model version, input length, batch size, and warm-up procedure fixed. Report the actual machine and measurements. These notes contain no benchmark claims about a particular graphics card.