You don't need to use sodium metal for this. The typical base of choice is sodium amide (NaNH2) in liquid ammonia solvent, although sodium diisopropylamide or other strong bases may be used. I believe that ethers are also acceptable solvents.
When the intent is to the alkylate the resultant acetylide ion, di-alkylation is difficult to avoid unless the acetylene is protected on one end. An typical approach is to use something like trimethylsilyl acetylene. After alkylation, the group is deprotected, providing a terminal alkyne.