Say Goodbye to Paid Screen Recording
No Credit Card Required
A free & open source alternative to Loom
5 min to read
DeepHermes-3 is a cutting-edge language model that can be run locally on a Linux system, offering powerful reasoning capabilities directly on your machine. This guide provides a detailed installation process, covering all the necessary steps to get DeepHermes-3 running on your Linux environment.
Before diving into the installation, ensure your system meets the following prerequisites:
If you do not have Arch Linux already, follow these steps.
exit
Unmount all partitions:
umount -R /mnt
Reboot:
reboot
systemctl enable NetworkManager
systemctl enable fstrim.timer
grub-install --target=x86_64-efi --efi-directory=/boot/efi \
--bootloader-id=GRUB
grub-mkconfig -o /boot/grub/grub.cfg
passwd
useradd -m -G wheel,audio,video,optical,storage username
passwd username
EDITOR=vim visudo
# Uncomment %wheel ALL=(ALL:ALL) ALL
arch-chroot /mnt
ln -sf /usr/share/zoneinfo/Region/City /etc/localtime
hwclock --systohc
vim /etc/locale.gen
# Uncomment en_US.UTF-8 UTF-8
locale-gen
echo "LANG=en_US.UTF-8" > /etc/locale.conf
echo "myhostname" > /etc/hostname
vim /etc/hosts
Add:
127.0.0.1 localhost
::1 localhost
127.0.1.1 myhostname.localdomain myhostname
genfstab -U /mnt >> /mnt/etc/fstab
pacstrap /mnt base base-devel linux linux-firmware intel-ucode \
vim networkmanager grub efibootmgr
Note: Use amd-ucode
instead of intel-ucode
for AMD processors[2].
mount /dev/nvme0n1p2 /mnt
Create and mount EFI directory:
mkdir -p /mnt/boot/efi
mount /dev/nvme0n1p1 /mnt/boot/efi
mkfs.fat -F 32 /dev/nvme0n1p1
Format the root partition:
mkfs.ext4 /dev/nvme0n1p2
lsblk
For a modern UEFI system with a single disk, create these partitions using gdisk
:
gdisk /dev/nvme0n1 # or /dev/sda for SATA drives
Create the following partition layout:Write changes: w
timedatectl set-ntp true
timedatectl status
ip link
dhcpcd
For wireless:
iwctl
device list
station wlan0 scan
station wlan0 get-networks
station wlan0 connect SSID
# Enter password when prompted
exit
Verify connection:
ping -c 3 archlinux.org
ls /sys/firmware/efi/efivars
If this directory exists, you're in UEFI mode (correct). If not, you need to boot in UEFI mode.
sha256sum path/to/archlinux.iso
Ollama is a tool that simplifies the process of running language models like DeepSeek-R1. It handles the complexities of model management, making it easy to download, run, and manage different models.
To install Ollama, follow these steps:
ollama --version
. If Ollama is installed correctly, it will display the version number.With Ollama installed, downloading and running DeepHermes-3 is straightforward.
ollama run deepseek-r1:70b
Note: Replace 70b
with the appropriate model size, such as 7b
or 8b
, depending on your system's capabilities and desired performance.
Once DeepHermes-3 is running, you can start experimenting with its capabilities by providing prompts and observing the model's responses.
Ollama provides commands for listing and removing models, allowing you to manage your disk space and switch between different models as needed.
Removing installed models: To remove an installed model and free up disk space, use the following command:
ollama rm deepseek-r1:70b
Replace 70b
with the appropriate model size you wish to remove.
Listing installed models: To view all models downloaded, run the following command:
ollama list
This command will display a list of all the models currently installed on your system, along with their sizes and other relevant information.
After rebooting and logging in:
Install basic desktop environment (optional):
sudo pacman -S xorg-server xorg-xinit
# Then install your preferred desktop environment
Update system:
sudo pacman -Syu
Connect to network:
nmtui
sudo systemctl start NetworkManager
nmtui
nomodeset
Check system logs for issues:
journalctl -p 3 -xb
Clean package cache periodically:
sudo pacman -Sc
Regular system updates:
sudo pacman -Syu
By following this guide, you should now have DeepHermes-3 successfully installed and running on your Linux system. You can now explore its capabilities and integrate it into your projects.
Need expert guidance? Connect with a top Codersera professional today!