Posts

Showing posts from March, 2025

Export/Backup Ollama Model

The following commands help to export/backup the ollama models which allows to quick restore the models or setup an offline machine using file transfer. Pull a model from registry ollama pull llava:7b Export the model mkdir -p llava_7b_backup cd llava_7b_backup ollama show --modelfile llava:7b > Modelfile cat Modelfile | grep -E '^FROM' | cut -d ' ' -f 2 | xargs -I {} cp {} . cat Modelfile | grep '# FROM' | cut -d ' ' -f 3 | xargs -I {} echo 'ollama create {} -f Modelfile' > readme.txt sed -i '' -E 's/^FROM.*blobs/FROM ./g' Modelfile Import the model  cd llava_7b_backup ollama create llava:7b -f Modelfile Run the model ollama run llava:7b Remove the model ollama rm llava:7b

AWS Workspaces Client and Linux Changes

The following changes to AWS Workspaces Client and Linux will boost developer's productivity Make the following changes in the AWS Workspace Client: Menu -> Settings -> Manage Hardware Acceleration -> Enabled (Tick) Menu -> Settings -> Display Settings -> High DPI Mode (Tick) Menu -> Settings -> Switch Running Mode -> Always On (Select) Make the following tweaks inside the Amazon Linux Operating System: Settings -> Privacy -> Screen Lock -> Automatic Screen Lock -> Off Settings -> Power -> Power Saving -> Blank Screen -> Never Settings -> Power -> Suspend & Power Button -> Automatic Suspend -> Off GNOME Tweaks Extension Install the Gnome Tweaks Extension and make the following adjustment Activities -> Show Applications -> Software -> Search -> GNOME Tweaks Open GNOME Tweaks and make the following changes: Activities -> Show Applications -> Utilities -> Tweaks Appearance -> Themes -> Applic...