| SoC | Snapdragon 8 Gen 3
(SM8650) | Snapdragon 8s Gen 3
(SM8635) | Snapdragon 8 Gen 2
(SM8550) | Snapdragon 7+ Gen 3
(SM7675-AB) | Snapdragon 7+ Gen 2
(SM7475-AB) | Snapdragon 7 Gen 3
(SM7550-AB) |
|----------------------|:---------------------------------------
| import torch.nn as nn | |
| import torch.nn.functional as F | |
| import math | |
| from typing import Optional, Tuple | |
| class BertSelfAttention(nn.Module): | |
| def __init__(self, config): | |
| super().__init__() | |
| if config.hidden_size % config.num_attention_heads != 0: |
| FROM golang:1.21.0-bullseye as builder | |
| COPY . /workdir | |
| WORKDIR /workdir | |
| ENV CGO_CPPFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-all" | |
| ENV GOFLAGS="-buildmode=pie" | |
| RUN go build -ldflags "-s -w" -trimpath ./cmd/app |
| #!/usr/bin/env bash | |
| if [ "$EUID" -ne 0 ] && groups | grep -qwv 'i2c' && getent group i2c &> /dev/null | |
| then | |
| echo "Insuficient permissions, run as root ou join $USER to i2c group." | |
| exit 1 | |
| fi | |
| case "$1" in |
There is already a guide on scaling your Mastodon server up. This is a short guide on scaling your Mastodon server down.
I.e., maybe you want to run a small instance of <100 active users, and you want to keep your cloud costs reasonable.
So you might be running everything on a single machine, with limited memory and CPU. (In my case, I was using a t3.medium instance with 2 vCPUs and 4GB of RAM.) How
do you do this?
Note that I'm not a Ruby or Sidekiq expert, and most of this stuff I figured out through trial and error.
| 'use strict'; | |
| const { | |
| createHistogram, | |
| performance: { | |
| timerify | |
| } | |
| } = require('perf_hooks'); | |
| const users = [ |
| #!/bin/bash | |
| Counter=20 | |
| DisplayHeader="Date Time GPU-C GPU-F CPU-C CPU-F CPU Core Vcore" | |
| while true ; do | |
| let ++Counter | |
| if [ ${Counter} -eq 21 ]; then | |
| echo -e "${DisplayHeader}" | |
| Counter=0 | |
| fi |
Instructions for installing zsh plugins, for a variety of plugin managers
-
⚠️ Deprecated. Official recommendation is to use Antidote insteadAdd
<owner>/<repo>to your plugins file. If you use static loading, run the update command. -
Antidote: Add
<owner>/<repo>to your plugins file. If you generate your static plugins file manually, run the bundle command.