Coal miners in western Siberia, the last major holdouts in a costly, 2-month-old national strike, agreed Wednesday to return to work.

All but 12 mines in the vast Kuznetsk basin, the Soviet Union's second most important coal producing region, will resume work on Friday, said Sergei Zelenkov, the strike committee co-chairman.Miners in the Kuznetsk basin and those at six pits on the Far East island of Sakhalin were the only miners still participating in the strike that began March 1, according to the Independent Union of Miners. Miners in the Far East region of Vorkuta earlier voted to resume work on Friday.

At its height, the strike idled one-quarter to one-third of the country's 600 mines and 300,000 of its 1.2 million miners.

Kuznetsk miners refused to resume work until they reviewed a document in which President Mikhail S. Gorbachev agreed to relinquish control over half the country's coal mines to the Russian Federation, led by Boris N. Yeltsin.

The Sakhalin miners also were holding out for proof they will be transferred to Russian jurisdiction.

Copies of the agreement were hand-delivered to the Kuznetsk miners Wednesday after they refused to consider a text dictated over the telephone from Moscow by regional strike committee chairman Vyacheslav Golikov.

Miners' representatives from 16 cities in the Kuznetsk basin voted 14-2 in favor of joining the growing return-to-work movement, Zelenkov said by telephone from Kemerevo. They represent 41 of the region's 53 mines, he said.

Miners at 12 pits in Beriozovsk and Leninska-Kuznetsk will hold separate meetings on Friday to decide whether to prolong the walkout, he said.

Miners currently earn an average of $660 a month, about 40 percent above the national average. They want wages to be linked to inflation.