Repository navigation
Home
Sudhanshu Shukla edited this page Nov 14, 2026
·
3 revisions
Project: parallel batch sentiment classification using PyTorch, Hugging Face Transformers, and spawned worker processes; also includes offline mode.
The default inference backend loads Qwen/Qwen2.5-0.5B-Instruct independently on each selected CUDA GPU (or on CPU). An offline --mock path replaces the LLM with a deterministic keyword heuristic so queueing and JSONL output can be exercised without model downloads.
- Implemented: independent replica-per-GPU data-parallel batch inference, dynamic queue, text-length batching, JSONL output, optional synthetic labels and per-worker counts.
- Not implemented: DDP training, tensor/pipeline parallelism, model sharding, HTTP model serving, web UI, vector database, or production authentication.
- Mock-only evaluation: measures pipeline correctness, not model quality or true GPU throughput.
The uploaded DDP-training notebook is retained in legacy/ for completeness, but does not belong to this runtime architecture.
Parallel LLM Inference
- Home
- Getting Started
- Architecture
- Implementation
- Operations