Skip to content

Instantly share code, notes, and snippets.

View jakehemmerle's full-sized avatar
💭
🤖

Jake Hemmerle jakehemmerle

💭
🤖
View GitHub Profile

Here's a Julia program that demonstrates several key features of the language:

# Import plotting package
using Plots

# 1. Multiple Dispatch and Type System
struct Circle
    radius::Float64
end
@jakehemmerle
jakehemmerle / silicon_tg_vs_gpu_core_and_bandwidth.py
Created October 30, 2024 16:18
Apple Silicon: Token Generation as a function of GPU-core count and Memory Bandwidth
# Corrected code based on column label error in previous attempt
import pandas as pd
import matplotlib.pyplot as plt
# Define the data
data = {
'Model': ['M1', 'M1', 'M1 Pro', 'M1 Pro', 'M1 Max', 'M1 Max', 'M1 Ultra', 'M1 Ultra',
'M2', 'M2', 'M2 Pro', 'M2 Pro', 'M2 Max', 'M2 Max', 'M2 Ultra', 'M2 Ultra',
'M3', 'M3', 'M3 Pro', 'M3 Pro', 'M3 Max', 'M3 Max', 'M3 Ultra', 'M3 Ultra'],
'BW_GB_s': [68, 68, 200, 200, 400, 400, 800, 800, 100, 100, 200, 200, 400, 400, 800, 800, 100, 100, 150, 150, 300, 400, 800, 800],
### Keybase proof
I hereby claim:
* I am jakehemmerle on github.
* I am jakehemmerle (https://keybase.io/jakehemmerle) on keybase.
* I have a public key whose fingerprint is C3AA 89FE 42B9 7125 4FEA 03EE ACD6 30AC 0C03 98B6
To claim this, I am signing this object: