Go here to install Solana.
inner: [ | |
"/usr/local/bin/agave-validator", | |
"--identity", | |
"/data/validator-keypair.json", | |
"--known-validator", | |
"7Np41oeYqPefeNQEHSv1UDhYrehxin3NStELsSKCT4K2", | |
"--known-validator", | |
"GdnSyH3YtwcxFvQrVVJMm1JhTS4QVX7MFsX56uJLUfiZ", | |
"--known-validator", | |
"DE1bawNcRJB9rVm3buyMVfr8mBEoyyu73NBovf2oXJsJ", |
# RELAYER SERVICE | |
[Unit] | |
Description=Solana transaction relayer | |
#Requires=network-online.target chrony.service | |
After=network-online.target | |
StartLimitIntervalSec=0 | |
ConditionPathExists=/root/solana/relayer-keypair.json | |
ConditionPathExists=/root/solana/private.pem | |
ConditionPathExists=/root/solana/public.pem |
# a simple Flask API to emulate OpenAI's using llama models and/or transformers | |
# runs on 3080 | |
import sys | |
import time | |
import torch | |
import json | |
from peft import PeftModel | |
from flask import Flask, make_response, request, abort |
[2022-07-23T17:17:37.975415248Z INFO solana_validator] solana-validator 1.10.31 (src:77a40cd8; feat:4192065167) | |
[2022-07-23T17:17:37.975464778Z INFO solana_validator] Starting validator with: ArgsOs { | |
inner: [ | |
"solana-validator", | |
"--gossip-port", | |
"8001", | |
"--dynamic-port-range", |
# This isn't supposed to run as a bash script, i named it with ".sh" for syntax highlighting. | |
# https://developer.nvidia.com/nsight-systems | |
# https://docs.nvidia.com/nsight-systems/profiling/index.html | |
# My preferred nsys (command line executable used to create profiles) commands | |
# | |
# In your script, write | |
# torch.cuda.nvtx.range_push("region name") | |
# ... |
I often find myself ssh'ing into my servers and checking my systemd service logs with $ journalctl -f -u {name}.service
. One day I got tired of this and wanted all of my important logs in once place (Amazon AWS Cloudwatch). To my dismay, there weren't any real good tutorials on how to do so. So, voilà.
Overall, it's a fairly simple process consisting of the following few steps.
Open the service file with $ sudo vi /lib/systemd/system/{name}.service
Modify the [Service]
section:
Single-process:
python main_amp.py -a resnet50 --b 224 --deterministic --workers 4 --opt-level O1 ./bare_metal_train_val/
Multi-process:
python -m torch.distributed.launch --nproc_per_node=2 main_amp.py -a resnet50 --b 224 --deterministic --workers 4 --opt-level O1 ./bare_metal_train_val/
Set up Kubernetes on 3 Debian Jessie virtual machines: One master. Two nodes. Additionally do this without any "magic" so that what is required to be running to make everything work is plain and obvious.
We will be using flannel for the inter-machine networking layer. Mainly because it is useful and it seems to be pretty popular.
Do you want know what's the orange color from Bitcoin logo? Here's the colours: | |
Hexadecimal: | |
#FF9900 | |
RGB | |
(255,153,0) | |
Any suggestions are welcome! | |
Fonts: http://www.color-hex.com/color/ff9900 and https://bitcointalk.org/index.php?topic=224522.0 |