npm init -y
Create a folder called src and add an empty index.js file. The code that webpack compiles goes in here including any Javascript modules and the main Tailwind file.
Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt
Create free AWS Account at https://aws.amazon.com/
I would be creating a t2.medium ubuntu machine for this demo.
Do you need a refresher on git? Go through Codecademy's git
course.
Using your terminal/command line, get inside the folder where your project files are kept:
cd /path/to/my/codebase
.
→ You cannot do this simply by opening the folder normally, you must do this with the command line/terminal.
→ Do you need a refresher on using your command line/terminal? I've compiled my favorite resources here.
Check if git is already initialized: git status
import base64 | |
from typing import Union, Literal, Optional | |
import openai | |
import requests | |
import os, io | |
from PIL import Image | |
from openai import OpenAI | |
import uuid | |
import argparse |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>PayloadDisplayName</key> | |
<string>tony-edge-lite</string> | |
<key>PayloadIdentifier</key> | |
<string>io.tonyxu.edge-lite</string> | |
<key>PayloadType</key> | |
<string>Configuration</string> |
ssh-keygen -t rsa -b 4096 -e SHA512 -f jwtRS512.key | |
# Don't add passphrase | |
openssl rsa -in jwtRS512.key -pubout -outform PEM -out jwtRS512.key.pub | |
cat jwtRS512.key | |
cat jwtRS512.key.pub |
base_model: meta-llama/Meta-Llama-3-70B | |
model_type: LlamaForCausalLM | |
tokenizer_type: AutoTokenizer | |
load_in_8bit: false | |
load_in_4bit: true | |
strict: false | |
datasets: | |
- path: /home/migel/ai_datasets/tess-v1.5b-chatml.jsonl |
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -dump | grep uti: | cut -c 29- | sort | uniq > utis.txt |
mr Marathi | |
bs Bosnian | |
ee_TG Ewe (Togo) | |
ms Malay | |
kam_KE Kamba (Kenya) | |
mt Maltese | |
ha Hausa | |
es_HN Spanish (Honduras) | |
ml_IN Malayalam (India) | |
ro_MD Romanian (Moldova) |