StarServer: a distributed training framework
StarServer is a distributed training framework in PAI-TensorFlow that accelerates large-scale model training by replacing TensorFlow's native Send/Recv communication semantics with Pull/Push semantics and enabling lock-free graph execution. In common business scenarios, PAI-TensorFlow runs several times faster than native TensorFlow — for example, achieving near-linear scalability with 3,000 workers.
GPU-accelerated servers will be phased out. Submit TensorFlow tasks on CPU servers. To use GPU-accelerated instances for model training, go to Deep Learning Containers (DLC) and submit a job. For more information, see Create a training job.
How it works
StarServer improves the efficiency of concurrent subgraph execution through two mechanisms:
Pull/Push semantics: Replaces TensorFlow's native Send/Recv communication model, reducing synchronization overhead.
Lock-free graph execution: Removes locking from graph execution, allowing subgraphs to run concurrently without contention.
Together, these changes enable PAI-TensorFlow to achieve near-linear scalability as you add more workers — up to 3,000 workers.
Enable StarServer distributed training
Add protocol="star_server" to the tf.train.Server constructor.
cluster = tf.train.ClusterSpec({"ps": ps_hosts, "worker": worker_hosts})
server = tf.train.Server(cluster,
job_name=FLAGS.job_name,
task_index=FLAGS.task_index,
protocol="star_server")The protocol="star_server" parameter activates Pull/Push semantics and lock-free graph execution.