Microsoft Foundry Local - Disconnected
This post shows you how to deploy Microsoft Foundry Local onto a disconnected machine with no access to the internet. This requires having a machine with access to the internet to stage the model and installation media and a way of getting those items to the disconnected machine.
From a machine with access to the Internet:
- Install Foundry Local as normal.
- Download the required model via
foundry model download qwen2.5-0.5b-instruct-generic-cpu:4substitutingqwen2.5-0.5b-instruct-generic-cpu:4for the model of your choosing. Navigate to the Foundry cache location - this is discovered via runningfoundry cache locationand defaults toc:\users\username\.foundry\cache\modelswhereusernameis the currently logged in user, Copyfoundry.modelinfo.jsonand thevendor\model folderto the transfer media (USB key or what you’re using to move it across the airgap). At this point, you would have the json file and a folder named Microsoft in the transfer media with a model folder in the Microsoft folder (such as\Microsoft\qwen2.5-0.5b-instruct-generic-cpu-4). Download the foundry local offline installer from Releases · microsoft/Foundry-Local and copy that to the transfer media.
On the air-gapped machine
- Install Foundry Local from the transfer media (for an x86 Windows machine, this would be within PowerShell by running
Add-AppPackage -path FoundryLocal-x64-0.8.119.msix). - Copy the
foundry.modelinfo.jsonfile and thevendor\modelfolder into a new folder on the disconnected machine such asc:\users\username\Models. - Change the cache location via
foundry cache cd c:\users\username\Models. - You can then run the model normally from the cache using
foundry model run qwen2.5-0.5b-instruct-generic-cpu:4.