Skip to content

Instantly share code, notes, and snippets.

View AgentOak's full-sized avatar

Jan Erik Petersen AgentOak

  • Germany
  • 20:10 (UTC +02:00)
View GitHub Profile
@rain-1
rain-1 / LLM.md
Last active May 26, 2024 17:46
LLM Introduction: Learn Language Models

Purpose

Bootstrap knowledge of LLMs ASAP. With a bias/focus to GPT.

Avoid being a link dump. Try to provide only valuable well tuned information.

Prelude

Neural network links before starting with transformers.

@gtk2k
gtk2k / Youtube360VideoFormatList.md
Last active August 21, 2023 06:32
Youtube 360 video format list

As a result of examining 10 each of Monoscopic and Stereoscopic videos of 360 videos, most of them (about 80%) became the format distribution shown in the table.

Resolution AV1 HFR High AV1 HFR AV1 VP9.2 HDR HFR VP9 HFR VP9 H.264 HFR H.264
MP4 MP4 MP4 WebM WebM WebM MP4 MP4
4320p 402/571
---/EQU
272
---
138
---
2160p 701
---
401
EQU
337
---
315
EAC
(313)
EAC
(305)
---
(266)
---
1440p 700
---
400
EQU
336
---
308
EAC
(271)
EAC
(304)
---
(264)
---
1080p 699
---
399
EQU
335
---
303
EAC
(248)
EAC
299
EAC
(137)
EAC(*EQU)
720p 698--- 398EQU 334--- 302EAC 247EAC(*EQU) 298EAC 136EAC
Starlet memory map
00000000-04000000: MEM1 area (2 mirrors, 0x2000000 each)
0000000-1800000: MEM1 (0x1800000)
1800000-2000000: unimplemented / bus noise / junk? (looks like uninitialized memory but unwritable)
04000000-08000000: unimplemented, read as zeroes
08000000-10000000: register/SRAM area (8 mirrors, 0x800000 each)
000000-400000: registers (4 mirrors, 0x100000 each) CANONICAL ADDRESSES: 0x0d000000 and 0x0d800000

Foreward

This document was originally written several years ago. At the time I was working as an execution core verification engineer at Arm. The following points are coloured heavily by working in and around the execution cores of various processors. Apply a pinch of salt; points contain varying degrees of opinion.

It is still my opinion that RISC-V could be much better designed; though I will also say that if I was building a 32 or 64-bit CPU today I'd likely implement the architecture to benefit from the existing tooling.

Mostly based upon the RISC-V ISA spec v2.0. Some updates have been made for v2.2

Original Foreword: Some Opinion

The RISC-V ISA has pursued minimalism to a fault. There is a large emphasis on minimizing instruction count, normalizing encoding, etc. This pursuit of minimalism has resulted in false orthogonalities (such as reusing the same instruction for branches, calls and returns) and a requirement for superfluous instructions which impacts code density both in terms of size and

@marcan
marcan / gamma_trick.sh
Last active December 10, 2023 22:06
Two images in one using the PNG gamma header trick.
#!/bin/sh
# PNG Gamma trick (by @marcan42 / marcan@marcan.st)
#
# This script implements an improved version of the gamma trick used to make
# thumbnail images on reddit/4chan look different from the full-size image.
#
# Sample output (SFW; images by @Miluda):
# https://mrcn.st/t/homura_gamma_trick.png
# https://www.reddit.com/r/test/comments/6edthw/ (click for fullsize)
# https://twitter.com/marcan42/status/869855956842143744