Update your Raspberry Pi to run the latest software:
sudo apt update && sudo apt full-upgrade
While using Gen2 is an option, it will result in lower performance.
# Function to retrieve the product key from the registry | |
function Get-WindowsKey { | |
try { | |
$path = 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform' | |
$key = (Get-ItemProperty -Path $path -Name BackupProductKeyDefault -ErrorAction Stop).BackupProductKeyDefault | |
return $key | |
} catch { | |
return $null | |
} | |
} |
The secure and correct way to communicate with non-public services on a virtual server machine is via ssh
tunnel
(services like managment console or a database).
To create a simple ssh
tunnel from your host machine to the server on the same port number:
ssh -L 9090:localhost:9090 god@kewldomain.com
This cheatsheet assumes the user is knowledgeable about bare installations of virtual private servers on cloud providers and is looking for quick but comprehensive instructions.
Some trivial commands might be missed or skipped.
However, this document can also work as quick tutorial for newcomers to the RHEL eco-system.
import transformers | |
import torch | |
model_id = "meta-llama/Meta-Llama-3.1-70B" | |
# Transformer input sequences | |
inputs = [ | |
"Hello bot! How are you doing today?", | |
#"What is the date today, and how is the weather in New York?", | |
#"What is the answer to the ultimate question of life, the universe, and everything?" |