Abstract: rading programming assignments in educational settings presents several challenges, including computational resource constraints, inconsistent evaluation criteria, subjectivity, and delayed feedback delivery, all of which can hinder student learning progress. Although large language models (LLMs) demonstrate promising capabilities for automated code evaluation, existing approaches face limitations in scalability, processing efficiency, and deployment feasibility in resource-constrained educational environments. This research presents a comprehensive solution that addresses these challenges through an integrated architecture that combines real student-annotated data, synthetic data generation, specialized model fine-tuning, and a distributed computing infrastructure. We develop a framework for creating high-quality training datasets through both authentic student submissions and a synthetic data generation architecture that produces realistic programming assignments and student responses, while addressing concerns regarding privacy and data insufficiency. Based on this enhanced dataset, we fine-tune BeGrading, a specialized LLM optimized for comprehensive code evaluation across multiple dimensions, including correctness, efficiency, and coding style. BeGrading achieves superior performance with an absolute difference rate of 19% (± 0.95 of 5) compared to the Codestral-22B model of reference, demonstrating effective optimization for educational settings. To overcome computational limitations, we implement a scalable, distributed infrastructure that utilizes Apache Spark Streaming with GPU-accelerated worker nodes, enabling the real-time processing of high-volume grading tasks. Our experimental evaluation demonstrates significant performance improvements, with inference time reductions of up to 50% using dual workers and 70-80% with three workers, while maintaining grading accuracy. The system includes robust failover mechanisms that ensure continuous operation and a reliable distribution of tasks between nodes. This work presents a practical and scalable solution for automated programming assessment that significantly reduces instructor workload while providing students with timely, consistent, and objective feedback. This approach ultimately enhances educational outcomes by improving efficiency and reliability in code evaluation processes. Keywords Large language model, grade, spark, cluster, programming education, synthetic data generation, fine-tuning architecture