Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.
| import random | |
| import string | |
| import typing | |
| from django.conf import settings | |
| # if you have a Report-To service, add it to settings.py along with | |
| # adding ReportToMiddleware to settings.MIDDLEWARE | |
| # Clone llama.cpp | |
| git clone https://github.com/ggerganov/llama.cpp.git | |
| cd llama.cpp | |
| # Build it | |
| make clean | |
| LLAMA_METAL=1 make | |
| # Download model | |
| export MODEL=llama-2-13b-chat.ggmlv3.q4_0.bin |
You should read the Typer Tutorial - User Guide before referring to this summary. Information icons ℹ️ link to the relevant sections of the Typer Tutorial.
| FROM node:18-slim as builder | |
| ARG PLAYWRIGHT_VERSION | |
| ARG PLAYWRIGHT_BROWSERS_PATH=/ms-playwright | |
| RUN npx playwright@${PLAYWRIGHT_VERSION} install chromium | |
| FROM node:18-slim as runner | |
| ARG PLAYWRIGHT_VERSION | |
| ARG PLAYWRIGHT_BROWSERS_PATH=/ms-playwright | |
| COPY --from=builder /ms-playwright /ms-playwright | |
| RUN npx playwright@${PLAYWRIGHT_VERSION} install-deps chromium | |
| USER node |
| import os | |
| import json | |
| import random | |
| import textwrap | |
| import re | |
| import math | |
| import torch | |
| from torch import nn | |
| from torch.utils.data import DataLoader, Dataset, IterableDataset |
| # Delete all forks that haven't been updated since 2020 | |
| gh auth refresh -h github.com -s delete_repo | |
| gh search repos \ | |
| --owner tonybaloney \ | |
| --updated="<2020-01-01" \ | |
| --include-forks=only \ | |
| --limit 100 \ | |
| --json url \ | |
| --jq ".[] .url" \ | xargs -I {} gh repo delete {} --confirm |