Some additional context regarding training -
The United States and the Mujahideen | History of Western Civilization II
Operation Cyclone was one of the longest and most expensive covert CIA operations ever undertaken. More than $20 billion in U.S. funds was funneled into the country to train and arm Afghan resistance groups.
President Reagan greatly expanded the program as part of the Reagan Doctrine of aiding anti-Soviet resistance movements abroad. To execute this policy, Reagan deployed CIA Special Activities Division paramilitary officers to equip the mujihadeen forces against the Soviet Army. Although the CIA and Texas Congressman Charlie Wilson received the most attention for their roles, the key architect of the strategy was Michael G. Vickers, a young CIA paramilitary officer working for Gust Avrakotos, the CIA’s regional head who had a close relationship with Wilson. Vicker’s strategy was to use a broad mix of weapons, tactics, logistics, and training programs to enhance the rebels’ ability to fight a guerrilla war against the Soviets. Reagan’s program assisted in ending the Soviet’s occupation in Afghanistan.