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.
| # /// script | |
| # dependencies = [ "transformers", "accelerate" ] | |
| # /// | |
| # run on 2xH200 rented from primeintellect.ai | |
| import gc | |
| import torch | |
| from transformers import AutoModelForCausalLM, AutoTokenizer, TextStreamer |
| #VERBOSE=0 torchrun --nproc_per_node 3 self_contained_pp_LOC.py | |
| import os, random, numpy as np, torch, torch.nn as nn, torch.distributed as dist, torch.nn.functional as F | |
| from torch.optim import AdamW | |
| from torch.utils.data import DataLoader, DistributedSampler | |
| from datasets import load_dataset | |
| from transformers import AutoConfig, AutoModelForCausalLM, AutoTokenizer | |
| STEP, local_rank, world_size, verbose = 0, int(os.environ["LOCAL_RANK"]), int(os.environ["WORLD_SIZE"]), os.environ.get("VERBOSE", "0") == "1" | |
| def set_all_seed(seed): |
![]() |
![]() |
![]() |
![]() |
|
|---|---|---|---|---|
| Features | AWS | GCP | Azure | Databricks |
| Data pipeline | Data Pipeline | Dataflow | Data Factory | Spark |
| Feature Store | Feature Store | --- | --- | Feature Store |
| Model Monitoring | Model Monitor | --- | [Azure Monitor](https://docs.microsoft.com/en-us/azure/machine-learning/monitor-azure-machine-learnin |
| #!/bin/sh | |
| set -x | |
| # == Swarm training (alpha release) == | |
| # Setup: | |
| # | |
| # git clone https://github.com/shawwn/gpt-2 | |
| # cd gpt-2 | |
| # git checkout dev-shard |
| function venv { | |
| default_envdir=".env" | |
| envdir=${1:-$default_envdir} | |
| if [ ! -d $envdir ]; then | |
| python -m venv $envdir | |
| pip install ipython black flake8 | |
| echo -e "\x1b[38;5;2m✔ Created virtualenv $envdir\x1b[0m" | |
| fi | |
| source $envdir/bin/activate |
Andy Thomason is a Senior Programmer at Genomics PLC. He has been witing graphics systems, games and compilers since the '70s and specialises in code performance.
| 1) Read an image from file | |
| 2) Display an image that you read from file | |
| 3) Capture Video using your webcam and display the feed | |
| 4) Display back and white live stream from your webcam. | |
| 5) Have a slider to change brightness of the webcam live stream. Display. | |
| 6) Have a slider to change contrast of the webcam live stream. Display. | |
| 7) Capture a snapshot from your webcam. Then display difference between live video stream and this snapshot. (Background subtraction) | |
| 8) Display Canny edge image from your live webcam stream | |
| 9) Have a slider to change smoothness / sharpness of image from live webcam stream. | |
| 10) Display histogram of colors (RGB) from your live webcam stream |